LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-30-2006, 12:13 AM   #1
carlosruiz
Member
 
Registered: Jul 2003
Location: Japan
Distribution: Mandrake
Posts: 53

Rep: Reputation: 15
Prevent dhclient from setting default GW and DNS servers


Hello dear linuxquestions.org community, I wonder if it is possible to prevent dhclient from setting the default gateway and dns servers when leasing an ip address, I actually just want it to set the ip address and if possible a static route.

Configuration:

eth0 dsl connection (dhcp)
this should be the Internet gateway.


wlan0 wireless network with secondary internet connection (dhcp)
this is only an on demmand connection to a specific Internet site, however whenever I issue the dhclient wlan0 command, my resolv.conf gets new dns information as well as a new default route is added, that makes my eth0 connection useless. does anybody knows how to prevent this from happening?

Thanks you.
 
Old 06-30-2006, 01:05 AM   #2
carlosruiz
Member
 
Registered: Jul 2003
Location: Japan
Distribution: Mandrake
Posts: 53

Original Poster
Rep: Reputation: 15
Well it seems that functionallity is not available on dhclient, I found that dhcpcd will prevent the setup of resolvers and defaultroutes used like this:
dhcpcd -R -G wlan0

Cheers
 
  


Reply



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
TEMP_FAILURE: DNS Error: Timeout while contacting DNS servers when receiving emails tonysutherland Linux - Networking 2 02-10-2006 09:04 AM
dhclient not setting default gateway - no WAN route kadissie Linux - Networking 2 03-10-2005 04:55 AM
DNS, ROOT servers, and setting up a small personal server urquanmaster Linux - Networking 4 03-10-2005 03:47 AM
Setting DNS servers Boudewijn Linux - Networking 1 12-25-2003 02:56 PM
New Virtual Servers Default to Default Server Page? DigiDave Linux - Software 4 10-18-2003 03:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:02 PM.

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