The sep segment command adds an Ethernet interface to a specified SEP segment and configures the role of the Ethernet interface.
The undo sep segment command removes an Ethernet interface from a specified SEP segment and deletes the interface role configuration.
By default, an Ethernet interface is not added to a specified SEP segment and is not configured with a role.
sep segment segment-id [ edge [ no-neighbor ] { primary | secondary } ]
undo sep segment segment-id
Parameter | Description | Value |
---|---|---|
segment-id |
Specifies the ID of the SEP segment to which an Ethernet interface is added. |
The value is an integer that ranges from 1 to 1024. |
edge |
Specifies the Ethernet interface added to the SEP segment as an edge interface. |
- |
no-neighbor |
Specifies the Ethernet interface as a no-neighbor edge interface. |
- |
primary |
Specifies the Ethernet interface as a primary edge interface. |
- |
secondary |
Specifies the Ethernet interface as a secondary edge interface. |
- |
Ethernet interface view, GE interface view, XGE interface view, MultiGE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, 25GE interface view
Usage Scenario
A Layer 2 interface can forward SEP packets only after being added to a SEP segment. Each Layer 2 switching device in a SEP segment is a node. Each node can have at most two Layer 2 interfaces added to the same SEP segment.
When using the sep segment command:
If no parameter is specified, this command adds an Ethernet interface to a specified SEP segment and configures the interface as a common interface.
In a SEP segment, all interfaces except edge interfaces and blocked interfaces are common interfaces.
A common interface monitors the status of the directly-connected SEP link. When the link status changes, the interface sends a topology change notification message to notify its neighbors. Then the topology change notification message is flooded on the link until it finally reaches the primary edge interface. The primary edge interface determines how to process the link change.
If edge and primary are specified, this command adds an Ethernet interface to the specified SEP segment and configures the interface as the primary edge interface.
A SEP segment has only one primary edge interface, which is determined by the configuration and primary edge interface election. The primary edge interface initiates blocked interface preemption, terminates packets, and sends topology change notification messages to other networks.
If edge and secondary are specified, this command adds an Ethernet interface to the specified SEP segment and configures the interface as the secondary edge interface.
A SEP segment has only one secondary edge interface, which is determined by the configuration and secondary edge interface election. The secondary edge interface terminates packets and sends topology change notification messages to other networks.
If edge, no-neighbor, and primary are specified, this command adds an Ethernet interface to the specified SEP segment and configures the interface as the no-neighbor primary edge interface.
An interface at the edge of a SEP segment is a no-neighbor edge interface. There are two types of no-neighbor edge interface: no-neighbor primary edge interface and no-neighbor secondary edge interface. You can configure the role of a no-neighbor edge interface. A no-neighbor edge interface terminates packets and sends topology change notification messages to other networks. It is commonly used to interconnect Huawei devices and non-Huawei devices or interconnect Huawei devices and devices that do not support SEP.
If edge, no-neighbor, and secondary are specified, this command adds an Ethernet interface to the specified SEP segment and configures the interface as the no-neighbor secondary edge interface.
To view the role of an interface added to a SEP segment, run the display sep topology or display sep interface command.
Precautions
You have created a SEP segment and configured a control VLAN and protected instances.
To add an interface to a SEP segment, configure the interface as a hybrid or trunk interface.
If no-neighbor is not specified, the interface to be added to the SEP segment is not an STP or RRPP interface.
Two interfaces at the edge of a SEP segment must be configured as edge interfaces. The roles of the interfaces are defined by users.
All the interfaces on the network are Up so that the SEP segment is complete and the displayed topology information is correct.