如何在linux中删除虚拟接口?

前端之家收集整理的这篇文章主要介绍了如何在linux中删除虚拟接口?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
ip链接显示
[root@0-25-90-68-79-4a log]# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,SLAVE,LOWER_UP> mtu 1500 qdisc mq master bond0 state UP qlen 1000
    link/ether 00:25:90:68:79:4a brd ff:ff:ff:ff:ff:ff
5: bond0: <BROADCAST,MASTER,LOWER_UP> mtu 1500 qdisc noqueue state UP 
    link/ether 00:25:90:68:79:4a brd ff:ff:ff:ff:ff:ff
8: gre0: <NOARP> mtu 1476 qdisc noop state DOWN 
    link/gre 0.0.0.0 brd 0.0.0.0
10: 35978f0: <BROADCAST,LOWER_UP> mtu 1500 qdisc pfifo_fast master br35978f0 state UP qlen 32
    link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff
13: br35978f0: <BROADCAST,LOWER_UP> mtu 1500 qdisc noqueue state UP 
    link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff

这里接口35978f0是虚拟接口,它连接到桥接器35978f0我已经完成ifconfig 35978f0 down和brctl delif br35978f0 35978f0.

但是如何删除界面35978f0?

解决方法

您可以使用ip link delete删除该接口.

猜你在找的Linux相关文章