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;
- }