Configuring an Interface as a Peer-link Interface
Context
A peer-link is a direct aggregated link between two devices configured with M-LAG. It is used to exchange protocol packets and transmit some traffic, and ensures normal running of M-LAG.
Prerequisites
The direct link between two devices configured with M-LAG has been configured as an aggregated link.
When member interfaces of a peer-link are deployed on the same card, a fault of the card causes a peer-link fault. To improve reliability, it is recommended that member interfaces of the peer-link be deployed on different cards.
Procedure
- Run system-view
The system view is displayed.
- Run interface eth-trunk trunk-id
The Eth-Trunk interface view is displayed.
- Run trunkport interface-type { interface-number1 [ to interface-number2 ] } &<1-n>
A member interface is added to the Eth-Trunk.
When you add member interfaces to an Eth-Trunk in a batch, if one interface cannot be added to the Eth-Trunk, all subsequent interfaces in the batch cannot be added to the Eth-Trunk, either.
For the CE12800E that has the ED-E/EG-E/EGA-E series cards installed, the value of n is 128. For other models and CE12800E that has the FD-X series cards installed, the value of n depends on the assign forward eth-trunk mode command.
For the CE12800, the value of n depends on the assign forward eth-trunk mode command.
- Run mode lacp-static
The Eth-Trunk is configured to work in static LACP mode.
By default, an Eth-Trunk works in manual load balancing mode. To ensure M-LAG reliability, you are advised to configure the Eth-Trunk to work in static LACP mode.
- Run stp enable
STP is enabled on the interface.
By default, STP is enabled on an interface.
- (Optional) Run stp binding process process-id1 [ to process-id2 ] link-share
The peer-link is configured in link-share mode and the port is added to multiple STP processes to complete STP calculation.
- Run peer-link peer-link-id
The interface is configured as a peer-link interface.
By default, no interface is configured as a peer-link interface.
An interface configured as a peer-link interface joins all VLANs by default.
An interface configured as a peer-link interface cannot be configured with any service.
If the ERPS control VLAN, TRILL carrier VLAN, Super-VLAN, or FCoE VLAN needs to be configured, perform 7 to remove the peer-link interface from the control VLAN, carrier VLAN, Super-VLAN, or FCoE VLAN. Otherwise, the control VLAN, carrier VLAN, Super-VLAN, or FCoE VLAN cannot be configured.
If the network-side VLANIF interface is configured, perform 7 to remove the peer-link interface from the VLAN. Otherwise, heartbeat detection may take ineffective.
- (Optional) Run port vlan exclude { { vlan-id1 [ to vlan-id2 ] } &<1-10> }
The VLANs not allowed by the peer-link interface are specified.
By default, no allowed VLAN is specified on a peer-link interface.
- Run commit
The configuration is committed.