By default, BGP peers cannot process labeled IPv4 routes.
8. Run:
peer ipv4-address as-number as-number
The peer ASBR is specified as the EBGP peer.
9. (Optional) Run:
peer { ipv4-address | group-name } ebgp-max-hop [ hop-count ]
The maximum number of hops is configured for the EBGP connection.
Generally, one or multiple directly connected physical links exist between EBGP
peers. If the directly connected physical link(s) are not available, run the peer ebgp-
max-hop command to ensure that the TCP connection can be set up between the EBGP
peers through multiple hops.
10. Run:
peer ipv4-address label-route-capability [ check-tunnel-reachable ]
The exchange of the labeled IPv4 routes with the peer ASBR is enabled.
– If tunnel reachability checking is enabled, BGP advertises IPv4 unicast routes to
peers when routed tunnels are unreachable or advertises labeled routes to peers
when routed tunnels are reachable. This eliminates the risk of establishing an MP-
EBGP peer relationship between PEs over a faulty LSP because this will cause
data forwarding failures.
– If tunnel reachability checking is disabled, BGP advertises labeled routes to peers
whether the tunnels for imported routes are reachable or not.
----End
3.8.3 Configuring a Routing Policy to Control Label Distribution
Configure a routing policy to control label allocation for the inter-AS BGP LSP. If labeled IPv4
routes are advertised to the PE of the local AS, re-allocate MPLS labels to these routes. If routes
sent by the PE of the local AS are advertised to the peer ASBR, allocate MPLS labels to these
routes.
Procedure
l Creating a routing policy
Perform the following steps on the ASBR:
1. Run:
system-view
The system view is displayed.
2. Run:
route-policy policy-name1 permit node node
The routing policy applied to the local PE is created.
For the labeled IPv4 routes received from peer ASBRs, and sent to the PEs in the same
AS, this policy ensures that a new MPLS label is allocated.
3. Run:
if-match mpls-label
Huawei AR1200 Series Enterprise Routers
Configuration Guide - VPN 3 BGP MPLS IP VPN Configuration
Issue 01 (2012-04-20) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
108