[Router2-GigabitEthernet7/0/2]
quit
# Configure Router3.
[Router3]
interface gigabitethernet 7/0/1
[Router3-GigabitEthernet7/0/1]
stp disable
[Router3-GigabitEthernet7/0/1]
sep segment 1
[Router3-GigabitEthernet7/0/1]
sep segment 2
[Router3-GigabitEthernet7/0/1]
quit
[Router3]
interface gigabitethernet 7/0/2
[Router3-GigabitEthernet7/0/2]
stp disable
[Router3-GigabitEthernet7/0/2]
sep segment 1
[Router3-GigabitEthernet7/0/2]
sep segment 2
[Router3-GigabitEthernet7/0/2]
quit
# Configure Router4.
[Router4]
interface gigabitethernet 7/0/1
[Router4-GigabitEthernet7/0/1]
stp disable
[Router4-GigabitEthernet7/0/1]
sep segment 1
[Router4-GigabitEthernet7/0/1]
sep segment 2
[Router4-GigabitEthernet7/0/1]
quit
[Router4]
interface gigabitethernet 7/0/3
[Router4-GigabitEthernet7/0/3]
stp disable
[Router4-GigabitEthernet7/0/3]
sep segment 1
[Router4-GigabitEthernet7/0/3]
sep segment 2
[Router4-GigabitEthernet7/0/3]
quit
Step 4
Specify an interface to block.
# Configure delayed preemption and block an interface based on the device and interface names
on Router1 where the primary edge interface is located.
[Router1]
sep segment 1
[Router1-sep-segment1]
block port sysname Router3 interface gigabitethernet 7/0/1
[Router1-sep-segment1]
preempt delay 15
[Router1-sep-segment1]
quit
[Router1]
sep segment 2
[Router1-sep-segment2]
block port sysname Router2 interface gigabitethernet 7/0/1
[Router1-sep-segment2]
preempt delay 15
[Router1-sep-segment2]
quit
NOTE
l
In this configuration example, an interface fault needs to be simulated and then rectified to implement
delayed preemption. To ensure that delayed preemption takes effect on the two SEP segments, simulate
an interface fault in the two SEP segments. For example:
l
In SEP segment 1, run the
shutdown
command on GE 7/0/1 of Router2 to simulate an interface
fault. Then, run the
undo shutdown
command on GE7/0/1 to simulate interface fault recovery.
l
In SEP segment 2, run the
shutdown
command on GE 7/0/1 of Router3 to simulate an interface
fault. Then, run the
undo shutdown
command on GE7/0/1 to simulate interface fault recovery.
Step 5
Configure the Layer 2 forwarding function on CE1, CE2, and Router1 to Router4.
The configuration details are not mentioned here. For details, see the configuration files.
Step 6
Verify the configuration.
Simulate a fault, and then check whether the status of the blocked interface changes from blocked
to forwarding.
Run the
shutdown
command on GE7/0/1 of Router2 to simulate an interface fault.
Run the
display sep interface
command on Router3 to check whether the status of GE7/0/1 in
SEP segment 1 changes from blocked to forwarding.
[Router3]
display sep interface gigabitethernet 7/0/1
Huawei AR530&AR550 Series Industrial Switch Routers
Configuration Guide - Ethernet Switching
8 SEP Configuration
Issue 01 (2014-11-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
342