路由器交换机配置SEP与smart Link混合实验
双上行组网是目前设备常用应用组网之一,该组网下通过生成树协议阻塞冗余链路,起备份作用。当主用链路故障时,将流量切换到备用链路。但即使采用快速生成树协议的快速迁移,也只能是秒级的收敛速度。这对于应用于电信级网络核心的高端以太网交换机,是非常不利的一个性能参数。基于这一原因,提出了Smart Link解决方案,针对双上行组网,实现主备链路冗余备份及故障快速迁移。
本次实验主要模拟smart Link
操作方法
- 01
一、搭建本次实验的拓扑环境 两台核心,一台接入,一个上行
- 02
二 、配置SEP的基础信息 1、配置SEP段信息 [S1]sep segment 1 [S1-sep-segment1]control-vlan 10 [S1-sep-segment1]protected-instance all [S1-sep-segment1]quit [S1]sep segment 2 [S1-sep-segment2]control-vlan 20 [S1-sep-segment2]protected-instance all [S2]sep segment 1 [S2-sep-segment1]control-vlan 10 [S2-sep-segment1]protected-instance all [S2-sep-segment1]quit [S2]sep segment 2 [S2-sep-segment2]control-vlan 20 [S2-sep-segment2]protected-instance all [S3]sep segment 2 [S3-sep-segment2]control-vlan 20 [S3-sep-segment2]protected-instance all [S4]sep segment 2 [S4-sep-segment2]control-vlan 20 [S4-sep-segment2]protected-instance all 2、配置SEP的接口信息 [S1]interface GigabitEthernet 0/0/9 [S1-GigabitEthernet0/0/9]stp disable [S1-GigabitEthernet0/0/9]sep segment 1 edge primary [S1-GigabitEthernet0/0/9]inter GigabitEthernet 0/0/10 [S1-GigabitEthernet0/0/10]stp disable [S1-GigabitEthernet0/0/10]sep segment 1 edge secondary [S1-GigabitEthernet0/0/10]inter GigabitEthernet 0/0/13 [S1-GigabitEthernet0/0/13]stp disable [S1-GigabitEthernet0/0/13]sep segment 2 edge primary [S2]interface GigabitEthernet 0/0/23 [S2-GigabitEthernet0/0/23]stp disable [S2-GigabitEthernet0/0/23]sep segment 2 edge secondary [S2-GigabitEthernet0/0/23]inter GigabitEthernet 0/0/9 [S2-GigabitEthernet0/0/9]stp disable [S2-GigabitEthernet0/0/9]sep segment 1 [S2-GigabitEthernet0/0/9]inter GigabitEthernet 0/0/10 [S2-GigabitEthernet0/0/10]stp disable [S2-GigabitEthernet0/0/10]sep segment 1 [S3]interface Ethernet 0/0/13 [S3-Ethernet0/0/13]stp disable [S3-Ethernet0/0/13]sep segment 2 [S3-Ethernet0/0/13]inter ethernet 0/0/23 [S3-Ethernet0/0/23]stp disable [S3-Ethernet0/0/23]sep segment 2 3、配置阻塞方式和抢占模式 [S1]sep segment 1 [S1-sep-segment1]block port optimal [S1-sep-segment1]quit [S1]sep segment 2 [S1-sep-segment2]block port [S1-sep-segment2]block port optimal [S2]interface GigabitEthernet 0/0/10 [S2-GigabitEthernet0/0/10]sep segment 1 priority 128 [S3]inter Ethernet 0/0/23 [S3-Ethernet0/0/23]sep segment 2 priority 128 [S1]sep segment 1 [S1-sep-segment1]preempt delay 30 [S1-sep-segment1]quit [S1]sep segment 2 [S1-sep-segment2]preempt delay 30 4、配置拓扑变更通告 [S1]sep segment 2 [S1-sep-segment2]tc-notify segment 1 [S2]sep segment 2 [S2-sep-segment2]tc-notify segment 1
- 03
三、验证SEP信息 关闭SW1的G0/0/1端口,观察SEP信息 [SW2]dis sep toSEP segment 1-----------------------------------------------------------------System Name Port Name Port Role Port Status-----------------------------------------------------------------SW1 GE0/0/1 primary forwardingSW2 GE0/0/1 common forwardingSW2 GE0/0/2 common discardingSW1 GE0/0/2 secondary forwarding SEP segment 2SEP detects a segment failure that may be caused by an incomplete topology-----------------------------------------------------------------System Name Port Name Port Role Port Status-----------------------------------------------------------------SW2 GE0/0/4 secondary forwardingSW3 GE0/0/2 common forwardingSW3 GE0/0/1 common discarding
- 04
四、配置smart Link信息 [S4]vlan 100 [S4-vlan100]quit [S4]interface Ethernet 0/0/14 [S4-Ethernet0/0/14]port link-type trunk [S4-Ethernet0/0/14]port trunk allow-pass vlan 100 [S4-Ethernet0/0/14]inter ethe0/0/24 [S4-Ethernet0/0/24]port link-type trunk [S4-Ethernet0/0/24]port trunk allow-pass vlan 100 [S1]vlan 100 [S1-vlan100]quit [S1]interface GigabitEthernet 0/0/14 [S1-GigabitEthernet0/0/14]port link-type trunk [S1-GigabitEthernet0/0/14]port trunk allow-pass vlan 100 [S2]vlan 100 [S2-vlan100]quit [S2]interface GigabitEthernet 0/0/24 [S2-GigabitEthernet0/0/24]port link-type trunk [S2-GigabitEthernet0/0/24]port trunk allow-pass vlan 100 [S4]smart-link group 1 [S4-smlk-group1]port Ethernet 0/0/14 master [S4-smlk-group1]port Ethernet 0/0/24 slave
- 05
五、验证smart Link的信息 [S4]display smart-link group 1 DeviceID: 5489-98ec-f012 Control-vlan ID: 100 Member Role State Flush Count Last-Flush-Time ---------------------------------------------------------------------- Ethernet0/0/14 Master Active 1 2008/01/05 03:11:18 UTC-05:13 Ethernet0/0/24 Slave Inactive 0 0000/00/00 00:00:00 UTC+00:00 关闭SW4的G0/0/1观察SW4的smart Link信息
- 06
六、配置SEP与smart Link混合信息 [S1]sep segment 1 [S1-sep-segment1]deal smart-link-flush [S2]sep segment 1 [S2-sep-segment1]deal smart-link-flush
- 07
七、查看设备信息,验证混合信息 [SW1]dis sep toSEP segment 1-----------------------------------------------------------------System Name Port Name Port Role Port Status-----------------------------------------------------------------SW1 GE0/0/1 primary forwardingSW2 GE0/0/1 common forwardingSW2 GE0/0/2 common discardingSW1 GE0/0/2 secondary forwarding SEP segment 2SEP detects a segment failure that may be caused by an incomplete topology-----------------------------------------------------------------System Name Port Name Port Role Port Status-----------------------------------------------------------------SW1 GE0/0/4 secondary discarding