On 2020-08-01 19:42, Samuel Sieb wrote:
On 8/1/20 7:20 PM, ToddAndMargo via users wrote:
Is there a way to get nmcli to tell you if an interface
is a gateway like you can with `netstat -rn`?
Very related to the previous question.
# nmcli --fields IP4.GATEWAY d show wlo1
IP4.GATEWAY: 10.0.1.1
# nmcli --fields IP4.GATEWAY d show lo
IP4.GATEWAY: --
Thank you!
$ nmcli device show eno2 | grep -i ip4.gateway
IP4.GATEWAY: 192.168.250.1
$ nmcli device show eno2 | grep -i ip4.gateway | awk '{print $2}'
192.168.250.1
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx