linux – 如何在RHEL 6.4 Server中配置绑定桥接器?

linux – 如何在RHEL 6.4 Server中配置绑定桥接器?,第1张

概述已经安装了一个系统(rhel-server-6.4-x86_64-dvd.iso). KVM在哪集.主机和客机分配了自己的IP地址,为此桥接器配置了br0.一切正常.现在我们必须在结合方面建立一座桥梁. 将主机置于以下设置: [root@server ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0HWADDR=f0:9 已经安装了一个系统(rhel-server-6.4-x86_64-dvd.iso). KVM在哪集.主机和客机分配了自己的IP地址,为此桥接器配置了br0.一切正常.现在我们必须在结合方面建立一座桥梁.

将主机置于以下设置:

[root@server ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0HWADDR=f0:92:1c:0f:76:f8MASTER=bond0SLAVE=yesONBOOT=yes[root@server ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1DEVICE=eth1HWADDR=F0:92:1C:0F:76:FCMASTER=bond0SLAVE=yesONBOOT=yes[root@server ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond0 DEVICE=bond0ONBOOT=yesBRIDGE="br0"[root@server ~]# cat /etc/modprobe.conf alias bond0 bondingoptions bond0 mode=1 miimon=100[root@server ~]# cat /etc/sysconfig/network-scripts/ifcfg-br0 DEVICE="br0"NM_CONTRolLED="no"ONBOOT="yes"TYPE="BrIDge"BOOTPROTO="static"IPADDR="10.2.26.39"GATEWAY="10.2.26.1"MTU="1500"NETMASK="255.255.255.0"DEFROUTE="yes"IPV4_FAILURE_FATAL="yes"IPV6INIT="no"name="System br0"

查看:

[root@server ~]# cat /proc/net/bonding/bond0Ethernet Channel Bonding Driver: v3.6.0 (September 26,2009)Bonding Mode: fault-tolerance (active-backup)Primary Slave: NoneCurrently Active Slave: eth1MII Status: upMII Polling Interval (ms): 100Up Delay (ms): 0Down Delay (ms): 0Slave Interface: eth0MII Status: downSpeed: UnkNownDuplex: UnkNownlink Failure Count: 0Permanent HW addr: f0:92:1c:0f:76:f8Slave queue ID: 0Slave Interface: eth1MII Status: upSpeed: 10000 MbpsDuplex: fulllink Failure Count: 0Permanent HW addr: f0:92:1c:0f:76:fcSlave queue ID: 0

eth0失败了.虽然我期待看到如下内容:

[root@server ~]# cat /proc/net/bonding/bond0Ethernet Channel Bonding Driver: v3.6.0 (September 26,2009)Bonding Mode: fault-tolerance (active-backup)Primary Slave: NoneCurrently Active Slave: eth0MII Status: upMII Polling Interval (ms): 100Up Delay (ms): 0Down Delay (ms): 0Slave Interface: eth0MII Status: upSpeed: 10000 MbpsDuplex: fulllink Failure Count: 0Permanent HW addr: f0:92:1c:0f:d5:e8Slave queue ID: 0Slave Interface: eth1MII Status: upSpeed: 10000 MbpsDuplex: fulllink Failure Count: 0Permanent HW addr: f0:92:1c:0f:d5:ecSlave queue ID: 0

问题本身在一个主题中,如何在RHEL 6.4 Server中配置桥接绑定

解决方法 这是正确的配置,但有几点:

>根本不需要别名bond0绑定
>绑定配置应该是ifcfg-bondX中的BONDING_OPTS,而不是modprobe
>在桥上添加DELAY = 0,以防止它在接口启动时等待

eth0关闭的事实与桥接或绑定无关,对物理接口进行故障排除. ethtool eth0将显示它没有检测到链接.

重新安装电缆,更换电缆,尝试不同的交换机端口,尝试不同的NIC.

总结

以上是内存溢出为你收集整理的linux – 如何在RHEL 6.4 Server中配置绑定桥接器?全部内容,希望文章能够帮你解决linux – 如何在RHEL 6.4 Server中配置绑定桥接器?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/1035216.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存