Configure a bridge interface over a VLAN tagged bonded interface

SOLUTION VERIFIED

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 and eth1, bonded interface is named as bond0, VLAN over bond is named as bond0.402 and a bridge over this VLAN is named as br0.
/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
				
时间: 2024-10-11 23:00:13

Configure a bridge interface over a VLAN tagged bonded interface的相关文章

如何在交换机上删除vlanif、pvid、tagged vlan

如果是pvid port hybrid pvid vlan AAAport hybrid untagged vlan AAA 如果是taggedundo port hybrid tagged vlan BBBport hybrid tagged vlan CCC undo interface vlanif BBBvlan batch CCCinterface vlanif CCCip address ip mask

openstack-ansible Chapter 4. Deployment configuration

Initial environment configuration Copy the contents of the /opt/openstack-ansible/etc/openstack_deploy directory to the/etc/openstack_deploy directory. Change to the /etc/openstack_deploy directory. Copy the openstack_user_config.yml.example file to/

交换机基本配置明细解读

conf t service timestamps debug datetimelocaltime    #使用本地时间(精确到毫秒)标记DEBUG信息 service timestamps log datetimelocaltime      #使用本地时间(精确到毫秒)标记log信息 hostname xxxxxxxxxxxxxxxx enable secret xxxxxxxxxxxxxx vtp mode transparent                           #Vl

Part2 – OPENVSWICH – VLANs, Trunks, L3 VLAN interface, InterVLAN Routing – Configuration And Testing

In a previous tutorial we showed how to install Openvswitch on Qemu image with Microcore Linux. At the end of tutorial we created Openvswitch extension and submitted it to Microcore upstream. Assuming that Openvswitch is configured and functional, we

ros的公网IP配置在vlan接口上,而这个vlan又在桥接上的做法

vlan是202,ether1接的是交换机trunk口,公网IP是建立在vlan202接口上. vlan是建立在桥bridge1基础上. 参考官方文档 https://wiki.mikrotik.com/wiki/Manual:Interface/Bridge /interface bridge add name=bridge1 vlan-filtering=yes/interface vlan add interface=bridge1 name=vlan202 vlan-id=202/int

OpenStack —— 网络进阶Linux Bridge(七)

一.配置Linux Bridge Neutron默认使用ML2作为core plugin,其配置位于/etc/neutron/neutron.conf,控制节点和计算节点都需要在各自的neutron.conf 中配置core_plugin选项. 然后需要让ML2使用linux-bridge mechanism driver,ML2的配置文件位于/etc/neutron/plugins/ml2/ml2_conf.ini. [ml2] # ... mechanism_drivers = linuxb

不同vlan间的通信简单配置(三种方式)

不同vlan间的通信简单配置 1.单臂路由(图) 环境:一台路由器,一台二层交换机,两台pc机 二层交换机的配置一般模式:Switch>输入enable进入特权模式:Switch>enable输入configure terminal进入全局配置模式:Switch#configure terminal Enter configuration commands, one per line.  End with CNTL/Z.创建vlan 10 和 vlan 20:Switch(config)#vl

[转] VLAN原理详解

VLAN原理详解 标签: VLANAccess-LinkTrunk-Link802.1QISL 2013-07-26 18:05 27901人阅读 评论(15) 收藏 举报  分类: 网络通信/流媒体(30)  目录(?)[+] 1.为什么需要VLAN 1.1 什么是VLAN? VLAN(Virtual LAN),翻译成中文是“虚拟局域网”.LAN可以是由少数几台家用计算机构成的网络,也可以是数以百计的计算机构成的企业网络.VLAN所指的LAN特指使用路由器分割的网络——也就是广播域. 在此让我

LAB - CCNA Configure Per-Interface Inter-VLAN Routng

Topology Addressing Table Device Interface IP address Subnet Mask Dfault Gateway R1 G0/0 192.168.20.1 255.255.255.0 N/A   G0/1 192.168.10.1 255.255.255.0 N/A S1 VLAN010 192.168.10.11 255.255.255.0 192.168.10.1 S2 VLAN10 192.168.10.12 255.255.255.0 19