首页 > 代码库 > Configure a bridge interface over a VLAN tagged bonded interface
Configure a bridge interface over a VLAN tagged bonded interface
SOLUTION VERIFIED
- February 5 2014 KB340153
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 aseth0
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=eth0
ONBOOT=yes
NM_CONTROLLED=no
MASTER=bond0
SLAVE=yes
HWADDR=XX:XX:XX:XX:XX:XX
BOOTPROTO=none
USERCTL=no
/etc/sysconfig/network-scripts/ifcfg-eth1
-----------------------------------------
DEVICE=eth1
ONBOOT=yes
NM_CONTROLLED=no
MASTER=bond0
SLAVE=yes
HWADDR=XX:XX:XX:XX:XX:XX
BOOTPROTO=none
USERCTL=no
/etc/sysconfig/network-scripts/ifcfg-bond0
-----------------------------------------
DEVICE=bonde0
ONBOOT=yes
NM_CONTROLLED=no
USERCTL=no
BOOTPROTO=none
BONDING_OPTS="mode=1 miimon=100"
/etc/sysconfig/network-scripts/ifcfg-bond0.402
----------------------------------------------
DEVICE=bond0.402
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
VLAN=yes
BRIDGE=br0
/etc/sysconfig/network-scripts/ifcfg-br0
----------------------------------------
DEVICE=br0
TYPE=Bridge
BOOTPROTO=static
ONBOOT=yes
NM_CONTROLLED=no
IPADDR=X.X.X.X
NETMASK=X.X.X.X
GATEWAY=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
Configure a bridge interface over a VLAN tagged bonded interface
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。