186
6. Enable BGP
IPv4 unicast routes with the
ASBR in the same AS.
peer
{ group-name | ip-address
[ mask-length ] }
enable
exchange IPv4 unicast routes with
any peer.
7. Enable BGP
labeled IPv4 routes with the
ASBR in the same AS.
peer
{ group-name | ip-address
[ mask-length ] }
label-route-capability
By default, BGP cannot exchange
labeled routes with any IPv4 peer
or peer group.
8. Return to BGP view.
quit
N/A
9. Enter
family view.
address-family vpnv4
N/A
10. Enable BGP
VPNv4 routes with the PE in
different ASs.
peer
{ group-name | ip-address
[ mask-length ] }
enable
By default, BGP cannot exchange
VPNv4 routes with any peer.
11. (Optional.) Configure the PE
to not change the next hop of
routes advertised to the
EBGP peer.
peer
{ group-name | ip-address
[ mask-length ] }
next-hop-invariable
Configure this command on the
RR so the RR does not change
the next hop of advertised VPNv4
routes.
Configuring an ASBR
To set up an inter-AS public tunnel for the inter-AS option C solution, an ASBR must assign an MPLS
label to the route destined for a PE, and advertise the label along with the route. Typically, the routes
advertised by an ASBR through BGP include the PE address as well as other routes. You can
configure a routing policy to filter routes. Routes surviving the filtering are assigned labels, and all
others are advertised as common IPv4 routes.
To configure a routing policy, use the following commands:
• if-match mpls-label—Matches routes carrying MPLS labels.
• apply mpls-label—Sets MPLS labels for IPv4 routes to be advertised to a peer. You can use
this command together with if-match clauses. For example, when used together with the
if-match mpls-label command, the apply mpls-label sets new MPLS labels for routes with
MPLS labels. The newly assigned labels are advertised along with the routes.
For more information about routing policy configuration, see Layer 3—IP Routing Configuration
Guide.
To configure an ASBR-PE for inter-AS option C:
1. Enter system view.
N/A
2. (Optional.) Create a routing
policy, and enter routing
policy view.
route-policy
route-policy-name
{
deny
|
permit
}
node
node-number
By default, no routing policy is
created.
3.
routes carrying labels.
if-match mpls-label
By default, no MPLS label match
criterion is configured.
4.
(Optional.) Set labels for
IPv4 routes.
apply mpls-label
By default, no MPLS label is set
for IPv4 routes.
5. Return to system view.
N/A
6.
Enter interface view of the
interface connected to an
internal router of the AS.
interface
interface-type
interface-number
N/A
7.
interface.
mpls enable
By default, MPLS is disabled on
the interface.