SOLUTION VERIFIED
- February 5 2014
Environment
- Red Hat Enterprise Linux 6 (All Versions)
- Red Hat Enterprise Linux 5 (All Versions)
Issue
- Need to configure VLAN on bonded interface and a bridge on top of this VLAN tagged bonded interface.
Resolution
- Configure the interface configuration files as below:NOTE: In below example, physical interfaces are named as
eth0
andeth1
, bonded interface is named asbond0
, VLAN over bond is named asbond0.402
and a bridge over this VLAN is named asbr0
.
/etc/sysconfig/network-scripts/ifcfg-eth0-----------------------------------------DEVICE=eth0ONBOOT=yesNM_CONTROLLED=noMASTER=bond0SLAVE=yesHWADDR=XX:XX:XX:XX:XX:XXBOOTPROTO=noneUSERCTL=no/etc/sysconfig/network-scripts/ifcfg-eth1-----------------------------------------DEVICE=eth1ONBOOT=yesNM_CONTROLLED=noMASTER=bond0SLAVE=yesHWADDR=XX:XX:XX:XX:XX:XXBOOTPROTO=noneUSERCTL=no/etc/sysconfig/network-scripts/ifcfg-bond0-----------------------------------------DEVICE=bonde0ONBOOT=yesNM_CONTROLLED=noUSERCTL=noBOOTPROTO=noneBONDING_OPTS="mode=1 miimon=100"/etc/sysconfig/network-scripts/ifcfg-bond0.402----------------------------------------------DEVICE=bond0.402ONBOOT=yesNM_CONTROLLED=noBOOTPROTO=noneVLAN=yesBRIDGE=br0/etc/sysconfig/network-scripts/ifcfg-br0----------------------------------------DEVICE=br0TYPE=BridgeBOOTPROTO=staticONBOOT=yesNM_CONTROLLED=noIPADDR=X.X.X.XNETMASK=X.X.X.XGATEWAY=X.X.X.X
- For RHEL5 , add below line to
/etc/modprobe.conf
so as to load module.
alias bond0 bonding
NOTE: RHEL6 does not need above step.
- Restart network service.
service network restart