Creating a VSI and Configuring LDP Signaling

Configuring VSI IDs and peer IP addresses are mandatory for LDP VPLS services. VSI IDs are used to identify VSIs in PW signaling negotiation. Perform the following steps on the PEs at both ends of a PW.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run vsi vsi-name [ static | auto ]

    A VSI is created, and the VSI view is displayed.

    The VSI name must be unique on a device

  3. (Optional) Run description description

    A description is configured for the VSI.

  4. Run encapsulation { ethernet | vlan }

    An encapsulation mode is configured for the VSI.

    • VSIs have two encapsulation modes: Ethernet and VLAN. On the public network, a packet encapsulated in Ethernet mode does not carry a VLAN tag, and a packet encapsulated in VLAN mode carries a VLAN tag.

    • The two ends of a PW must be configured with the same encapsulation mode.

  5. (Optional) Run tnl-policy policy-name

    A tunnel policy is applied to the VSI.

    If you do not use tnl-policy policy-name to specify a tunnel policy when configuring the VSI peer in Step 9, run this command to apply a public tunnel policy to the VSI.

    The tunnel policy specified during VSI peer configuration takes precedence over the tunnel policy applied to the VSI view. If tunnel policies are configured in both manners, only the tunnel policy specified during VSI peer configuration takes effect.

  6. (Optional) Run mtu mtu

    The MTU of the VSI is configured for VPLS negotiation.

    If the MTUs of the same VSI on two PEs are different, the two PEs may fail to establish a connection.

  7. Run pwsignal ldp

    LDP is configured as the signaling protocol for the VSI, and the VSI LDP view is displayed.

  8. (Optional) Run control-word enable

    The control word function is enabled for all PWs in the VSI.

  9. Run vsi-id vsi-id

    A VSI ID is configured.

    • The VSI IDs of the two ends of a PW must be the same; otherwise, the VSI cannot be created. If the VSI IDs of the two ends of a PW are different, specify negotiation-vc-id vc-id for PW negotiation.

    • VSIs exist only on PEs. A PE can be configured with multiple VSIs, but the ID of each VSI must be unique on a PE.

  10. (Optional) Run admin-vsi

    The current service VSI is configured as the mVSI.

  11. Run peer peer-address [ negotiation-vc-id vc-id ] [ tnl-policy policy-name ] [ secondary ] [ ignore-standby-state ]

    A VSI peer is configured.

    • peer-address specifies the IP address of the peer, usually referring to the LSR ID of the peer.

    • Generally, the VSI IDs on both ends of a VSI must be the same. If they are different, specify negotiation-vc-id vc-id to re-specify the VC ID used for parameter negotiation.

    • If a tunnel policy is configured, you can use tnl-policy policy-name to reference the tunnel policy when configuring the peer.

    • On a network where PW redundancy is configured, if the primary PW fails, traffic will be switched to the secondary PW for transmission. Normally, if the secondary PW is in standby state, it cannot forward traffic and data packets may be lost. If ignore-standby-state is configured for the secondary PW, the secondary PW will ignore the secondary state indicated by the peer device and be always in the forwarding state, preventing packet loss during a primary/secondary PW switchover.

  12. (Optional) Run peer peer-address [ negotiation-vc-id vc-id ] pw pw-name

    The VSI-LDP-PW view is displayed.

  13. (Optional) Run control-word enable

    The control word function is enabled for the PW.

  14. (Optional) Run undo interface-parameter-type vccv

    The VCCV byte (an interface parameter) is deleted from the Label Mapping message.

  15. (Optional) Run ignore-stp-loopcheck

    STP loopback detection is disabled for the PW.

  16. (Optional) Run status-code-change flush-mac disable

    The VPLS PW is configured not to clear local MAC addresses when it receives the remote status code of 20.

  17. Run commit

    The configuration is committed.

Follow-up Procedure

If the specified VSI is an mVSI, you must run the track admin-vsi vsi-name command in the service VSI view to bind the service VSI to the mVSI.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >