ifconfig
操作概述
查看主机网卡的配置信息
命令参数
-a|--all=flag 查看所有网卡配置信息
<iface> 指定要查看的网卡名,示例:eth0
使用示例
acli system ifconfig eth0
acli system ifconfig -a
结果示例
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.131.136.168 netmask 255.255.255.0 broadcast 10.131.136.255
inet6 fe80::20c:29ff:fe56:b7a6 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:56:b7:a6 txqueuelen 1000 (Ethernet)
RX packets 520898 bytes 54239098 (51.7 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 10244 bytes 1033457 (1008.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0