1. 程式人生 > >H3C對接華為S5700s---配置鏈路聚合

H3C對接華為S5700s---配置鏈路聚合

鏈路 select art max con esc onf 協議 rmi

一臺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

H3C對接華為S5700s---配置鏈路聚合