# Vim Ifcfg-eth0
Device= "eth0" bootproto= "Static" Hwaddr= "54:04:a6:a7:ff:6c" nm_controlled= "yes" onboot= "yes" type= "Ethernet" uuid= " 9b1c6600-538a-410d-8c93-144598dc5fa4 "ipaddr=" 192.168.0.100 "netmask=" 255.255.255.0 "gateway=" 192.168.0.1 "dns1=" 202.106.46.151 "dns2=" 202.106.195.68 "bridge=" br0 "//Add such a word" br0 "for the name of the virtual network card to be created bridge=" BR1 "
Then create the configuration file
#cp Ifcfg-{eth0,br0}
# Vim Ifcfg-br0 and IVCFG-BR1
Device= "BR0"//device name, must and Bridge= "" in the same, and this network card configuration file name is the same type= "bridge"//Specify the type of bridge noboot= "yes" Bootpro to= "Static" Ipaddr= "192.168.0.101" netmask= "255.255.255.0" gateway= "192.168.0.1" dns1= "202.106.46.151" dns2= " 202.106.195.68 "delay=" 0 "//monitor traffic in the MAC address, a convenient maintenance MAC address table, can not write
Then service network restart
If necessary, you can delete/etc/udev/rule....../70-...... net .... Related lines in
Then modprobe-r the network card model and modprobe NIC model heavy-duty NIC driver to re-identify
Linux Bridging Virtual network card