2015-12-17 105 views
2

IP鏈路表明這一點:如何刪除在Linux虛擬接口?

[[email protected] 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,UP,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,MULTICAST,MASTER,UP,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,MULTICAST,UP,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,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP 
    link/ether fe:ff:ff:ff:ff:ff brd ff:ff:ff:ff:ff:ff 

這裏界面35978f0是綁定在彌合BR 35978f0我已經做了使用ifconfig 35978f0下來brctl delif br35978f0 35978f0虛擬接口。

但是我怎麼刪除接口35978f0

回答

7

您可以使用ip link delete刪除該接口。

+3

當我這樣做,我得到這個:[根@ 0-25-90-68-79-4a〜]#IP鏈路刪除5f9ba70 RTNETLINK答案:不支持的操作 – vikas

+0

運行命令與sudo –