[Contents]
[Prev]
[Next]
[Index]
[Report an Error]
Configuring BGP to Send Labeled and Unlabeled Unicast Routes
You can issue the neighbor send-label command to enable BGP to exchange both labeled and unlabeled unicast
routes in the same address family (same AFI) over the same BGP peering
session. The routes can be IPv4 or IPv6 routes. When you issue the neighbor send-label command, JUNOSe always proposes
SAFI 4 and SAFI 1. If this command has not been configured, then
JUNOSe proposes only SAFI 1.
A route is advertised as a labeled route within
a given BGP peering session in either of the following cases:
- You issue the neighbor send-label command, but no outbound route map has been configured.
- You issue the neighbor send-label command and an outbound route map has been configured, and the route
map executes a set mpls-label clause for
the advertised route.
In all other cases, the route is advertised as
an unlabeled route.
match mpls-label
- Use to match on MPLS-labeled routes by including as a
clause in a route map. The clause matches the route only if the route
has a label.
- By including this command in the appropriate route map
(export, global export, global import route map), you can restrict
importing or exporting to only labeled or only unlabeled routes.
- Example
- host1:pe1(config-route-map)#match mpls-label
- Use the no version to remove
the configuration.
- See match mpls-label.
neighbor send-label
- Use to configure a BGP peer to distribute an MPLS label
with the advertisements for its IPv4 and IPv6 routes.
- This command enables BGP to dynamically negotiate SAFI
1 and SAFI 4 with this neighbor.
- Example
- host1(config-router-af)#neighbor 10.19.1.2
send-label
- Use the no version to halt
distribution of the MPLS label with route advertisements.
- See neighbor send-label.
set mpls-label
- Use to configure BGP to advertise prefixes that match
the route map as labeled prefixes.
- Example
- host1:pe1(config-route-map)#set mpls-label
- Use the no version to remove
the configuration.
- See set mpls-label.
[Contents]
[Prev]
[Next]
[Index]
[Report an Error]