LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-19-2004, 04:03 AM   #1
velan
Member
 
Registered: Apr 2004
Posts: 89

Rep: Reputation: 15
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?
 
Old 04-19-2004, 04:17 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian Woody, RH9 and XP michael_mead Linux - Software 1 08-25-2003 05:13 PM
Debian Woody Streams Linux - Newbie 3 08-18-2003 04:33 PM
debian(woody)/x help majesticsock Linux - Newbie 7 08-10-2003 06:44 PM
upgrade debian woody?? yowwww Linux - Distributions 2 06-09-2003 02:28 PM
Cannot reboot Debian Woody paavaka Linux - General 3 11-07-2001 04:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 06:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration