Configuring a Level 1 Carrier CE to Access Level 1 Carrier PEs

When the Level 1 carrier and Level 2 carrier are in different ASs, the Level 2 carrier functions as the VPN user of the Level 1 carrier, the same as the CE of the PE in the basic BGP/MPLS IP VPN.

Procedure

  1. Create a VPN instance on a 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 ip address ip-address { mask | mask-length }

      The IP address is configured for the interface.

    11. Run mpls

      MPLS is enabled on the interface.

    12. Run commit

      The configuration is committed.

  2. Configure labeled BGP on a Level 1 carrier PE.
    1. Run system-view

      The system view is displayed.

    2. Run route-policy route-policy-name permit node node

      A route-policy is created for the Level 1 carrier CE.

    3. Run apply mpls-label

      An action of allocating MPLS labels to the selected IPv4 routes is configured in the route-policy.

    4. Run quit

      Return to the system view.

    5. Run bgp as-number1

      The BGP view is displayed.

    6. Run ipv4-family vpn-instance vpn-instance-name

      The BGP-VPN instance IPv4 address family view is displayed.

    7. Run peer ipv4-address as-number as-number

      A Level 1 carrier CE is configured as an EBGP peer of the Level 1 carrier PE.

    8. Run peer ipv4-address label-route-capability

      The capability of exchanging labeled IPv4 routes is enabled.

    9. Run peer ipv4-address route-policy route-policy-name export

      Labels are assigned to the routes advertised to the Level 1 carrier CE.

    10. Run commit

      The configuration is committed.

  3. Configure labeled BGP on the Level 1 carrier CE between it and the Level 1 carrier PE.
    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 CE 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 quit

      Return to the system view.

    6. Run route-policy route-policy-name permit node node

      A route-policy is created for the Level 1 carrier CE.

    7. Run apply mpls-label

      An action of allocating MPLS labels to the selected IPv4 routes is configured in the route-policy.

    8. Run quit

      Return to the system view.

    9. Run bgp as-number1

      The BGP view is displayed.

    10. Run peer ipv4-address as-number as-number

      The Level 1 carrier PE is configured as an EBGP peer of the Level 1 carrier CE.

    11. Run peer ipv4-address label-route-capability

      The capability of exchanging labeled IPv4 routes is enabled.

    12. Run peer ipv4-address route-policy route-policy-name export

      Labels are assigned to the routes advertised to the Level 1 carrier CE.

    13. (Optional) Run peer ip-address allow-as-loop [ number ]

      Routing loops are permitted.

      Perform this step if the Level 1 carrier and Level 2 carriers belong to different ASs and Level 2 carriers belong to the same AS.

    14. Run commit

      The configuration is committed.

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