Delete the NIC, port, and bridge associated with a VM on the host.
1) run the ovs-vsctl command to view all the bridge information of the host.
[[Email protected] ~] # Ovs-vsctl show
169dc0d6-0c44-42df-9bd5-5e1f380a8704
Bridge Br-int
Port int-Br-int
Interface int-Br-int
Port phy-Br-int
Interface phy-Br-int
Port "EM2"
Interface "EM2"
Port Br-int
Interface Br-int
Type: Internal
Port "qvo2bb4fd90-f1"
Tag: 1
Interface qvo2bb4fd90-f1"
Ovs_version: "1.11.0"
2) Delete the qvo2bb4fd90-f1 port under the Br-int Bridge
[[Email protected] ~] # Ovs-vsctl del-port Br-int qvo2bb4fd90-f1
3) view the bridge information again. The port just deleted
[[Email protected] ~] # Ovs-vsctl show
169dc0d6-0c44-42df-9bd5-5e1f380a8704
Bridge Br-int
Port int-Br-int
Interface int-Br-int
Port phy-Br-int
Interface phy-Br-int
Port "EM2"
Interface "EM2"
Port Br-int
Interface Br-int
Type: Internal
Ovs_version: "1.11.0"
3) Use ifconfig to view global interface information
[[Email protected] ~] # Ifconfig | grep hwaddr
Br-int link encap: Ethernet hwaddr 74: 86: 7A: D9: 05: 19
Em1 link encap: Ethernet hwaddr 74: 86: 7A: D9: 05: 18
EM2 link encap: Ethernet hwaddr 74: 86: 7A: D9: 05: 19
INT-Br-int linkencap: Ethernet hwaddr 42: D4: 65: 7c: EE: 5E
Phy-Br-int linkencap: Ethernet hwaddrae: 70: 7f: C8: 4E: 53
The qbr2bb4fd90-f1Link encap: Ethernet hwaddrf2: 6e: 69: E9: 7b: 62.
The qvb2bb4fd90-f1Link encap: Ethernet hwaddrf2: 6e: 69: E9: 7b: 62.
Qvo2bb4fd90-f1Link encap: Ethernet hwaddr F2: 12: 9A: D9: 85: 58
Tap2bb4fd90-f1Link encap: Ethernet hwaddrfe: 16: 3E: 0f: 72: 20
Virbr0 link encap: Ethernet hwaddr 52: 54: 00: 07: 56: A2
4), the virtual machine associated with the 4 port qbr2bb4fd90-f1qvb2bb4fd90-f1 qvo2bb4fd90-f1 tap2bb4fd90-f1 are down
[[Email protected] ~] # Ifconfig qbr2bb4fd90-f1 down
[[Email protected] ~] # Ifconfig qvb2bb4fd90-f1 down
[[Email protected] ~] # Ifconfig qvo2bb4fd90-f1 down
[[Email protected] ~] # Ifconfig tap2bb4fd90-f1 down
5) view the port information globally.
[[Email protected] ~] # Ifconfig | grep hwaddr
Br-int link encap: Ethernet hwaddr 74: 86: 7A: D9: 05: 19
Em1 link encap: Ethernet hwaddr 74: 86: 7A: D9: 05: 18
EM2 link encap: Ethernet hwaddr 74: 86: 7A: D9: 05: 19
INT-Br-int linkencap: Ethernet hwaddr42: D4: 65: 7c: EE: 5E
Phy-Br-int linkencap: Ethernet hwaddrae: 70: 7f: C8: 4E: 53
Virbr0 link encap: Ethernet hwaddr 52: 54: 00: 07: 56: A2
6) run the brctl command to view all bridge information.
[[Email protected] ~] # Brctl show
Bridge name bridge id stp enabled Interfaces
Qbr2bb4fd90-f1 8000. f26e69e97b62 no qvb2bb4fd90-f1
Tap2bb4fd90-f1
Virbr0 8000.5254000756a2 Yes virbr0-nic
[[Email protected] ~] #
7), delete the Virtual Machine bridge qbr2bb4fd90-f1
[[Email protected] ~] # Brctl delbr qbr2bb4fd90-f1
[[Email protected] ~] # Brctl show
Bridge name bridge id stp enabled Interfaces
Virbr0 8000.5254000756a2 Yes virbr0-nic
[[Email protected] ~] #
8) restart the server Nic if possible.
[[Email protected] ~] # Service network restart
This article is from the "zhanguo1110" blog, please be sure to keep this source http://zhanguo1110.blog.51cto.com/5750817/1543027