On Mon, 2015-07-27 at 19:24 +0200, Jean-Christian de Rivaz wrote:
> Le 27. 07. 15 16:36, Dan Williams a écrit :
> > On Mon, 2015-07-27 at 13:30 +0200, Jean-Christian de Rivaz wrote:
> >> In this observation NetworkManager still think that eth0 is disconnected
> >> while he correctly logged the message 'link connected':
> > Just to make sure, the ethernet connection being used is
> > autoconnect=true, right?
> >
> > nmcli con show "<the connection name>" | grep autoconnect
> >
> > will tell you.
> 
> Hi Dan,
> 
> # nmcli con show eth0
> Error: eth0 - no such connection profile.

Right, you're asking for a connection named "eth0", and there probably
isn't one.  Connections can (but aren't always) named the same as a
device to which they could apply.

> Not sure of what you are talking about.  I am pretty certain that eth0 
> is the real device interface.
> 
> # nmcli d
> DEVICE   TYPE      STATE      CONNECTION
> eth0     ethernet  connected  Wired connection 1

So the connection that eth0 is actually using is called "Wired
connection 1".  So you'd:

nmcli con show "Wired connection 1" | grep autoconnect

Dan

> ttyACM0  gsm       connected  gsm1
> ppp0     unknown   connected  ppp0
> lo       loopback  unmanaged  --
> sit0     sit       unmanaged  --
> wlan0    wifi      unmanaged  --
> 
> The configuration is mostly the default one, just unmanage the WiFi and 
> configure the GSM APN.
> 
> # cat /etc/NetworkManager/NetworkManager.conf
> [main]
> plugins=ifupdown,keyfile
> 
> [ifupdown]
> managed=true
> 
> [keyfile]
> unmanaged-devices=mac:00:0b:6c:41:eb:24
> 
> # cat /etc/NetworkManager/system-connections/gsm1
> [connection]
> id=gsm1
> uuid=f5e7b733-beea-4fcb-b213-b2dfcbd61073
> type=gsm
> timestamp=1432623762
> 
> [gsm]
> number=*99#
> apn=public4.m2minternet.com
> 
> [ipv6]
> method=auto
> 
> [ipv4]
> method=auto
> 
> 
> Jean-Christian
> 


_______________________________________________
networkmanager-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/networkmanager-list

Reply via email to