Quote:
Originally posted by velan
How to configure IP address, Subenet mask, Primary DNS, Secondary DNS, Gateway in Debian Woody 3.0 r2?
|
The file
/etc/network/interfaces is where your settings for the card are contained example file below:
For Static settings
Code:
# /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
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.254
Your nameservers (DNS) settings would be in the file
/etc/resolv.conf example file:
Code:
search wolf
nameserver 192.168.1.10
nameserver 192.168.1.34
You only need the one nameserver line the search of your domain (if you have one) and the extra nameserver are not necessary.
You would edit these files as root and put in your required settings once you have made the changes
/etc/init.d/networking restart as root in a console window to re-start your networking with the new settings or just start if the network is already down.