Network settings for Linux at the shell prompt (terminal).

These are the manual settings for networking a Linux machine.

You should also have installed and setup the network card in the Linux machine as eth0 or eth1 (see Linux Ethernet-HOWTO if you don't know how to do it). Most Linux distributions do this automatically when you install Linux.

Before you start you can see how Linux automatically configured your network card by typing ifconfig, as shown in this example.

To do it at the shell prompt you need to create or edit a series of files as follows:

NOTE: Of course do not include the comments starting with     ...


This page is maintained by Al Bento who can be reached at abento@ubalt.edu. This page was last updated on October 1, 2012. Although we will attempt to keep this information accurate, we can not guarantee the accuracy of the information provided.