LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   How to configure IP, Gateway in Debian Woody 3.0 r2? (https://www.linuxquestions.org/questions/debian-26/how-to-configure-ip-gateway-in-debian-woody-3-0-r2-171948/)

velan 04-19-2004 04:03 AM

How to configure IP, Gateway in Debian Woody 3.0 r2?
 
How to configure IP address, Subenet mask, Primary DNS, Secondary DNS, Gateway in Debian Woody 3.0 r2?

HappyTux 04-19-2004 04:17 AM

Re: How to configure IP, Gateway in Debian Woody 3.0 r2?
 
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.


All times are GMT -5. The time now is 06:18 PM.