小编Sri*_*san的帖子

即使没有与该接口关联的地址,“ip addr”命令也会显示“UP”

我想了解一个网络接口是什么意思?因为即使没有与之关联的 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

16
推荐指数
3
解决办法
1万
查看次数

标签 统计

iproute ×1