Networking Forums

Networking Forums > Computer Networking > Linux Networking > NetworkManager and DHCP

Reply
Thread Tools Display Modes

NetworkManager and DHCP

 
 
Suk
Guest
Posts: n/a

 
      05-12-2007, 04:16 PM
Hello

Im using Ubuntu Desktop 7.04

Interface eth0 is set to get an IP via DHCP, but I dont want it to get
any information about DNS servers, because im already running bind on
my system and I have static entries in named.conf

So, I edited /etc/dhcp3/dhclient.conf so that the request line just
got the bits i needed (everything except DNS servers) like this..

request subnet-mask, broadcast-address, time-offset, routers;

But now it turns out that my /etc/resolv.conf file is being
overwritten by NetworkManager -- with empty entries.

I had the nameserver set to the static IP of my second interface
(eth1), but everytime I boot up NetworkManger overwrites this with
blanks.

Anyone know how to stop this from happening? I dont think I need
NetworkManager running anyway, how do I disable it?

 
Reply With Quote
 
 
 
 
Dave Griffith
Guest
Posts: n/a

 
      06-02-2007, 08:31 AM
Suk <(E-Mail Removed)> wrote:
> Hello


> Im using Ubuntu Desktop 7.04


> Interface eth0 is set to get an IP via DHCP, but I dont want it to get
> any information about DNS servers, because im already running bind on
> my system and I have static entries in named.conf


> So, I edited /etc/dhcp3/dhclient.conf so that the request line just
> got the bits i needed (everything except DNS servers) like this..


> request subnet-mask, broadcast-address, time-offset, routers;


> But now it turns out that my /etc/resolv.conf file is being
> overwritten by NetworkManager -- with empty entries.


> I had the nameserver set to the static IP of my second interface
> (eth1), but everytime I boot up NetworkManger overwrites this with
> blanks.


> Anyone know how to stop this from happening? I dont think I need
> NetworkManager running anyway, how do I disable it?


At the menu along the top of the screen, go to
System->Preferences->Sessions. There you'll see, among other things,
Network Manager. Uncheck or delete it. Now you should be able to set
that machine's network stuff the old-fashioned way.

--
David Griffith
(E-Mail Removed) <-- Switch the 'b' and 'u'
 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange behavior of NetworkManager and keyring [Hardy and Gutsy] Ignoramus3733 Linux Networking 1 04-03-2008 08:54 PM
NetworkManager and wpa_supplicant Paul Steckler Linux Networking 0 02-08-2008 05:48 PM
NetworkManager und wpa_supplicant overview Boris Glawe Linux Networking 2 01-29-2008 08:04 PM
How-to manual for GNOME NetworkManager needed tek Linux Networking 3 01-07-2008 09:03 AM
Periodically lose wifi connection using NetworkManager marvin Linux Networking 0 12-17-2007 02:46 AM



1 2 3 4 5 6 7 8 9 10 11