(补充)配置Smart-Link组和Monitor-Link组

wuchangjian2021-11-05 08:34:11编程学习

一.在SwithA和SwithB上配置Smart Link组

1.配置SwitchA
###Smart Link协议和STP协议互斥,所以要先关闭端口的STP功能。
[SwithA]interface gigabitethernet0/0/1
[SwithA-GigabitEthernet0/0/1]stp disable
[SwithA-GigabitEthernet0/0/1]interface gigabitethernet0/0/2
[SwithA-GigabitEthernet0/0/2]stp disable
[SwithA-GigabitEthernet0/0/2]quit

###在SwitchA创建Smart Link组1,并配置相应的主从端口,然后开启Flush帧的发送功能,其控制VLAN的编号为10,密码为1688
[SwithA]smart-link group 1
[SwithA-smlk-group1]port gigabitethernet0/0/1 master
[SwithA-smlk-group1]port gigabitethernet0/0/2 slave

[SwithA-smlk-group1]flush send control-vlan 10 password simple 1688

###在SwitchA的下行交换机配置Flush帧的接收和处理功能:指定其相应端口可以接收和处理携带控制编号为10的Flush帧。
[SwithC]interface gigabitethernet0/0/1
[SwithC-GigabitEthernet0/0/1]smart-link flush receive control-vlan 10 password simple 1688
[SwithC-GigabitEthernet0/0/1]interface gigabitethernet0/0/2
[SwithC-GigabitEthernet0/0/2]smart-link flush receive control-vlan 10 password simple 1688

###在Swith A上配置Smart Link回切功能,配置回切时间为30秒.然后开启Smart-Link组1的功能。
[SwithA-smlk-group1]restore enable
[SwithA-smlk-group1]timer wtr 30
[SwithA-smlk-group1]smart-link enable

2.配置SwitchB
###Smart Link协议和STP协议互斥,所以要先关闭端口的STP功能。
[SwithB]interfaBce gigabitethernet0/0/2
[SwithB-GigabitEthernet0/0/2]stp disable
[SwithB-GigabitEthernet0/0/2]interface gigabitethernet0/0/3
[SwithB-GigabitEthernet0/0/3]stp disable
[SwithB-GigabitEthernet0/0/3]quit

###在SwitchB创建Smart Link组1,并配置相应的主从端口,然后开启Flush帧的发送功能,其控制VLAN的编号为20,密码为1688
[SwithB]smart-link group 2
[SwithB-smlk-group2]port gigabitethernet0/0/2 master
[SwithB-smlk-group2]port gigabitethernet0/0/3 slave

[SwithB-smlk-group2]flush send control-vlan 20 password simple 1688

###在SwitchB的下行交换机配置Flush帧的接收和处理功能:指定其相应端口可以接收和处理携带控制编号为20的Flush帧。
[SwithD]interface gigabitethernet0/0/1
[SwithD-GigabitEthernet0/0/1]smart-link flush receive control-vlan 20 password simple 1688
[SwithD-GigabitEthernet0/0/1]interface gigabitethernet0/0/2
[SwithD-GigabitEthernet0/0/2]smart-link flush receive control-vlan 20 password simple 1688

###在SwithB上配置Smart Link回切功能,配置回切时间为30秒.然后开启Smart-Link组2的功能。
[SwithB-smlk-group2]restore enable
[SwithB-smlk-group2]timer wtr 30
[SwithB-smlk-group2]smart-link enable

二、在SwitchB和SwitchC上配置Monitor-Link

1.在SwitchB上配置Monitor-Link组1,并将smart-link group 2作为上行端口、GE0/0/1作为下行端口加入Monitor Link组1,并设定Monitor-Link组回切时间10秒
[SwitchB]monitor-link group 1
[SwitchB-mtlk-group1]port smart-link group 2 uplink
[SwitchB-mtlk-group1]port gigabitethernet0/0/1 downlink 1
[SwitchB-mtlk-group1]
[SwitchB-mtlk-group1]timer recover-time 10

2.在SwitchC上创建Monitor Link组2,将GE0/0/2作为上行端口、GE0/0/1作为下行端口加入到Monitor Link组2,并设定Monitor-Link组回切时间10秒。
[SwitchC]monitor-link group 2
[SwitchC-mtlk-group2]port gigabitethernet0/0/2 uplink
[SwitchC-mtlk-group2]port gigabitethernet0/0/1 downlink 1
[SwitchC-mtlk-group2]
[SwitchC-mtlk-group2]timer recover-time 10


 

 

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。