Configuring the Level 1 Carrier CE to Access the Level 1 Carrier PE (Using LDP Multi-Instance)

When the Level 1 carrier and Level 2 carrier are in the same AS, the Level 1 carrier takes the Level 2 carrier as its VPN user.

Procedure

  1. Create a VPN instance on the Level 1 carrier PE.
    1. Run system-view

      The system view is displayed.

    2. Run ip vpn-instance vpn-instance-name

      A VPN instance is created, and the VPN instance view is displayed.

    3. Run ipv4-family

      The VPN instance IPv4 address family is enabled, and the view of this address family is displayed.

    4. Run route-distinguisher route-distinguisher

      An RD is set for the VPN instance IPv4 address family.

    5. Run apply-label per-route

      The label distribution mode is set to per-route per-label.

    6. Run vpn-target vpn-target &<1-8> [ both | export-extcommunity | import-extcommunity ]

      A VPN target is configured for the VPN instance IPv4 address family.

    7. Run quit

      Return to the system view.

    8. Run interface interface-type interface-number

      The view of the interface connected to the Level 1 carrier CE is displayed.

    9. Run ip binding vpn-instance vpn-instance-name

      The interface is associated with the VPN instance.

    10. Run commit

      The configuration is committed.

  2. Configure LDP multi-instance and IGP multi-instance on a Level 1 carrier PE.
    1. Run system-view

      The system view is displayed.

    2. Run mpls ldp vpn-instance vpn-instance-name

      LDP is enabled for the created VPN instance.

    3. Run quit

      Return to the system view.

    4. Run interface interface-type interface-number

      The view of the interface connected to the Level 1 carrier CE is displayed.

    5. Run mpls

      MPLS is enabled on the interface.

    6. Run mpls ldp

      LDP is enabled on the interface.

    7. Run quit

      Return to the system view.

    8. Run commit

      The configuration is committed.

    9. Configure an IGP between the Level 1 carrier PE and Level 1 carrier CE.

      The RIP multi-instance, the OSPF multi-instance or the IS-IS multi-instance can be used on PE as an IGP. In the IGP multi-instance view, BGP routes are imported; in the BGP-VPN instance address family view, IGP routes are imported. The detailed configuration is not mentioned here.

  3. Configure LDP and an IGP on a Level 1 carrier CE.
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The view of the interface connected to the Level 1 carrier PE is displayed.

    3. Run ip address ip-address { mask | mask-length }

      The IP address is configured for the interface.

    4. Run mpls

      MPLS is enabled on the interface.

    5. Run mpls ldp

      LDP is enabled on the interface.

    6. Run mpls ldp transport-address interface

      The IP address of the current interface is used to set up an LDP session.

    7. Run quit

      Return to the system view.

    8. Run commit

      The configuration is committed.

    9. Configure an IGP between the Level 1 carrier CE and Level 1 carrier PE.

      RIP, OSPF, or IS-IS can be used on the CE as an IGP between the CE and the Level 1 carrier PE. The detailed configuration is not mentioned here.

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