Saturday, October 15, 2005

Connecting Linux to the Internet

Most people already acquainted with Linux don't really need to read this post since most of them already know how to connect to the Internet and most of the time, they don't have to because during installation, it automatically looks for an network connection, regardless of distribution. And if they couldn't find a good connection, it will only be disabled until the next reboot. And if the your distribution failed to connect to the internet due to unplugged modem, or even unplugged power adaptor, one could easily reboot the computer to gain connection. But what if you're near deadline or you just can't reboot the pc due to fear of data/settings loss, then this post might be of help to you. And the reason I came up with this post is because I work in a call center that deals with internet connectivity. And most connections require us to use modems with DHCP, so this command would locate the DHCP server and will be assigned an IP address automatically. The commands listed below will stop, start, and restart the network connections. As always, you need to issue this command in a terminal window as root. Here they are:

Fedora Core 1 to 4
Bayanihan Linux 3.1
LormaLinux 5.0 Workstation


Stop: /etc/rc.d/init.d/network stop

Start: /etc/rc.d/init.d/network start

Restart: /etc/rc.d/init.d/network restart



Vector Linux 5.0 SOHO

Stop: /etc/rc.d/rc.inet1 stop

Start: /etc/rc.d/rc.inet1 start

Restart: /etc/rc.d/rc.inet1 restart