187
8.
interface.
mpls ldp enable
By default, MPLS LDP is disabled
on the interface.
9. Return to system view.
quit
N/A
10.
Enter interface view of the
interface connected
remote ASBR.
interface
interface-type
interface-number
N/A
11.
interface.
mpls enable
By default, MPLS is disabled on
the interface.
12. Return to system view.
quit
N/A
13. Enter BGP view.
bgp
as-number N/A
14. Configure the PE in the same
AS as an IBGP peer.
peer
{ group-name | ip-address
[ mask-length ] }
as-number
as-number
By default, no
created.
15. Configure the ASBR in
another AS as an EBGP
peer.
peer
{ group-name | ip-address
[ mask-length ] }
as-number
as-number
By default, no
created.
16. Create the BGP IPv4 unicast
address family and enter its
view.
address-family ipv4
[
unicast
]
By default, the BGP IPv4 unicast
address family is not created.
17. Enable exchange of IPv4
unicast routes with the PE in
the same AS and the ASBR
in another AS.
peer
{ group-name | ip-address
[ mask-length ] }
enable
exchange IPv4 unicast routes with
any peer.
18. Enable exchange of labeled
IPv4 routes with the PE in the
same AS and the ASBR in
another AS.
peer
{ group-name | ip-address
[ mask-length ] }
label-route-capability
By default, BGP cannot advertise
labeled routes to any IPv4 peer or
peer group.
19. Configure the ASBR-
set itself as the next hop of
routes advertised to the PE
in the local AS.
peer
{ group-name | ip-address
[ mask-length ] }
next-hop-local
By default, BGP does not use its
address as the next hop of routes
advertised to an IBGP peer or
peer group.
20. (Optional.) A
policy
from or outgoing to a peer or
peer group.
peer
{ group-name | ip-address
[ mask-length ] }
route-policy
route-policy-name {
export
|
import
}
By default, no routing policy is
applied.
Configuring a routing policy on an ASBR-PE
A routing policy on an ASBR-PE does the following:
• Assigns MPLS labels to routes received from the PEs in the local AS before advertising them to
the peer ASBR-PE.
• Assigns new MPLS labels to labeled IPv4 routes advertised to PEs in the local AS.
Which IPv4 routes are assigned with MPLS labels depends on the routing policy. Only routes that
meet the criteria are assigned with labels. All other routes are still common IPv4 routes.
To configure a routing policy for inter-AS option C on an ASBR-PE:
1. Enter system view.
system-view
N/A
2. Create a routing policy and
enter routing policy view.
route-policy
route-policy-name
By default, no
created.