No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Configuration Guide - VPN 01

NE05E and NE08E V300R003C10SPC500

This is NE05E and NE08E V300R003C10SPC500 Configuration Guide - VPN
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring Level 1 Carrier CE to Access Level 1 Carrier PE (Inter-AS)

Configuring Level 1 Carrier CE to Access Level 1 Carrier PE (Inter-AS)

When the first carrier and the second carrier are in different ASs, the first carrier takes the second carrier as its VPN user.

Procedure

  • Creating 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 IPv4 address family is enabled for the VPN instance and the VPN instance IPv4 address family view is displayed.

    4. Run route-distinguisher route-distinguisher

      The RD of the VPN instance IPv4 address family is configured.

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

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

    6. Run quit

      Return to the system view.

    7. Run interface interface-type interface-number

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

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

      The interface is bound with the VPN instance.

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

      The IP address of the interface is configured.

    10. Run mpls

      The MPLS capability is enabled on the interface.

    11. Run commit

      The configuration is committed.

  • Configuring Labeled BGP on the Level 1 Carrier PE
    1. Run system-view

      The system view is displayed.

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

      The routing policy applied to the Level 1 carrier CE is configured.

    3. Run apply mpls-label

      The label is allocated to the IPv4 route.

    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-number2

      The Level 1 carrier CE is specified as the EBGP peer.

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

      The exchange of labeled IPv4 routes is enabled.

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

      The label is allocated to the route advertised by the Level 1 carrier CE.

    10. Run commit

      The configuration is committed.

  • On a Level 1 Carrier CE, Configuring Labeled BGP Between the Level 1 Carrier CE 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 PE.

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

      The IP address of the interface is configured.

    4. Run mpls

      MPLS is enabled on the interface.

    5. Run quit

      Return to the system view.

    6. Run route-policy route-policy-name1 permit node seq-number

      The routing policy applied to the Level 1 carrier PE is configured.

    7. Run apply mpls-label

      The label is allocated to the IPv4 route.

    8. Run quit

      Return to the system view.

    9. Run bgp as-number2

      The BGP view is displayed.

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

      The Level 1 carrier PE is specified as the EBGP peer.

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

      The exchange of labeled IPv4 routes is enabled.

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

      The label is allocated to the route advertised by the Level 1 carrier PE.

    13. Run commit

      The configuration is committed.

  • On a Level 1 Carrier CE, Configuring Labeled BGP Between the Level 1 Carrier CE and the Level 2 Carrier PE
    1. Run system-view

      The system view is displayed.

    2. Run route-policy route-policy-name2 permit node seq-number

      The routing policy applied to the Level 2 carrier PE is created.

    3. Run if-match mpls-label

      The IPv4 routes with specified label are matched.

    4. Run apply mpls-label

      The label is allocated to the IPv4 route.

    5. Run quit

      Return to the system view.

    6. Run bgp as-number2

      The BGP view is displayed.

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

      The Level 2 carrier PE is specified as the IBGP peer of the Level 1 carrier CE.

    8. Run peer ipv4-address connect-interface loopback interface-number

      The interface on which the TCP connection is set up is specified.

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

      The exchange of labeled IPv4 routes is enabled.

    10. Run peer ipv4-address route-policy route-policy-name2 export

      The label is allocated to the labeled IPv4 route advertised to the Level 2 carrier PE.

    11. Run import-route protocol process-id

      The internal route of the Level 2 carrier network is imported.

    12. Run commit

      The configuration is committed.

  • Configuring Labeled BGP on the Level 2 Carrier PE
    1. Run system-view

      The system view is displayed.

    2. Run bgp as-number2

      The BGP view is displayed.

    3. Run peer ipv4-address as-number as-number2

      The Level 1 carrier CE is specified as the IBGP peer of the Level 2 carrier PE.

    4. Run peer ipv4-address connect-interface loopback interface-number

      The interface on which the TCP connection is set up is specified.

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

      The exchange of labeled IPv4 routes is enabled.

    6. Run commit

      The configuration is committed.

Translation
Download
Updated: 2019-01-14

Document ID: EDOC1100058925

Views: 37250

Downloads: 61

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next