# vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 HWADDR=XX:XX:XX:XX:XX:XX ONBOOT=yes USERCTL=no # vi /etc/sysconfig/network-scripts/ifcfg-eth0.# (Where # is the vlan ID) DEVICE=eth0.# ONPARENT=yes TYPE=Ethernet VLAN=yes USERCTL=no BRIDGE=br0
# vi /etc/sysconfig/network-scripts/ifcfg-br0 DEVICE=br0 TYPE=Bridge BOOTPROTO=dhcp ONBOOT=yes DELAY=0
# vi /etc/sysconfig/network-scripts/ifcfg-br0 DEVICE=br0 TYPE=Bridge BOOTPROTO=static ONBOOT=yes IPADDR=<IP> NETMASK=<SUBNET MASK> DELAY=0
# service network restart
http://xxxxxx/Linuxjc/1183948.html TechArticle