我想了解一个网络接口是什么意思?因为即使没有与之关联的 IP,ip addrorifconfig命令也会将接口显示为 up。
例如在 RHEL7 上:
[root@IDCDVAM887 ~]# ifconfig ens256
ens256: flags=6211<UP,BROADCAST,RUNNING,SLAVE,MULTICAST> mtu 1500
ether 00:50:56:9e:19:5b txqueuelen 1000 (Ethernet)
RX packets 229406 bytes 59265584 (56.5 MiB)
RX errors 0 dropped 229454 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Run Code Online (Sandbox Code Playgroud)
(或者)
[root@IDCDVAM887 ~]# ip addr show ens256
5: ens256: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master bond0 state UP qlen 1000
link/ether 00:50:56:9e:19:5b …Run Code Online (Sandbox Code Playgroud) iproute ×1