1. Because NetworkManager does not support bridging, You Need To disableNetworkManagerservcie. #/etc/init. d/NetworkManagerstop # serviceNetworkManageroff2, # cd/etc/sysconfig/network-scripts /#
1. Because NetworkManager does not support bridging, You need to disable NetworkManager servcie.
#/Etc/init. d/NetworkManager stop
# Service NetworkManager off
2. # cd/etc/sysconfig/network-scripts/
# Vi ifcfg-eth0 as follows
DEVICE = eth0
TYPE = Ethernet
HWADDR = 1c: 6f: 65: dd: d4: d8
NM_CONTROLLED = yes
ONBOOT = yes
BOOTPROTO = dhcp
BRIDGE = "vSwitch0"
# Vi ifcfg-vSwitch0 bridge configuration file
DEVICE = vSwitch0
HWADDR = 1c: 6f: 65: dd: d4: d8
TYPE = Bridge
BOOTPROTO = static
IPADDR = 10.10.10.65
NETMASK = 255.255.255.0
GATEWAY = 10.10.10.1
BROADCAST = 10.10.0000255
DNS1 = 10.10.10.21
ONBOOT = yes
3. restart the system
# Init 6
Done
4. View Bridges
# Brctl show
Bridge name bridge id STP enabled interfaces
VSwitch0 8000.1c6f65ddd4d8 no eth0
Vnet0
Virbr0 8000.000000000000 yes
To enable STP of vSwitch0, perform the following operations:
# Brctl stp vSwitch0 on
# Brctl show
Bridge name bridge id STP enabled interfaces
VSwitch0 8000.1c6f65ddd4d8 yes eth0
Vnet0
Virbr0 8000.000000000000 yes