[Pkg-utopia-maintainers] Bug#707070: Bug#707070: Bug#707070: Bug#707070: NetworkManager tries to manage an ifupdown-managed eth0 (managed=false)

Antti-Juhani Kaijanaho antti-juhani at kaijanaho.fi
Wed May 8 21:50:37 UTC 2013


On Wed, May 08, 2013 at 08:11:38PM +0200, Michael Biebl wrote:
> Am 08.05.2013 10:41, schrieb Antti-Juhani Kaijanaho:
> > Of course, now nm claims I'm not connected, but I think that's a feature, not a
> > bug, with this arrangement.
> 
> Actually, no. I've added Debian specific patches to track the ifupdown
> state in /run/network/ifstate and if eth0=eth0 is listed that,
> network-manager should forcefully set the global online state to
> connected, even if the device itself is marked as unmanaged.
>
> What does your /run/network/ifstate contain and nm-tool say?

ajk at teralehti:~$ cat /run/network/ifstate
lo=lo
eth0=eth0
ajk at teralehti:~$ nm-tool

NetworkManager Tool

State: disconnected

- Device: wlan0 ----------------------------------------------------------------
  Type:              802.11 WiFi
  Driver:            ath9k
  State:             unavailable
  Default:           no
  HW Address:        20:16:D8:B7:57:45

  Capabilities:

  Wireless Properties
    WEP Encryption:  yes
    WPA Encryption:  yes
    WPA2 Encryption: yes

  Wireless Access Points 


- Device: eth0 -----------------------------------------------------------------
  Type:              Wired
  Driver:            r8169
  State:             disconnected
  Default:           no
  HW Address:        00:03:0D:5C:C6:6C

  Capabilities:
    Carrier Detect:  yes
    Speed:           100 Mb/s

  Wired Properties
    Carrier:         on


ajk at teralehti:~$ 

Now, this is funny.  The applet offers me a toggle to turn Kiinteä (wired) on.
If I do that, it shows I'm connected but I also have two dhclients again:

ajk at teralehti:~$ nm-tool

NetworkManager Tool

State: connected (global)

- Device: wlan0 ----------------------------------------------------------------
  Type:              802.11 WiFi
  Driver:            ath9k
  State:             unavailable
  Default:           no
  HW Address:        20:16:D8:B7:57:45

  Capabilities:

  Wireless Properties
    WEP Encryption:  yes
    WPA Encryption:  yes
    WPA2 Encryption: yes

  Wireless Access Points 


- Device: eth0  [Automaattinen, kiinteä] --------------------------------------
  Type:              Wired
  Driver:            r8169
  State:             connected
  Default:           yes
  HW Address:        00:03:0D:5C:C6:6C

  Capabilities:
    Carrier Detect:  yes
    Speed:           100 Mb/s

  Wired Properties
    Carrier:         on

  IPv4 Settings:
    Address:         192.168.1.71
    Prefix:          24 (255.255.255.0)
    Gateway:         192.168.1.1

    DNS:             192.168.1.1


ajk at teralehti:~$ sudo grep 'type=802-3-ethernet' /etc/NetworkManager/system-connections/*
/etc/NetworkManager/system-connections/Automaattinen, kiinteä:type=802-3-ethernet
ajk at teralehti:~$ ps ax | grep dhcp
 9390 ?        Ss     0:00 dhclient -v -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases eth0
 9540 ?        S      0:00 /sbin/dhclient -d -sf /usr/lib/NetworkManager/nm-dhcp-client.action -pf /var/run/dhclient-eth0.pid -lf /var/lib/NetworkManager/dhclient-38af8c02-9c23-45a2-aeff-36bf65ae0eba-eth0.lease -cf /var/lib/NetworkManager/dhclient-eth0.conf eth0
 9635 pts/0    S+     0:00 grep dhcp
ajk at teralehti:~$ 


-- 
Antti-Juhani Kaijanaho

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20130509/3a4616c7/attachment.pgp>


More information about the Pkg-utopia-maintainers mailing list