华为设备配置SEP封闭环

在这里插入图片描述

  1. 配置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
  2. 配置二层转发功能
    [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
  3. 验证配置结果
    在这里插入图片描述

当G0/0/3 shutdown时

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值