In this example, which only configures VPN-A, PE-1 connects to VPN-A (spoke site) at site 1, PE-4 connects to VPN-A (hub site) at site 4, and PE-2 connects to VPN-A (spoke site) at site 3. Current support is limited to the case where there are two interfaces between the hub site CE and PE. To configure a hub-and-spoke MVPN for VPN-A, perform the following steps:
Configure PE-1 for VPN-A (spoke site):
- [edit]
- routing-instances {
-
- VPN-A {
- instance-type vrf;
- interface so-6/0/0.0;
- interface so-6/0/1.0;
-
- provider-tunnel {
-
- rsvp-te {
-
- label-switched-path-template {
- default-template;
- }
- }
- }
-
- protocols {
-
- mvpn {
-
- route-target {
- export-target unicast;
- import-target unicast target target:1:4;
- }
- }
- }
- route-distinguisher 65535:0;
-
- vrf-target {
- import target:1:1;
- export target:1:3;
- }
-
- routing-options {
- auto-export;
- }
- }
Configure PE-4 for VPN-A (hub site):
- [edit]
- routing-instances {
-
- VPN-A-spoke-to-hub {
- instance-type vrf;
- interface so-1/0/0.0; #receives data and joins from the
CE
-
- protocols {
-
- mvpn {
- receiver-site;
-
- route-target {
- export-target target target:1:4;
- import-target unicast;
- }
- }
-
- ospf {
- export redistribute-vpn; #redistribute VPN routes to CE
-
- area 0.0.0.0 {
- interface so-1/0/0;
- }
- }
- }
- route-distinguisher 65535:2;
-
- vrf-target {
- import target:1:3;
- }
-
- routing-options {
- auto-export;
- }
- }
-
- VPN-A-hub-to-spoke {
- instance-type vrf;
- interface so-2/0/0.0; #receives data and joins from the
CE
-
- provider-tunnel {
-
- rsvp-te {
-
- label-switched-path-template {
- default-template;
- }
- }
- }
-
- protocols {
-
- mvpn {
- sender-site;
-
- route-target {
- import-target target target:1:3;
- export-target unicast;
- }
- }
-
- ospf {
- export redistribute-vpn; #redistribute VPN routes to CE
-
- area 0.0.0.0 {
- interface so-2/0/0;
- }
- }
- }
- route-distinguisher 65535:2;
-
- vrf-target {
- import target:1:1;
- }
-
- routing-options {
- auto-export;
- }
- }
Configure PE-2 for VPN-A (spoke site):
- [edit]
- routing-instances {
-
- VPN-A {
- instance-type vrf;
- interface so-2/0/1.0;
-
- provider-tunnel {
-
- rsvp-te {
-
- label-switched-path-template {
- default-template;
- }
- }
- }
-
- protocols {
-
- mvpn {
-
- route–target {
- import-target target target:1:4;
- export-target unicast;
- }
- }
- }
- route-distinguisher 65535:3;
-
- vrf-target {
- import target:1:1;
- export target:1:3;
- }
-
- routing-options {
- auto-export;
- }
- }