实验7 链路聚合

谁都会走 提交于 2019-12-18 04:14:20

实验任务一:配置二层静态聚合

  1. 建立物理连接

  2. 基本配置
    [SWA-Vlan-interface10]ip ad 192.168.0.1 24
    [SWA]int rang ge 1/0/1 to ge 1/0/3
    [SWA-if-range]port link-type trunk
    [SWA-if-range]port trunk permit vlan 1 10
    [SWA-Bridge-Aggregation1]port link-type trunk
    [SWA-Bridge-Aggregation1]port trunk permit vlan 1 10
    [SWA]int rang ge 1/0/1 to ge 1/0/3
    [SWA-if-range]port link-aggregation group 1

[SWA]display interface Bridge-Aggregation 1
Bridge-Aggregation1
Current state: UP
IP packet frame type: Ethernet II, hardware address: ac53-ab8a-0200
Description: Bridge-Aggregation1 Interface
Bandwidth: 3000000 kbps
3Gbps-speed mode, full-duplex mode
Link speed type is autonegotiation, link duplex type is autonegotiation
PVID: 1
Port link-type: Trunk
VLAN Passing: 1(default vlan), 10
VLAN permitted: 1(default vlan), 10
Trunk port encapsulation: IEEE 802.1q
Last clearing of counters: Never
Last 300 second input: 0 packets/sec 0 bytes/sec 0%
Last 300 second output: 0 packets/sec 0 bytes/sec 0%
Input (total): 0 packets, 0 bytes
0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses
Input (normal): 0 packets, 0 bytes
0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses
Input: 0 input errors, 0 runts, 0 giants, 0 throttles
0 CRC, 0 frame, 0 overruns, 0 aborts
0 ignored, 0 parity errors
Output (total): 0 packets, 0 bytes
0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses
Output (normal): 0 packets, 0 bytes
0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses
Output: 0 output errors, 0 underruns, 0 buffer failures
0 aborts, 0 deferred, 0 collisions, 0 late collisions
0 lost carrier, 0 no carrier

[SWA]display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port: A -- Auto
Port Status: S -- Selected, U -- Unselected, I -- Individual
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired

Aggregate Interface: Bridge-Aggregation1
Aggregation Mode: Static//静态聚合
Loadsharing Type: Shar
Port Status Priority Oper-Key
--------------------------------------------------------------------------------
GE1/0/1 S 32768 1
GE1/0/2 S 32768 1
GE1/0/3 S 32768 1

HostA能ping通HostB。
即使关闭了其中一个接口。
实验任务二:配置二层动态聚合

  1. 建立物理连接
  2. 基本配置
    [SWA-Vlan-interface10]ip ad 192.168.0.1 24
    [SWA]int rang ge 1/0/1 to ge 1/0/3
    [SWA-if-range]port link-type trunk
    [SWA-if-range]port trunk permit vlan 1 10
    [SWA-Bridge-Aggregation1]port link-type trunk
    [SWA-Bridge-Aggregation1]port trunk permit vlan 1 10
    [SWA-Bridge-Aggregation1]link-aggregation mode dynamic//动态聚合模式
    [SWA]int rang ge 1/0/1 to ge 1/0/3
    [SWA-if-range]port link-aggregation group 1

[SWA-Bridge-Aggregation1]display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port: A -- Auto
Port Status: S -- Selected, U -- Unselected, I -- Individual
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired

Aggregate Interface: Bridge-Aggregation1
Aggregation Mode: Dynamic
Loadsharing Type: Shar
System ID: 0x8000, ac53-ab8a-0200
Local:
Port Status Priority Oper-Key Flag
--------------------------------------------------------------------------------
GE1/0/1 S 32768 1 {ACDEFG}
GE1/0/2 U 32768 1 {ACG}
GE1/0/3 U 32768 1 {ACG}
Remote:
Actor Partner Priority Oper-Key SystemID Flag
--------------------------------------------------------------------------------
GE1/0/1 0 32768 0 0x8000, 0000-0000-0000 {DEF}
GE1/0/2 0 32768 0 0x8000, 0000-0000-0000 {DEF}
GE1/0/3 0 32768 0 0x8000, 0000-0000-0000 {DEF}

在对端没有配置任何的情况下,动态聚合只能绑定一个端口。

对端进行和SWA同样的配置
[SWA-Bridge-Aggregation1]display link-aggregation verbose
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Port: A -- Auto
Port Status: S -- Selected, U -- Unselected, I -- Individual
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,
D -- Synchronization, E -- Collecting, F -- Distributing,
G -- Defaulted, H -- Expired

Aggregate Interface: Bridge-Aggregation1
Aggregation Mode: Dynamic//动态聚合
Loadsharing Type: Shar
System ID: 0x8000, ac53-ab8a-0200
Local:
Port Status Priority Oper-Key Flag
--------------------------------------------------------------------------------
GE1/0/1 S 32768 1 {ACDEF}
GE1/0/2 S 32768 1 {ACDEF}
GE1/0/3 S 32768 1 {ACDEF}
Remote:
Actor Partner Priority Oper-Key SystemID Flag
--------------------------------------------------------------------------------
GE1/0/1 2 32768 1 0x8000, ac53-b08d-0300 {ACDEF}
GE1/0/2 3 32768 1 0x8000, ac53-b08d-0300 {ACDEF}
GE1/0/3 4 32768 1 0x8000, ac53-b08d-0300 {ACDEF}

注:聚合端口配置不一致

  1. 第一类配置,例如MVRP,MSTP等,对链路汇聚没有影响
  2. 第二类配置,如端口隔离,Qinq配置,VLAN配置,MAC地址学习配置等配置不一样将不能成为Selected端口。
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!