Monday, September 26, 2022

Ubuntu - get the active interface and subnet details

Below two commands can give these two information


ip route

nmcli dev show ens192


references:

https://askubuntu.com/questions/197628/how-do-i-find-my-network-ip-address-netmask-and-gateway-info

No comments:

Post a Comment