[Pkg-utopia-maintainers] Fwd: Network manager & DNS

Tom H tomh0665 at gmail.com
Sun Sep 23 15:00:32 UTC 2012


Suggestion for NM settings.

The exchange below isn't the first time that someone's confused about
NM and /e/n/i on debian-user (or ubuntu-users for that matter).

Could you replace "managed=true|false" in
"/etc/NetworkManager/NetworkManager.conf" by
"network-manager-managed=true|false" (or similar) in
"/etc/network/interfaces"?

Thanks.




---------- Forwarded message ----------
From: Tom H <tomh0665 at gmail.com>
Date: Sun, Sep 23, 2012 at 10:47 AM
Subject: Re: Network manager & DNS
To: Debian User <debian-user at lists.debian.org>

On Sun, Sep 23, 2012 at 9:41 AM, Marek Pawinski <linux at pawinski.co.za> wrote:
> On 23/09/2012 13:06, Tom H wrote:
>> On Sun, Sep 23, 2012 at 4:17 AM, Marek Pawinski<linux at pawinski.co.za>
>> wrote:
>>>
>>> Squeeze 6.05 amd64, I had backports enabled and made the mistake of
>>> updating to the latest back port kernel amongst other updates a few
>>> days ago.
>>>
>>> When I rebooted I had no internet connectivity so I removed the back
>>> port kernel thinking it was that.
>>>
>>> But now with my original 2.6.32-5-amd64 kernel every time I reboot,
>>> /etc/resolve.conf is empty and I have to enter my DNS server by hand.
>>>
>>> If I can remember correctly I do not use network manger but placed my
>>> entries in the interfaces file.
>>
>> What are the contents of "/etc/network/interfaces" and
>> /etc/NetworkManager/NetworkManager.conf"?
>>
>> Do you have any scripts in "/etc/NetworkManager/dispatcher.d/"?
>
> cat /etc/network/interfaces
> auto lo
> iface lo inet loopback
>
> # The primary network interface
> #allow-hotplug eth0
> #NetworkManager#iface eth0 inet dhcp
>
> # The primary network interface
> auto eth0
> iface eth0 inet static
> address 192.168.2.106
> gateway 192.168.2.1
> netmask 255.255.255.0
> network 192.168.2.0
> broadcast 192.168.2.255
>
> cat /etc/NetworkManager/NetworkManager.conf
> [main]
> plugins=ifupdown,keyfile
>
> [ifupdown]
> managed=false

Short answer: Change "managed=false" to "managed=true" in
"/etc/NetworkManager/NetworkManager.conf" for NM to manage eth0.

Longer answer: NM commented out eth0 in order to control it (given
"managed=false"). You then configured eth0 in
"/etc/network/interfaces" (by the way, you don't need the "network..."
and "broadcast..." lines) so between "managed=false" being set and
"/etc/init.d/networking" being disabled, eth0 isn't brought up by
either NM or ifupdown.



More information about the Pkg-utopia-maintainers mailing list