- 配置SEP基本功能
(1)配置Segment ID为1的SEP段和VLAN ID为10控制VLAN
[LSW1]sep segment 1
[LSW1-sep-segment1]control-vlan 10
[LSW1-sep-segment1]protected-instance all
[LSW2]sep segment 1
[LSW2-sep-segment1]control-vlan 10
[LSW2-sep-segment1]protected-instance all
[LSW3]sep segment 1
[LSW3-sep-segment1]control-vlan 10
[LSW3-sep-segment1]protected-instance all
[LSW4]sep segment 1
[LSW4-sep-segment1]control-vlan 10
[LSW4-sep-segment1]protected-instance all
[LSW5]sep segment 1
[LSW5-sep-segment1]control-vlan 10
[LSW5-sep-segment1]protected-instance all
(2)将环网上的设备加入Segment1,并配置端口角色
[LSW1-GigabitEthernet0/0/3]port link-type hybrid
[LSW1-GigabitEthernet0/0/3]stp disable //去使能STP
[LSW1-GigabitEthernet0/0/3]sep segment 1 edge primary //主边缘端口
[LSW1-GigabitEthernet0/0/2]port link-type hybrid
[LSW1-GigabitEthernet0/0/2]stp disable
[LSW1-GigabitEthernet0/0/2]sep segment 1 edge secondary //副边缘端口
[LSW2-GigabitEthernet0/0/1]port link-type hybrid
[LSW2-GigabitEthernet0/0/1]stp disable
[LSW2-GigabitEthernet0/0/1]sep segment 1
[LSW2-GigabitEthernet0/0/4]port link-type hybrid
[LSW2-GigabitEthernet0/0/4]stp disable
[LSW2-GigabitEthernet0/0/4]sep segment 1
[LSW3-GigabitEthernet0/0/1]port link-type hybrid
[LSW3-GigabitEthernet0/0/1]stp disable
[LSW3-GigabitEthernet0/0/1]sep segment 1
[LSW3-GigabitEthernet0/0/5]port link-type hybrid
[LSW3-GigabitEthernet0/0/5]stp disable
[LSW3-GigabitEthernet0/0/5]sep segment 1
[LSW4-GigabitEthernet0/0/2]port link-type hybrid
[LSW4-GigabitEthernet0/0/2]stp disable
[LSW4-GigabitEthernet0/0/2]sep segment 1
[LSW4-GigabitEthernet0/0/5]port link-type hybrid
[LSW4-GigabitEthernet0/0/5]stp disable
[LSW4-GigabitEthernet0/0/5]sep segment 1
[LSW5-GigabitEthernet0/0/3]port link-type hybrid
[LSW5-GigabitEthernet0/0/3]stp disable
[LSW5-GigabitEthernet0/0/3]sep segment 1
[LSW5-GigabitEthernet0/0/4]port link-type hybrid
[LSW5-GigabitEthernet0/0/4]stp disable
[LSW5-GigabitEthernet0/0/4]sep segment 1
(3)在主边缘端口位于的设备LSW1上配置阻塞端口的方式为依据端口优先级,优先阻塞优先级高的端口
[LSW1]sep segment 1
[LSW1-sep-segment1]block port optima
(4)提高LSW5上的端口GE0/0/4优先级, 优先阻塞优先级高的端口
[LSW5-GigabitEthernet0/0/4]sep segment 1 priority 128
(5)在主边缘端口位于的设备LSW1上配置抢占模式为延时抢占,延时抢占时间没有缺省值
[LSW1-sep-segment1]preempt delay 30 - 配置二层转发功能
[LSW1]vlan batch 10 100 200
[LSW1-GigabitEthernet0/0/1]port link-type hybrid
[LSW1-GigabitEthernet0/0/1]port hybrid pvid vlan 200
[LSW1-GigabitEthernet0/0/1]port hybrid tagged vlan 100
[LSW1-GigabitEthernet0/0/1]port hybrid untagged vlan 200
[LSW1-GigabitEthernet0/0/2]port hybrid tagged vlan 10 100 200
[LSW1-GigabitEthernet0/0/3]port hybrid tagged vlan 10 100
[LSW2-GigabitEthernet0/0/2]port link-type hybrid
[LSW2-GigabitEthernet0/0/2]port hybrid pvid vlan 200
[LSW2-GigabitEthernet0/0/2]port hybrid tagged vlan 100
[LSW2-GigabitEthernet0/0/2]port hybrid untagged vlan 200
[LSW2-GigabitEthernet0/0/1]port hybrid tagged vlan 10 100 200
[LSW2-GigabitEthernet0/0/4]port hybrid tagged vlan 10 100
[LSW3]vlan batch 10 100
[LSW3-GigabitEthernet0/0/1]port hybrid tagged vlan 100
[LSW3-GigabitEthernet0/0/5]port hybrid tagged vlan 10 100
[LSW4]vlan batch 10 100
[LSW4-GigabitEthernet0/0/2]port hybrid tagged vlan 100
[LSW4-GigabitEthernet0/0/5]port hybrid tagged vlan 100
[LSW5]vlan batch 10 100
[LSW5-GigabitEthernet0/0/3]port hybrid tagged vlan 100
[LSW5-GigabitEthernet0/0/4]port hybrid tagged vlan 100
[LSW5-GigabitEthernet0/0/6]port link-type hybrid
[LSW5-GigabitEthernet0/0/6]port hybrid tagged vlan 100
[LSW6]vlan batch 100
[LSW6-GigabitEthernet0/0/5]port link-type hybrid
[LSW6-GigabitEthernet0/0/5]port hybrid tagged vlan 100 - 验证配置结果
当G0/0/3 shutdown时