You must configure a routing instance for each VPN on each PE Services Router participating in the VPN. The routing instance has the same name on each PE router. VPN routing instances need a route distinguisher to help BGP distinguish between potentially identical network layer reachability information (NLRI) messages received from different VPNs. This section does not apply to Layer 2 circuit configurations.
Each routing instance that you configure on a PE router must have a unique route distinguisher. There are two possible formats:
The route target defines which route is part of a VPN. A unique route target helps distinguish between different VPN services on the same router. Each VPN also has a policy that defines how routes are imported into the VPN routing and forwarding (VRF) table on the router. A Layer 2 VPN is configured with import and export policies. A Layer 3 VPN uses a unique route target to distinguish between VPN routes.
To configure a VPN routing instance:
Table 71: Configuring a VPN Routing Instance
|
Task |
J-Web Configuration Editor |
CLI Configuration Editor |
|---|---|---|
|
Navigate to the top of the configuration hierarchy and create the routing instance. (PE Services Router) |
|
From the top of the configuration hierarchy, enter edit routing-instances routing-instance-name |
|
Specify a text description for the routing instance. This text appears in the output of the show route instance detail command. (PE Services Router) |
In the Description box, type a description. |
Enter set description “text” |
|
Specify the instance type, either l2vpn for Layer 2 VPNs or vrf for Layer 3 VPNs. (PE Services Router) |
From the Instance type drop-down list, select an instance type. |
Enter set instance-typeinstance-type |
|
Specify the interface of the remote PE Services Router. (PE Services Router) |
|
Enter set interface interface-name |
|
Specify the route distinguisher. (PE Services Router) |
In the Rd type box, enter a route distinguisher in the format as-number:numberor ip-address:number. |
Enter one of the following commands:
|
|
Specify the policy for the Layer 2 VRF table. For the Layer 2 VPN example, the routing policies are defined in Configuring a Routing Policy for Layer 2 VPNs. (PE Services Router) |
For the sample Layer 2 VPN configuration, which uses import and export policies:
|
For the sample Layer 2 VPN configuration, which uses import and export policies, enter set vrf-import import-policy-name vrf-export export-policy-name |
|
Specify the policy for the Layer 3 VRF table. For the Layer 3 VPN example, the routing policy is defined in Configuring a Routing Policy for Layer 3 VPNs. (PE Services Router) |
For the sample Layer 3 VPN configuration, which uses a route target:
|
For the sample Layer 3 VPN configuration, which uses a route target, enter set vrf-target target:community-id Replace community-id with either of the following:
|