To establish an inter-AS BGP LSP, you must enable ASBRs to exchange labeled IPv4 routes.
Procedure
- Create a route-policy.
Perform the following steps on each ASBR:
- Run system-view
The system view is displayed.
- Run route-policy route-policy-name permit node seq-number
The route-policy used to advertise routes to the remote ASBR is configured.
- Run apply mpls-label
Labels for IPv4 routes are allocated.
- Run quit
Return to the system view.
- Run commit
The configuration is committed.
- Apply the route-policy.
Perform the following steps on each ASBR:
- Run system-view
The system view is displayed.
- Run bgp as-number
The BGP view is displayed.
- Run peer ipv4-address route-policy route-policy-name export
The route-policy used to advertise routes to the remote ASBR is applied.
- Run quit
Return to the system view.
- Run commit
The configuration is committed.
- Enable the function to exchange labeled IPv4 routes.
Perform the following steps on each ASBR:
- Run system-view
The system view is displayed.
- Run interface interface-type interface-number
The view of the interface connected to the peer ASBR is displayed.
- Run mpls
The MPLS capability is enabled.
- Run commit
The configuration is committed.
- Run quit
Return to the system view.
- Run bgp as-number
The BGP view is displayed.
- Run peer ipv4-address label-route-capability
The labeled IPv4 route exchange capability with the remote ASBR is configured.
- Run quit
Return to the system view.
- Run commit
The configuration is committed.