如何查看CentOS8的IP地址?
[root@yzmedu ~]# nmcli device show ens32
GENERAL.DEVICE: ens32
GENERAL.TYPE: ethernet
GENERAL.HWADDR: 00:0C:29:1C:78:87
GENERAL.MTU: 1500
GENERAL.STATE: 100 (connected)
GENERAL.CONNECTION: ens32
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/1
WIRED-PROPERTIES.CARRIER: on
IP4.ADDRESS[1]: 192.168.2.1/24
IP4.GATEWAY: —
IP4.ROUTE[1]: dst = 192.168.2.0/24, nh = 0.0.0.0, mt = 100
IP6.ADDRESS[1]: fe80::18c3:7b7b:1b5b:eb5f/64
IP6.GATEWAY: —
IP6.ROUTE[1]: dst = fe80::/64, nh = ::, mt = 100
IP6.ROUTE[2]: dst = ff00::/8, nh = ::, mt = 256, table=255
记得从CentOS8开始慢慢不再使用ifconfig等命令,而是使用更先进的nmcli命令 !!!
1 COMMENT