一台h3c s7510E下面连着一台华为s5700交换机,要做链路聚合,经过测试完成配置:
华为交换机配置:
interface Eth-Trunk2 #创建聚合接口,注意要使用默认的manual模式
port link-type trunk #设置接口为trunk模式
port trunk allow-pass vlan 100 600 610 #配置允许通过的vlan ID
interface GigabitEthernet0/0/1 #进入要做聚合的接口
undo negotiation auto #取消端口自动配置
eth-trunk 2 #加入聚合接口
#
interface GigabitEthernet0/0/2
undo negotiation auto
eth-trunk 2
h3c交换机配置:
interface Bridge-Aggregation3 #创建聚合接口,要使用默认的静态模式
port link-type trunk
port trunk permit vlan 1 100 600 610
interface GigabitEthernet3/0/27 #进入要聚合的端口
port link-mode bridge
port link-aggregation group 3 #将端口加入聚合接口
interface GigabitEthernet3/0/27
port link-mode bridge
port link-aggregation group 3
配置完成后查看聚合状态:
华为交换机查看:
]dis trunkmembership eth-trunk 2
Trunk ID: 2
Used status: VALID
TYPE: ethernet
Working Mode : Normal
Number Of Ports in Trunk = 2
Number Of Up Ports in Trunk = 2
Operate status: up
Interface GigabitEthernet0/0/2, valid, operate up, weight=1
Interface GigabitEthernet0/0/1, valid, operate up, weight=1
dis eth-trunk 2
Eth-Trunk2's state information is:
WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIP
Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8
Operate status: up Number Of Up Port In Trunk: 2 #成员端口有2个了
--------------------------------------------------------------------------------
PortName Status Weight
GigabitEthernet0/0/2 Up 1
GigabitEthernet0/0/1 Up 1
H3c交换机查看
dis link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port Status: S -- Selected, U -- Unselected
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired
Aggregation Interface: Bridge-Aggregation3
Aggregation Mode: Static
Loadsharing Type: Shar
Port Status Priority Oper-Key
--------------------------------------------------------------------------------
GE3/0/27 S 32768 2
GE3/0/28 S 32768 2 #两个端口状态都是S即成功
总结:配置期间走了不少弯路,最后发现不同交换机直接配置链路聚合只能都使用手动模式(静态模式)
的lacp,这样就容易成功。
阅读(14865) | 评论(0) | 转发(0) |