OEL6.5键合mode=802.3ad无连接
我在OEL6.5上配置了2 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-债券0
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 out:
[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端口配置在开关上:
#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并得到答案:无法到达的目的地主机
我的错误在哪里?
发布于 2014-11-15 22:25:22
就像fukawi2说的,键很好,IP地址是问题所在。
你真的在局域网上配置了10.0.0.0/16吗?它可能是10.0.0.0/24吗?或者其他IP范围?
不要使用ifconfig和route,它们已经过时了。相反,请使用ip address和ip route。
https://serverfault.com/questions/644284
复制相似问题