链路聚合实验

实验需求

  1. 按照图示配置PC3和PC4的IP地址
  2. 在SW1和SW2的两条直连链路上配置链路聚合,实现链路冗余,并可以增加传输带宽
  3. SW1和SW2之间的直连链路要配置为Trunk类型,允许所有vlan通过
  4. 中断SW1和SW2之间的一条直连链路,测试PC3和PC4是否仍然能够继续访问

实验步骤

1.两台交换机首先先配置聚合,再配置Trunk。

[SW1]interface Bridge-Aggregation 1   创建聚合接口1
[SW1]interface g1/0/1
[SW1-GigabitEthernet1/0/1]port link-aggregation group 1  添加到1号聚合接口
[SW1]interface g1/0/2
[SW1-GigabitEthernet1/0/2]port link-aggregation group 1
[SW1]display link-aggregation summary  查看链路聚合信息
Aggregation Interface Type: 
BAGG -- Bridge-Aggregation, BLAGG -- Blade-Aggregation, RAGG -- Route-Aggregation, SCH-B -- Schannel-Bundle 
Aggregation Mode: S -- Static, D -- Dynamic 
Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing
Actor System ID: 0x8000, a290-b13b-0100

AGG        AGG   Partner ID              Selected  Unselected  Individual  Share
Interface  Mode                          Ports     Ports       Ports       Type 
--------------------------------------------------------------------------------
BAGG1      S     None                    2         0           0           Shar 

[SW1]display link-aggregation verbose  查看链路聚合状态
Aggregate Interface: Bridge-Aggregation1
Aggregation Mode: Static
Loadsharing Type: Shar
Management VLANs: None
  Port             Status  Priority Oper-Key
  GE1/0/1(R)       S       32768    1         
  GE1/0/2          S       32768    1         

2.两台交换机配置Trunk

[SW2]interface Bridge-Aggregation 1  进入聚合1

[SW2-Bridge-Aggregation1]port link-type trunk   配置Trunk
Configuring GigabitEthernet1/0/1 done.
Configuring GigabitEthernet1/0/2 done.

[SW2-Bridge-Aggregation1]port trunk permit vlan all  所有vlan通行

3.中断一台线路,查看是否正常

[SW1]interface g1/0/1

[SW1-GigabitEthernet1/0/1]shutdown 

<H3C>ping 1.1.1.3
Ping 1.1.1.3 (1.1.1.3): 56 data bytes, press CTRL_C to break
56 bytes from 1.1.1.3: icmp_seq=0 ttl=255 time=1.594 ms
56 bytes from 1.1.1.3: icmp_seq=1 ttl=255 time=1.093 ms
56 bytes from 1.1.1.3: icmp_seq=2 ttl=255 time=1.132 ms
56 bytes from 1.1.1.3: icmp_seq=3 ttl=255 time=1.856 ms
56 bytes from 1.1.1.3: icmp_seq=4 ttl=255 time=1.951 ms