Re: IP interface name of PPP connection
On Mon, 2019-07-29 at 22:42 +0200, Thomas Haller wrote: > This is probably a bug, or at least a missing feature. I created an issue so that it can be tracked & fixed in the future: https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/218 Best wishes, Joachim ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: IP interface name of PPP connection
On Mon, 2019-07-29 at 22:36 +0200, Joachim Selke wrote: > On Mon, 2019-07-29 at 21:59 +0200, Thomas Haller wrote: > > This shows fields of the connection-profile... There is a > > difference > > between the profile and the actual device. > > > > Does `nmcli -f all device show $IFACE` help? > > Hi, > > Thanks! I was expecting to find the IP interface information at > connection level (together with IP addresses, routes, ..., which are > also listed there). But obviously my expectation was wrong. Ah, right. `nmcli connection show $PROFILE` also lists parameters of the device (active-connection). The upper-case fields... While I find that confusing, they probably should show similar properties as the output of `nmcli device show $IFACE`. This is probably a bug, or at least a missing feature. > The following works (basic version without error handling in case > isn't connected): > > IFACE=$(nmcli -g GENERAL.DEVICES con show ) > IP_IFACE=$(nmcli -g GENERAL.IP-IFACE dev show "$IFACE") > echo $IP_IFACE cool, best, Thomas signature.asc Description: This is a digitally signed message part ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: IP interface name of PPP connection
On Mon, 2019-07-29 at 21:59 +0200, Thomas Haller wrote: > This shows fields of the connection-profile... There is a difference > between the profile and the actual device. > > Does `nmcli -f all device show $IFACE` help? Hi, Thanks! I was expecting to find the IP interface information at connection level (together with IP addresses, routes, ..., which are also listed there). But obviously my expectation was wrong. The following works (basic version without error handling in case isn't connected): IFACE=$(nmcli -g GENERAL.DEVICES con show ) IP_IFACE=$(nmcli -g GENERAL.IP-IFACE dev show "$IFACE") echo $IP_IFACE Best wishes, Joachim ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
Re: IP interface name of PPP connection
On Mon, 2019-07-29 at 21:27 +0200, Joachim Selke wrote: > Hello everyone, > > I have set up a PPP connection and would like to retrieve the name > of > its IP interface (typically it is ppp0, but not always). > > I have been able to get the name of the IP interface in dispatcher > scripts using the variable DEVICE_IP_IFACE. However, I did not find > a > way to do this using nmcli ("nmcli -g con show "). Hi, This shows fields of the connection-profile... There is a difference between the profile and the actual device. Does `nmcli -f all device show $IFACE` help? best, Thomas signature.asc Description: This is a digitally signed message part ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list
IP interface name of PPP connection
Hello everyone, I have set up a PPP connection and would like to retrieve the name of its IP interface (typically it is ppp0, but not always). I have been able to get the name of the IP interface in dispatcher scripts using the variable DEVICE_IP_IFACE. However, I did not find a way to do this using nmcli ("nmcli -g con show "). Does anyone know how to do this? Best wishes, Joachim ___ networkmanager-list mailing list networkmanager-list@gnome.org https://mail.gnome.org/mailman/listinfo/networkmanager-list