Configure the Route Distinguisher
Each routing instance that you configure on a PE router must have a unique route distinguisher associated with it. VPN routing instances need a route distinguisher to help Border Gateway Protocol (BGP) distinguish overlapping network layer reachability information (NLRIs) from different VPNs.
We recommend that you use unique route distinguishers for each routing instance that you configure. Although you can use the same route distinguisher on all PE routers in the same VPN, if you use a unique route distinguisher, you can determine the PE router from which a route originated.
To configure a route distinguisher on a PE router, include the route-distinguisher statement:
route-distinguisher (as-number:number|ip-address:number);You can configure this statement at the following hierarchy levels:
- [
edit routing-instancesrouting-instance-name][edit logical-routerslogical-router-namerouting-instancesrouting-instance-name]The route distinguisher is a 6-byte value that you can specify in one of the following formats:
as-number:number, whereas-numberis an autonomous system (AS) number (a 2-byte value) andnumberis any 4-byte value. The AS number can be in the range 1 through 65,535. We recommend that you use an Internet Assigned Numbers Authority (IANA)-assigned, nonprivate AS number, preferably the Internet service provider's (ISP's) own or the customer's own AS number.ip-address:number, whereip-addressis an IP address (a 4-byte value) andnumberis any 2-byte value. The IP address can be any globally unique unicast address. We recommend that you use the address that you configure in therouter-idstatement, which is a nonprivate address in your assigned prefix range.If you configure the
route-distinguisher-idstatement at the[edit routing-options]hierarchy level, a route distinguisher is automatically assigned to the routing instance. If you configure theroute-distinguisherstatement in addition to theroute-distinguisher-idstatement, the value configured forroute-distinguishersupersedes the value generated fromroute-distinguisher-id.To assign a route distinguisher automatically, include the route-distinguisher-id statement:
routing-options {route-distinguisher-idip-address;}You can configure this statement at the following hierarchy levels:
A type 1 route distinguisher is automatically assigned to the routing instance using the format
ip-address:number. The IP address is specified by theroute-distinguisher-idstatement and the number is unique for the routing instance.