Configure /etc/network/interfaces
This statically configures the Ethernet adapter by changing the file that is read at boot-up and with the command ifup <device>.
IP information is kept in:
/etc/network/interfaces
Sample interfaces file - Statically configured
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
# The first network card - this entry was created during the Debian installation
auto eth0
iface eth0 inet static
address <ip number>
netmask <netmask number>
broadcast <broadcast number>
gateway <gateway number>
Once interfaces have been configured the following commands should be run as root:
The computer should now be obtaining its TCP/IP information statically
Sample interfaces file - DHCP configured
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
# The first network card - this entry was created during the Debian installation
auto eth0
iface eth0 inet dhcp
Once interfaces have been configured the following commands should be run as root: