一台h3c s7510E下面连着一台华为s5700交换机,要做链路聚合,经过测试完成配置:
华为交换机配置:
interface Eth-Trunk2 #创建聚合接口,注意要使用默认的manual模式
port link-type trunk #设置接口为trunk模式
port trunk allow-pass vlan 10 #配置允许通过的vlan ID
interface GigabitEthernet0/0/47 #进入要做聚合的接口
undo negotiation auto #取消端口自动配置
eth-trunk 2 #加入聚合接口
#
interface GigabitEthernet0/0/48
undo negotiation auto
eth-trunk 2
h3c交换机配置:
[Quidway] interface Bridge-Aggregation 1 #创建聚合接口,要使用默认的静态模式
port link-type trunk
port trunk permit vlan 1 100 600 610
[Quidway] interface GigabitEthernet1/0/11 #进入要聚合的端口
port link-mode bridge # port bridge enable
port link-aggregation group 1 #将端口加入聚合接口
[Quidway] interface GigabitEthernet1/0/12
port link-mode bridge # port bridge enable
port link-aggregation group 1
HWS5700 配置完成后查看聚合状态:
[Quidway] display interface Eth-Trunk 1 Eth-Trunk1 current state : UP Line protocol current state : UP Description: Switch Port, Link-type : trunk(configured), PVID : 1, Hash arithmetic : According to SIP-XOR-DIP,Maximal BW: 2G, Current BW: 2G, The Maximum Frame Length is 9216 IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 48d5-391d-e605 Current system time: 2017-07-20 09:01:41 Last 300 seconds input rate 2734328 bits/sec, 399 packets/sec Last 300 seconds output rate 1804536 bits/sec, 369 packets/sec Input: 42304756 packets, 41316437119 bytes Unicast: 38125370, Multicast: 775584 Broadcast: 3403802, Jumbo: 0 Discard: 0, Pause: 0 Frames: 0 Total Error: 0 CRC: 0, Giants: 0 Jabbers: 0, Fragments: 0 Runts: 0, DropEvents: 0 Alignments: 0, Symbols: 0 Ignoreds: 0 Output: 32282015 packets, 16416396025 bytes Unicast: 31707192, Multicast: 478599 Broadcast: 96224, Jumbo: 0 Discard: 0, Pause: 0 Total Error: 0 Collisions: 0, ExcessiveCollisions: 0 Late Collisions: 0, Deferreds: 0 Buffers Purged: 0 Input bandwidth utilization : 0.14% Output bandwidth utilization : 0.09% ----------------------------------------------------- PortName Status Weight ----------------------------------------------------- GigabitEthernet0/0/47 UP 1 GigabitEthernet0/0/48 UP 1 ----------------------------------------------------- The Number of Ports in Trunk : 2 #成员端口有2个了 The Number of UP Ports in Trunk : 2 [Quidway]
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,这样就容易成功。
因为是自己亲身体验过的。
H3C:默认是静态模式,下面是配成动态lacp命令
[switch-A-Bridge-Aggregation1]link-aggregation mode dynamic
HW关闭自动协商的命令
[Quidway-GigabitEthernet0/0/1]undo negotiated auto
转发于:http://blog.chinaunix.net/xmlrpc.php?r=blog/article&uid=20794884&id=5759211
少部分按照自己配置的过程做了一些调整了修改。
下面简单介绍下H3C静态lacp和动态lacp
H3C配置静态LACP汇聚组
进入系统视图 system-view
创建汇聚组 link-aggregation group agg-id mode static
进入以太网端口视图 interface interface-type interface-number
将以太网端口加入汇聚组 port link-aggregation group agg-id
动态lacp:
进入系统视图 system-view
配置系统优先级 lacp system-priority system-priority可选 缺省情况下,系统优先级为32768
进入以太网端口视图 interface interface-type interface-number
开启端口LACP协议 lacp enable 缺省情况下,端口的LACP协议处于关闭状态
配置端口优先级 lacp port-priority port-priority 缺省情况下,端口优先级为32768