linux查看IP 网关 DNS

route -n

netstat -nr

nmcli dev show

nmcli dev status

[root@system1 ~]# nmcli dev status all
Unknown parameter: all
DEVICE  TYPE      STATE      CONNECTION  
eth0    ethernet  connected  System eth0 
lo      loopback  unmanaged  --   
nmcli connection show
[root@system1 ~]# nmcli connection show
NAME         UUID                                  TYPE            DEVICE 
System eth0  5sfsdfsd-0asfsdafbb0-7ffb-45f1-d6edd65f3e03  802-3-ethernet  eth0   


你可能感兴趣的:(Linux网络)