Configuring TCP/IP
If the linux distribution was not able to pick up the IP address through dhcp, it should be statically configured. There are two ways of configuring a static IP, use of a command line or configuring the network file. To make changes to the network configuration you have to be root Command-line Configuration This method of configuration should work for most Linux distributions. The change is temporary because the commands do not change the network file that is read at startup. To configure the IP address manually in a command line, two commands need to be used ComputerName:~# ifconfig eth0 *IP address* netmask *address* ComputerName:~# route add default gw *gateway address* The first command tells the computer to configure Ethernet adapter 0 to have *IP address* as the IP address and *address* for the netmask. The second command configures the gateway of the system. This configuration will last until the device is turned off and on or the computer is restarted. Editing Network Files Each linux distribution keeps their network configuration file in a different location. The system will keep the configuration until the file is changed again. Changes stay after the system is rebooted.