博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Configure a bridge interface over a VLAN tagged bonded interface
阅读量:7080 次
发布时间:2019-06-28

本文共 1631 字,大约阅读时间需要 5 分钟。

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 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=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
 

转载于:https://www.cnblogs.com/echo1937/p/6239040.html

你可能感兴趣的文章
Advanced Threat Analytics 2016
查看>>
SFB 项目经验-31-批量为n台服务器导入PFX证书
查看>>
0-Microsoft Lync Server 2010-部署
查看>>
混乱开发,既伤身体又伤感情
查看>>
Hi,我们的代码重构了
查看>>
电子商务站点遭勒索 F5路见不平显神功
查看>>
如何在项目实施过程提高系统运维水平
查看>>
sqlldr的介绍
查看>>
iptables从入门到精通
查看>>
马哥Linux线下活动和学员风采
查看>>
PHP中$_SERVER的详细参数与说明
查看>>
Android Studio使用说明
查看>>
功能应用程序延迟发送:4款定时发送短信的应用程序
查看>>
linux shell脚本获得当前文件路径
查看>>
畅想(3)-下一步的计划
查看>>
Tail Recursion, Recursion, Concepts and Examples
查看>>
任务超期后的定时器处理
查看>>
myeclipse乱码问题和 编码设置
查看>>
WEB打印的几种方案
查看>>
linux下安装QT过程
查看>>