Routing Instance for VPN-A
- routing-instance {
-
- VPN-A-Paris-Munich {
- instance-type vrf;
- interface so-6/0/0.0;
- interface so-6/0/1.0;
- route-distinguisher 65535:0;
- vrf-import VPN-A-import;
- vrf-export VPN-A-export;
- }
- }
Instance Routing Protocol
- routing-options {
-
- static {
- route 172.16.0.0/16 next-hop so-6/0/0.0;
- route 172.17.0.0/16 next-hop so-6/0/1.0;
- }
- }
Routing Instance for VPN-B
- routing-instance {
-
- VPN-B-Madrid {
- instance-type vrf;
- interface ge-0/3/0.0;
- route-distinguisher 65535:2;
- vrf-import VPN-B-import;
- vrf-export VPN-B-export;
- }
- }
Instance Routing Protocol
- protocols {
-
- ospf {
-
- area 0.0.0.0 {
- interface ge-0/3/0;
- }
- }
- }
Master Protocol Instance
- protocols {
- }
Enable RSVP
- rsvp {
- interface so-3/0/0.0;
- }
Configure an MPLS LSP
- mpls {
-
- label-switched-path RouterA-to-RouterC {
- to 10.255.245.47;
- }
- interface so-3/0/0.0;
- interface so-6/0/0.0;
- interface so-6/0/1.0;
- interface ge-0/3/0.0;
- }
Configure IBGP
- bgp {
-
- group PE-RouterA-to-PE-RouterC {
- type internal;
- local-address 10.255.245.68;
-
- family inet-vpn {
- unicast;
- }
- neighbor 10.255.245.47;
- }
- }
Configure OSPF for Traffic Engineering Support
- ospf {
- traffic-engineering;
-
- area 0.0.0.0 {
- interface so-3/0/0.0;
- }
- }
Configure VPN Policy
- policy-options {
-
- policy-statement VPN-A-import {
-
- term a {
-
- from {
- protocol bgp;
- community VPN-A;
- }
- then accept;
- }
-
- term b {
- then reject;
- }
- }
-
- policy-statement VPN-A-export {
-
- term a {
- from protocol static;
-
- then {
- community add VPN-A;
- accept;
- }
- }
-
- term b {
- then reject;
- }
- }
-
- policy-statement VPN-B-import {
-
- term a {
-
- from {
- protocol bgp;
- community VPN-B;
- }
- then accept;
- }
-
- term b {
- then reject;
- }
- }
-
- policy-statement VPN-B-export {
-
- term a {
- from protocol ospf;
-
- then {
- community add VPN-B;
- accept;
- }
- }
-
- term b {
- then reject;
- }
- }
- community VPN-A members target:65535:4;
- community VPN-B members target:65535:5;
- }