smart link和聚合链路综合实验

实验拓扑

在这里插入图片描述

实验需求

  1. SW1和SW2 ;SW5和SW6配置聚合链路
  2. SW2和SW3 SW4 SW5配置smart link链路备份
  3. SW5和SW6配置vlan 10 和 vlan 20,并ping通

实验步骤

首先在SW 2 ,3 ,4 ,5 配置vlan 链路类型为trunk链路,并关闭STP服务防止广播风暴。

[sw2]int g1/0/1
[sw2-GigabitEthernet1/0/1]port link-type trunk
[sw2-GigabitEthernet1/0/1]port trunk permit vlan 10 20 30 40
[sw2]int g1/0/2
[sw2-GigabitEthernet1/0/2]port link-type trunk
[sw2-GigabitEthernet1/0/2]port trunk permit vlan 10 20 30 40
[sw2]dis vlan
 Total VLANs: 5
 The VLANs include:
 1(default), 10, 20, 30, 40
[sw2]int g1/0/1
[sw2-GigabitEthernet1/0/1]undo stp en
[sw2-GigabitEthernet1/0/1]int g1/0/2
[sw2-GigabitEthernet1/0/2]undo stp en



[sw3]int g1/0/1
[sw3-GigabitEthernet1/0/1]port link-type trunk
[sw3-GigabitEthernet1/0/1]port trunk permit vlan 10 20 30 40
[sw3-GigabitEthernet1/0/1]int g1/0/2
[sw3-GigabitEthernet1/0/2]port link-type trunk
[sw3-GigabitEthernet1/0/2]port trunk permit vlan 10 20 30 40
[sw3]dis vlan
 Total VLANs: 4
 The VLANs include:
 1(default), 10, 20, 30,40

[sw3]int g1/0/1
[sw3-GigabitEthernet1/0/1]undo stp en
[sw3-GigabitEthernet1/0/1]int g1/0/2
[sw3-GigabitEthernet1/0/2]undo stp en



[sw4]int g1/0/1
[sw4-GigabitEthernet1/0/1]port link-type trunk
[sw4-GigabitEthernet1/0/1]port trunk permit vlan 10 20 40
[sw4-GigabitEthernet1/0/1]int g1/0/2
[sw4-GigabitEthernet1/0/2]port link-type trunk
[sw4-GigabitEthernet1/0/2]port trunk permit vlan 10 20 40

[sw4]int g1/0/1
[sw4-GigabitEthernet1/0/1]undo stp en
[sw4-GigabitEthernet1/0/1]int g1/0/2
[sw4-GigabitEthernet1/0/2]undo stp en

SW5同理

[sw5]
[sw5]int g1/0/1
[sw5-GigabitEthernet1/0/1]undo stp en
[sw5-GigabitEthernet1/0/1]int g1/0/2
[sw5-GigabitEthernet1/0/2]undo stp en

配置主备


[sw2]stp region-configuration
[sw2-mst-region]ins 1 vlan 10
[sw2-mst-region]ins 2 vlan 20
[sw2-mst-region]active region-configuration
[sw2]smart-link group 1
[sw2-smlk-group1]protectd-vlan reference-instance 1
[sw2-smlk-group1]flush enable control-vlan 30
[sw2-smlk-group1]port g1/0/1 primary
[sw2-smlk-group1]port g1/0/2 secondary


[sw2]smart-link group 2
[sw2-smlk-group2]protected-vlan reference-instance 2
[sw2-smlk-group2]flush enable control-vlan 40
[sw2-smlk-group2]port g1/0/1 secondary
[sw2-smlk-group2]port g1/0/2 primary

在这里插入图片描述
此时SW2 G1/0/1为主,此时将G1/0/1down再次查看,为ACTIVE的是G1/0/2。再次开启看G1/0/1是否回到AVTIVE
在这里插入图片描述

再次开启端口G1/0/1 看G1/0/1是否回到AVTIVE
在这里插入图片描述
开将G1/0/1抢占为ACTIVE

[sw2-smlk-group1]preemption mode role
[sw2-smlk-group1]%Nov 17 17:21:31:106 2020 sw2 SMLK/4/SMLK_LINK_SWITCH: Status of port GigabitEthernet1/0/1 in smart link group 1 changes to active.

SW3 SW4配置monitor LINK的up 和down

[sw3]monitor-link group 1
[sw3-mtlk-group1]port g1/0/1 uplink
[sw3-mtlk-group1]port g1/0/2 downlink


[sw4]monitor-link group 1
[sw4-mtlk-group1]port g1/0/1 uplink
[sw4-mtlk-group1]port g1/0/2 downlink

然后配置聚合

[sw2]int g1/0/3
[sw2-GigabitEthernet1/0/3]port link-type trunk
[sw2-GigabitEthernet1/0/3]port trunk permit vlan 10 20
[sw2-GigabitEthernet1/0/3]int g1/0/4
[sw2-GigabitEthernet1/0/4]port link-type trunk
[sw2-GigabitEthernet1/0/4]port trunk permit vlan 10 20
[sw2-GigabitEthernet1/0/4]int g1/0/5
[sw2-GigabitEthernet1/0/5]port link-type trunk
[sw2-GigabitEthernet1/0/5]port trunk permit vlan 10 20
[sw2]int Bridge-Aggregation 1
[sw2-Bridge-Aggregation1]link-aggregation mode dynamic
[sw2-Bridge-Aggregation1]port link-type trunk
[sw2-Bridge-Aggregation1]port trunk permit vlan 10 20




[sw5]int g1/0/3
[sw5-GigabitEthernet1/0/3]port link-type trunk
[sw5-GigabitEthernet1/0/3]port trunk permit vlan 10 20
[sw5-GigabitEthernet1/0/3]int g1/0/4
[sw5-GigabitEthernet1/0/4]port link-type trunk
[sw5-GigabitEthernet1/0/4]port trunk permit vlan 10 20
[sw5-GigabitEthernet1/0/4]int g1/0/5
[sw5-GigabitEthernet1/0/5]port link-type trunk
[sw5-GigabitEthernet1/0/5]port trunk permit vlan 10 20
[sw5]int Bridge-Aggregation 1
[sw5-Bridge-Aggregation1]link-aggregation mode dynamic
[sw5-Bridge-Aggregation1]port link-type trunk
[sw5-Bridge-Aggregation1]port trunk permit vlan 10 20

[sw1]int g1/0/1
[sw1-GigabitEthernet1/0/1]port link-type trunk
[sw1-GigabitEthernet1/0/1]port trunk permit vlan 10 20
[sw1-GigabitEthernet1/0/1]int g1/0/2
[sw1-GigabitEthernet1/0/2]port link-type trunk
[sw1-GigabitEthernet1/0/2]port trunk permit vlan 10 20
[sw1-GigabitEthernet1/0/2]int g1/0/3
[sw1-GigabitEthernet1/0/3]port link-type trunk
[sw1-GigabitEthernet1/0/3]port trunk permit vlan 10 20
[sw1-Bridge-Aggregation1]link-aggregation selected-port maximum 2



[sw6]int g1/0/1
[sw6-GigabitEthernet1/0/1]port link-type trunk
[sw6-GigabitEthernet1/0/1]port trunk permit vlan 10 20
[sw6-GigabitEthernet1/0/1]int g1/0/2
[sw6-GigabitEthernet1/0/2]port link-type trunk
[sw6-GigabitEthernet1/0/2]port trunk permit vlan 10 20
[sw6-GigabitEthernet1/0/2]int g1/0/3
[sw6-GigabitEthernet1/0/3]port link-type trunk
[sw6-GigabitEthernet1/0/3]port trunk permit vlan 10 20
[sw6]int Bridge-Aggregation 1
[sw6-Bridge-Aggregation1]link-aggregation mode dynamic
[sw6-Bridge-Aggregation1]port link-type trunk
[sw6-Bridge-Aggregation1]port trunk permit vlan 10 20
[sw6-Bridge-Aggregation1]link-aggregation selected-port maximum 2

端口SW1和SW6的vlan信息在这里插入图片描述
在这里插入图片描述
测试
SW6pingSW1
在这里插入图片描述
在这里插入图片描述


版权声明:本文为LSY6502333原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。