key rack research

Static: /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
address ipaddress
netmask networkmaskip
gateway gatewayip


You may want to edit your /etc/resolv.conf file to fit your needs. If you do not do this, you may not be able to resolve domains names, but really, you are hardcore, so you know all the IPs for the remote systems with which you wish to pass packets. Most likely not. Edit your /etc/resolv.conf.

If you have already edited your /etc/resolv.conf file, or if you are superhuman hardcore, save the above and either wait, reboot, or bounce the services. This may kick you offline if you are working via a remote connection. Do as you seem fit:

/etc/init.d/networking restart

back to top «

Dynamic: /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp


Save the above and either wait, reboot, or bounce the services. This may kick you offline if you are working via a remote connection. Do as you seem fit:

/etc/init.d/networking restart

back to top «

DNS Servers: /etc/resolv.conf

cp /etc/resolv.conf /etc/resolv.conf.orig
vi /etc/resolv.conf

domain domainname
search domainname
nameserver dnsserverip1
nameserver dnsserverip2
nameserver dnsserverip3


Save the above and either wait, reboot, or bounce the services. This may kick you offline if you are working via a remote connection. Do as you seem fit:

/etc/init.d/networking restart

back to top «

Debian Linux Resources