SOLUTION VERIFIED
- April 27 2013 KB26727
Environment
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
Issue
- How to create a bridge using a tagged vlan (8021.q) interface?
Resolution
- Create the VLAN interface (here using eth0)
# 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
- If using DHCP,
# vi /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
TYPE=Bridge
BOOTPROTO=dhcp
ONBOOT=yes
DELAY=0
- If not using DHCP,
# vi /etc/sysconfig/network-scripts/ifcfg-br0
DEVICE=br0
TYPE=Bridge
BOOTPROTO=static
ONBOOT=yes
IPADDR=<IP>
NETMASK=<SUBNET MASK>
DELAY=0
- After modifying these files a restart of the network service is needed.
# service network restart