About dropping into single-user mode without rebooting. Then when going into multi user mode, restarting the Internet connection afterwards or otherwise after using commands to take computer offline.
Once back to multi-user mode, you have to type
On other operating systems, after attempting to reconnect to the Internet, OS connectivity to the network occurs more automatically on its own, but on FreeBSD, it's not obvious.
init 1
will drop you into single-user mode without rebooting. You may want to close your applications first. In single user mode, the only user is root. See: init(8). exit
will get you back into multi-user mode.Once back to multi-user mode, you have to type
service netif restart && service routing start
. You also have to use these command to bring your network back up after taking your computer offline, such as for adjusting your firewall and adjusting network configurations. Sometimes you want to disconnect your computer from the Internet to secure your computer settings. The routing script fixes network connectivity so it continues to work each time, but doesn't stay enabled. The routing service(8) is in /etc/rc.d/ and can also be found with service -l | grep routing
. You may also have to restart your application, such as browser, for it to take notice of the setting. There may be something missing for this to be complete, because some websites work, while others don't.On other operating systems, after attempting to reconnect to the Internet, OS connectivity to the network occurs more automatically on its own, but on FreeBSD, it's not obvious.