Re: IP interface name of PPP connection
- From: Joachim Selke <mail joachim-selke de>
- To: Thomas Haller <thaller redhat com>, networkmanager-list gnome org
- Subject: Re: IP interface name of PPP connection
- Date: Mon, 29 Jul 2019 22:36:18 +0200
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
<MYCONN> isn't connected):
IFACE=$(nmcli -g GENERAL.DEVICES con show <MYCONN>)
IP_IFACE=$(nmcli -g GENERAL.IP-IFACE dev show "$IFACE")
echo $IP_IFACE
Best wishes,
Joachim
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]