LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-26-2006, 09:03 AM   #1
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 199

Rep: Reputation: 31
network configuration


i got an installation of sarge. i am getting internet through a dsl modem/router. that router acts as a DHCP server and everytime it gives a different IP address to my Lin box. could someone tell me which file do i have to change in my linux box to assign it a permanent ip, dns1, dns2?
i know what i have to do to the router.
 
Old 06-26-2006, 09:09 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
/etc/network/interfaces for the ip address and /etc/resolv.conf for your dns settings examples below.

Code:
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
        # dns-* options are implemented by the resolvconf package, if installed
       dns-nameservers 24.222.0.66 24.222.0.91
Code:
nameserver 24.222.0.66
nameserver 24.222.0.91
 
Old 06-26-2006, 09:12 AM   #3
binary_dreamer
Member
 
Registered: Feb 2006
Distribution: debian squeeze
Posts: 199

Original Poster
Rep: Reputation: 31
the part that says nameservers is where i put the dns addresses?
 
Old 06-26-2006, 09:37 AM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by binary_dreamer
the part that says nameservers is where i put the dns addresses?

That is the address for the DNS namservers it is how they are named in the file.
 
Old 06-26-2006, 09:41 AM   #5
DeanLinkous
Member
 
Registered: Jun 2006
Posts: 111

Rep: Reputation: 15
yep!
or use a GUI tool to setup your connection...
 
  


Reply

Tags
ip, network, static



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
Slackware 10 network configuration. Problem with 8139 network card drivers ! Padmakiran Linux - Networking 8 03-27-2007 06:48 AM
Network Configuration in Debian (laptop network card) legendaryhwk Linux - Networking 6 04-06-2006 03:59 AM
Network Configuration Hanging in FC4 After Using Wireless Network Wizard Trip in VA Linux - Wireless Networking 2 07-18-2005 08:32 AM
Network configuration gateway Linux - Networking 1 12-09-2004 05:40 PM
network configuration focuslessmind Red Hat 3 08-25-2004 02:40 AM

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

All times are GMT -5. The time now is 07:35 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