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

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

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

我在 OEL 6.5 上将 2nic 配置为绑定。到思科交换机 (lacp)

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

/etc/sysconfig/网络脚本/ifcfg-eth0

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

/etc/sysconfig/网络脚本/ifcfg-eth2

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

/etc/sysconfig/网络脚本/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 输出:

[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)

然后我 ping gw 并得到答案:目标主机无法访问

我的错误在哪里?

答案1

喜欢富卡威2说,绑定很好,IP 寻址是个问题。

您真的10.0.0.0/16在 LAN 上进行了配置吗?有可能吗10.0.0.0/24?或者是其他 IP 范围?

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

相关内容