3.5 Setting up network devices

Basic network setting are located in the /etc/network.conf file. In that file, you can globally disable or enable networking. Also, it is possible to specify a gateway address. If configured, ttylinux will setup a default route to the gateway on bootup. This is mainly useful if you don't use modem or ISDN dialup. If you do use dialup, the default route will be overwritten once you start a dialup connection.

Note that loopback networking via the lo device is always enabled. The setting in /etc/network.conf only covers devices that can contact the outside world.

To set up a network device, go to the directory /etc/network.d and copy the file sample found there to a file named interface.dev. For example, if you want to setup the device eth0, name the file interface.eth0:

  cp sample interface.eth0

Now edit the new file to adjust the settings for the device. You can either let the system use the DHCP protocol to obtain the settings from a DHCP server or you can set the IP address and other parameters manually within the file.