The solution must NOT reset all of my housemate's OTHER computer settings or whatever to their default whatever. ONLY the Internet connection.
If you mean the TCP connection within one system there are many ways of doing that:
1. Manipulating it from the scripts /etc/rc.d/init.d (whatever is found therein) just look for something like "networkmanager" or "inet", cd into that folder (must be root user) then enter that script as command, e. g.--
--# cd /etc/init.d
--# networkmanager force-restart
you can examine what semantic your script is using by
--# cat "scriptname"
then look for some loop header like "start", "restart", "reload", or "force-restart".
2. Manipulating it from the ifconfig command may do sometimes--
--# ifconfig eth0 down
--# ifconfig eth0 up
the IP connection will stop and then try to reconnect. If your interface is named "eth1" or another you many use it accordingly. You will find out what name it uses by querying the interface:
3. Manipulating it from the level scripts (this is quite an overkill and longer process, however this will sure render the same service you needed. Under most Gnu/Linux the network daemon initiates at runlevel 3, so you can pass across that level by switching to 1 and 4 (or 5 whatever your system uses).
--# init 1 <Enter>
(this shuts down the X and network processes and enters single user mode, you login as root there and from there issue the following similar command)
--# init 4 <Enter>
(this returns to X login with fresh network and TCP/IP connections)
4. Manipulating it from the process
--# ps axu | grep inetd
(get the process ID # of the inetd)
--# kill HUP xxxx
(xxxx is the process ID number; Note: I believe this only tends to redefine the connection without altering anything from the interface so this may not give you what you wanted as far as I understood from above, but you may try, there's no harm.)
/*The following shall affect all other systems connected to the modem. */
5. Manipulating from the ISP side. The modem provided by the ISP usually has a sunked-in button at the back of the modem for resetting. Use a ballpen point or a sharp pencil to push the button for 8 seconds then release. Note: this will re-initiate all connections using the modem.
Hope that helps.