Configuring 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 the Border Gateway Protocol (BGP) to distinguish between potentially identical network layer reachability information (NLRI) messages received from different VPNs.
We recommend that you use a unique route distinguisher 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-distinguisherstatement:route-distinguisher (as-number:number|ip-address:number);You can include the route-distinguisher 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-idstatement:route-distinguisher-idip-address;You can include the
route-distinguisher-idstatement 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.