linux – 如何在RHEL 6.4 Server中配置绑定桥接器?
发布时间:2020-12-14 02:41:33 所属栏目:Linux 来源:网络整理
导读:已经安装了一个系统(rhel-server-6.4-x86_64-dvd.iso). KVM在哪集.主机和客机分配了自己的IP地址,为此桥接器配置了br0.一切正常.现在我们必须在结合方面建立一座桥梁. 将主机置于以下设置: [root@server ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
已经安装了一个系统(rhel-server-6.4-x86_64-dvd.iso). KVM在哪集.主机和客机分配了自己的IP地址,为此桥接器配置了br0.一切正常.现在我们必须在结合方面建立一座桥梁.
将主机置于以下设置: [root@server ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 HWADDR=f0:92:1c:0f:76:f8 MASTER=bond0 SLAVE=yes ONBOOT=yes [root@server ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth1 DEVICE=eth1 HWADDR=F0:92:1C:0F:76:FC MASTER=bond0 SLAVE=yes ONBOOT=yes [root@server ~]# cat /etc/sysconfig/network-scripts/ifcfg-bond0 DEVICE=bond0 ONBOOT=yes BRIDGE="br0" [root@server ~]# cat /etc/modprobe.conf alias bond0 bonding options 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/bond0 Ethernet Channel Bonding Driver: v3.6.0 (September 26,2009) Bonding Mode: fault-tolerance (active-backup) Primary Slave: None Currently Active Slave: eth1 MII Status: up MII Polling Interval (ms): 100 Up Delay (ms): 0 Down Delay (ms): 0 Slave Interface: eth0 MII Status: down Speed: Unknown Duplex: Unknown Link Failure Count: 0 Permanent HW addr: f0:92:1c:0f:76:f8 Slave queue ID: 0 Slave Interface: eth1 MII Status: up Speed: 10000 Mbps Duplex: full Link Failure Count: 0 Permanent HW addr: f0:92:1c:0f:76:fc Slave queue ID: 0 eth0失败了.虽然我期待看到如下内容: [root@server ~]# cat /proc/net/bonding/bond0 Ethernet Channel Bonding Driver: v3.6.0 (September 26,2009) Bonding Mode: fault-tolerance (active-backup) Primary Slave: None Currently Active Slave: eth0 MII Status: up MII Polling Interval (ms): 100 Up Delay (ms): 0 Down Delay (ms): 0 Slave Interface: eth0 MII Status: up Speed: 10000 Mbps Duplex: full Link Failure Count: 0 Permanent HW addr: f0:92:1c:0f:d5:e8 Slave queue ID: 0 Slave Interface: eth1 MII Status: up Speed: 10000 Mbps Duplex: full Link Failure Count: 0 Permanent HW addr: f0:92:1c:0f:d5:ec Slave queue ID: 0 问题本身在一个主题中,如何在RHEL 6.4 Server中配置桥接绑定? 解决方法
这是正确的配置,但有几点:
>根本不需要别名bond0绑定 eth0关闭的事实与桥接或绑定无关,对物理接口进行故障排除. ethtool eth0将显示它没有检测到链接. 重新安装电缆,更换电缆,尝试不同的交换机端口,尝试不同的NIC. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- linux – drbd服务无法启动/ WFConnection
- linux – 使用xargs时重定向到stdin而不是参数
- linux – 是否可以设置’expect’的退出代码
- Linux常用命令 - cd命令详解
- linux – 连接到第三方VPN服务器但不使用它作为默认路由?
- linux – Puppet有时候找不到像osfamily这样的标准事实
- 《信息安全系统设计基础》--Myod
- inotify和rsync实现实时同步
- linux – 为什么tomcat6在/ var / lib /和/usr/share /中都
- linux – erlang odbc:如何禁用oracle的autocommit