OEL 6.5绑定模式= 802.3ad无连接

OEL 6.5绑定模式= 802.3ad无连接

我在OEL 6.5上configuration了2nic。 到思科交换机(lacp

---------- | eth0 |=====+ +~~physical-link~~\ ---------- || --------- | ---------- |===| bond0 |==> | switch | ---------- || --------- | ---------- | eth2 |=====+ +~~physical-link~~/ ---------- 

在/ etc / sysconfig / network中的脚本/的ifcfg-eth0的

 DEVICE=eth0 TYPE=Ethernet ONBOOT=yes BOOTPROTO=none HWADDR=40:f2:e9:26:21:62 MASTER=bond0 SLAVE=yes 

在/ etc / sysconfig / network中的脚本/的ifcfg-ETH2

 DEVICE=eth2 TYPE=Ethernet ONBOOT=yes BOOTPROTO=none HWADDR=40:f2:e9:26:21:64 MASTER=bond0 SLAVE=yes 

在/ etc / sysconfig / network中的脚本/的ifcfg-bond0

 DEVICE=bond0 TYPE=Ethernet BOOTPROTO=none ONBOOT=yes IPADDR=10.0.2.8 NETMASK=255.255.0.0 GATEWAY=10.0.0.1 BONDING_OPTS="mode=802.3ad miimon=100 xmit_hash_policy=layer2+3" 

ifconfig输出:

 [a1@srv1]# ifconfig bond0 bond0 Link encap:Ethernet HWaddr 40:f2:e9:26:1c:fa UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1 RX packets:51651 errors:0 dropped:256 overruns:0 frame:0 TX packets:269 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:12059710 (11.5 MiB) TX bytes:19006 (18.5 KiB) 

bond0 out:

 [a1@srv1]# cat /proc/net/bonding/bond0 Ethernet Channel BOnding Driver: v3.7.1 (April 27, 2011) Bonding Mode: IEEE 802.3ad Dynamic linc aggregation Transmit Hash Policy: layer2+3 (2) MII Status: up MII Polling Interval (ms): 100 Up Delay (ms): 0 Down Delay (ms): 0 802.3ad info LACP rate: slow Min links: 0 Aggregator selection policy (ad_select): stable Active Aggregator Info: Aggregator ID: 1 Number of ports: 2 Actor Key: 17 Partner Key: 9 Partner Mac Address: 68:ef:bd:08:52:40 Slave Interface: eth0 MII Status: up Speed: 100 Mbps Duplex: full Link Failure Count: 0 Permanent WH addr: 40:f2:e9:26:21:62 Aggregator ID: 1 Slave queue ID: 0 Slave Interface: eth2 MII Status: up Speed: 100 Mbps Duplex: full Link Failure Count: 1 Permanent WH addr: 40:f2:e9:26:21:64 Aggregator ID: 1 Slave queue ID: 0 

路线

 [a1@srv1]#route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 bond0 10.0.0.0 0.0.0.0.0 255.255.0.0 U 0 0 0 bond0 

交换机上的端口configuration:

 #show etherchannel load-balance EtherChannel Load-Balancing Configuration: src-dst-ip #sh run interface Port-channel4 description trunk-to-srv1 switchport switchport access vlan 123 switchport trunk allowed vlan 123 switchport mode trunk #show etherchannel summary Number of channel-groups in use: 10 Number of aggregators: 10 Group Port-channel Protocol Ports ------+-------------+-----------+----------------------------------------------- 4 Po4(SU) LACP Gi1/25(P) Gi2/25(P) Gi5/25(P) 

然后我平gw并得到答案:目的地主机无法访问

我的错误在哪里?

fukawi2说,债券是好的,IP地址是问题。

你真的在你的局域网上configuration了10.0.0.0/16吗? 它可能是10.0.0.0/24而不是? 或者其他一些IP范围?

不要使用ifconfigroute ,它们已经过时了。 而是使用ip addressip route