Both PE routers service VPN-A, so you must configure one routing instance on each router for the VPN in which you define the following:
![]() |
Note: In this example, a private AS number is used for the route distinguisher. This number is used for illustration only. When you are configuring VPNs, you should use an assigned AS number. |
On Router PE1, configure the following routing instance for VPN-A. In this example, Router PE1 uses RIP to distribute routes to and from the CE router to which it is connected.
- [edit]
- routing-instance {
-
- VPN-A {
- instance-type vrf;
- interface ge-1/0/0.0;
- route-distinguisher 65535:0;
- vrf-import VPN-A-import;
- vrf-export VPN-A-export;
-
- protocols {
-
- rip {
-
- group PE1-to-CE1 {
- neighbor ge-1/0/0.0;
- }
- }
- }
- }
- }
On Router PE2, configure the following routing instance for VPN-A. In this example, Router PE2 uses OSPF to distribute routes to and from the CE router to which it is connected.
- [edit]
- routing-instance {
-
- VPN-A {
- instance-type vrf;
- interface so-1/2/0.0;
- route-distinguisher 65535:1;
- vrf-import VPN-A-import;
- vrf-export VPN-A-export;
-
- protocols {
-
- ospf {
-
- area 0.0.0.0 {
- interface so-1/2/0.0;
- }
- }
- }
- }
- }