Routing Instance for VPN-A
- 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;
- }
- }
Instance Routing Protocol
- protocols {
-
- rip {
-
- group PE1-to-CE1 {
- neighbor ge-1/0/0.0;
- }
- }
- }
Interfaces
- interfaces {
-
- so-1/0/0 {
-
- unit 0 {
- family mpls;
- }
- }
-
- ge-1/0/0 {
- unit 0;
- }
- }
Master Protocol Instance
- protocols {
- }
Enable LDP
- ldp {
- interface so-1/0/0.0;
- }
Enable MPLS
- mpls {
- interface so-1/0/0.0;
- interface ge-1/0/0.0;
- }
Configure IBGP
- bgp {
-
- group PE1-to-PE2 {
- type internal;
- local-address 10.255.1.1;
-
- family inet-vpn {
- unicast;
- }
- neighbor 10.255.100.1;
- }
- }
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 rip;
-
- then {
- community add VPN-A;
- accept;
- }
- }
-
- term b {
- then reject;
- }
- }
- community VPN-A members target:65535:00;
- }
Master Protocol Instance
- protocols {
- }
Enable RSVP
- rsvp {
- interface so-1/0/1.0;
- }
Enable LDP
- ldp {
- interface so-1/0/0.0;
- interface lo0.0;
- }
Enable MPLS
- mpls {
-
- label-switched-path P1-to-P3 {
- to 10.255.100.1;
- ldp-tunneling;
- }
- interface so-1/0/0.0;
- interface so-1/0/1.0;
- }
Configure OSPF for Traffic Engineering Support
- ospf {
- traffic-engineering;
-
- area 0.0.0.0 {
- interface so-1/0/0.0;
- interface so-1/0/1.0;
- }
- }
Master Protocol Instance
- protocols {
- }
Enable RSVP
- rsvp {
- interface so-1/1/0.0;
- interface at-2/0/0.0;
- }
Enable MPLS
- mpls {
- interface so-1/1/0.0;
- interface at-2/0/0.0;
- }
Master Protocol Instance
- protocols {
- }
Enable RSVP
- rsvp {
- interface at-2/0/1.0;
- }
Enable LDP
- ldp {
- interface so-0/0/0.0;
- interface lo0.0;
- }
Enable MPLS
- mpls {
-
- label-switched-path P3-to-P1 {
- to 10.255.2.2;
- ldp-tunneling;
- }
- interface at-2/0/1.0;
- interface so-0/0/0.0;
- }
Configure OSPF for Traffic Engineering Support
- ospf {
- traffic-engineering;
-
- area 0.0.0.0 {
- interface at-2/0/1.0;
- interface at-2/0/1.0;
- }
- }
Routing Instance for VPN-A
- 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;
- }
- }
Instance Routing Protocol
- protocols {
-
- ospf {
-
- area 0.0.0.0 {
- interface so-1/2/0.0;
- }
- }
- }
Interfaces
- interfaces {
-
- so-0/0/0 {
-
- unit 0 {
- family mpls;
- }
- }
-
- so-1/2/0 {
- unit 0;
- }
- }
Master Protocol Instance
- protocols {
- }
Enable LDP
- ldp {
- interface so-0/0/0.0;
- }
Enable MPLS
- mpls {
- interface so-0/0/0.0;
- interface so-1/2/0.0;
- }
Configure IBGP
- bgp {
-
- group PE2-to-PE1 {
- type internal;
- local-address 10.255.200.2;
-
- family inet-vpn {
- unicast;
- }
- neighbor 10.255.1.1;
- }
- }
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 ospf;
-
- then {
- community add VPN-A;
- accept;
- }
- }
-
- term b {
- then reject;
- }
- }
- community VPN-A members target:65535:01;
- }