To ensure that a primary PW fault does not interrupt services in a static PW FRR scenario, you need to configure a secondary PW for the primary PW, so that traffic can be switched to the secondary PW for transmission.
Procedure
- Configure a pair of primary and secondary PWs on each PE.
- Run the system-view command to enter the system view.
- Run the mpls l2vpn command to enable MPLS L2VPN.
- Run the quit command to return to the system view.
- (Optional) Configure a PW template.
- Run the pw-template pw-template-name command to create a PW template and enter the PW template view.
- Configure the attributes of the PW template. The sequence of the following steps is not fixed. Determine which steps to perform based on actual requirements.
- Run the peer-address ip-address command to specify the IP address of the peer device for the PW.
- Run the control-word command to enable the control word function.
- Run the tnl-policy policy-name command to specify the tunnel policy to be used by the PW.
- Run the mtu mtu-value command to configure the MTU in the PW template.
- Run the bfd-detect [ detect-multiplier multiplier | min-rx-interval rx-interval | min-tx-interval tx-interval ] * command to set BFD session detection parameters.
- Run the quit command to return to the system view.
- Run the interface interface-type interface-number [ .subinterface-number ] command to enter the AC interface view.
- Configure the primary PW.
Run either of the following commands to create a VPWS PW according to the interface type:
- Configure the secondary PW.
Run either of the following commands to create a secondary VPWS PW according to the interface type:
- Run the mpls l2vpn stream-dual-receiving command to configure the primary and secondary PWs to both receive packets.
In static PW FRR scenarios, if you do not configure the primary and secondary PWs to both receive packets, long-time packet loss or even service interruption may occur after a traffic switchover.
- Run the quit command to return to the system view.
- Run the commit command to commit the configuration.
- Configure VPWS switching on each SPE.
- Run the system-view command to enter the system view.
- Run the mpls l2vpn command to enable MPLS L2VPN.
- Run the quit command to return to the system view.
- Run the mpls switch-l2vc [ instance-name instance-name ] ip-address vc-id trans trans-label recv received-label [ tunnel-policy policy-name [ endpoint endpoint-address color color-value ] ] between ip-address vc-id trans trans-label recv received-label [ tunnel-policy policy-name [ endpoint endpoint-address color color-value ] ] encapsulation encapsulation-type [ control-word | no-control-word ] command to configure static VPWS switching.
- Run the commit command to commit the configuration.