Openstack的删除错误网桥,虚拟网络
在实验openstack的各种网络模式时,可能会产生一些错误的网络指向,需要删除那些网桥。
执行前
[root@node-9 ~]# ifconfig br40 Link encap:Ethernet HWaddr FA:16:3E:F3:68:A4 inet addr:172.17.39.4 Bcast:172.17.39.255 Mask:255.255.255.0 inet6 addr: fe80::dcfb:8bff:fe62:5171/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:5 errors:0 dropped:0 overruns:0 frame:0 TX packets:34 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:872 (872.0 b) TX bytes:4529 (4.4 KiB) vlan40 Link encap:Ethernet HWaddr FA:16:3E:F3:68:A4 inet6 addr: fe80::f816:3eff:fef3:68a4/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:40 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:4977 (4.8 KiB)
执行命令
[root@node-9 ~]# vconfig rem vlan40 Removed VLAN -:vlan40:- [root@node-9 ~]# ifconfig br40 down [root@node-9 ~]# brctl delbr br40
在次执行ifconfig,将看到不在存在这2个虚拟网络和网桥了