Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Blog Post with explanation http://networkstatic.net/mpls-vpls-configuration-with-juniper-junos/
- ## Last changed:
- version 10.0R3.10;
- system {
- host-name J1;
- root-authentication {
- encrypted-password ## SECRET-DATA
- }
- services {
- ftp;
- web-management {
- http {
- interface [ ge-0/0/0.0 ge-0/0/1.0 ge-0/0/2.0 ge-0/0/3.0 ];
- }
- }
- }
- syslog {
- file logs {
- any any;
- }
- }
- }
- ge-1/0/1 {
- unit 0 {
- family inet {
- address 10.1.1.1/24;
- }
- family mpls;
- }
- }
- ge-1/0/2 {
- encapsulation ethernet-vpls;
- unit 0;
- }
- lo0 {
- unit 0 {
- family inet {
- address 1.1.1.1/32;
- }
- }
- unit 10 {
- family inet {
- address 11.11.11.11/32;
- }
- }
- }
- }
- routing-options {
- autonomous-system 65001;
- }
- protocols {
- mpls {
- interface lo0.0;
- interface ge-1/0/0.10;
- }
- bgp {
- group ibgp {
- type internal;
- local-address 1.1.1.1;
- family inet {
- unicast;
- }
- family inet-vpn {
- unicast;
- }
- family l2vpn {
- signaling;
- }
- local-as 65001;
- neighbor 2.2.2.2;
- }
- }
- ospf {
- area 0.0.0.0 {
- interface lo0.0;
- interface ge-1/0/1.0;
- }
- }
- ldp {
- interface ge-1/0/1.0;
- }
- }
- policy-options {
- policy-statement direct-int {
- from protocol direct;
- then accept;
- }
- policy-statement r2-peer {
- term loop1 {
- from {
- route-filter 192.168.250.1/32 exact;
- route-filter 192.168.252.1/32 exact;
- }
- then accept;
- }
- term exp-deny {
- then reject;
- }
- }
- }
- security {
- forwarding-options {
- family {
- mpls {
- mode packet-based;
- }
- }
- }
- flow {
- tcp-session {
- no-syn-check;
- no-syn-check-in-tunnel;
- }
- }
- }
- routing-instances {
- blue {
- instance-type vpls;
- interface ge-1/0/2.0;
- route-distinguisher 65001:12;
- vrf-target target:65001:15;
- protocols {
- vpls {
- interface ge-1/0/2.0;
- no-tunnel-services;
- site blue1 {
- site-identifier 1;
- }
- vpls-id 101;
- neighbor 2.2.2.2;
- }
- }
- }
- red {
- instance-type vrf;
- interface lo0.10;
- route-distinguisher 65001:2;
- vrf-target target:65001:1;
- }
- }
- ## Last changed:
- version 10.0R3.10;
- system {
- host-name J2;
- root-authentication {
- encrypted-password ## SECRET-DATA
- }
- services {
- ftp;
- }
- }
- ge-0/0/1 {
- unit 0 {
- family inet {
- address 10.1.1.2/24;
- }
- family mpls;
- }
- }
- ge-0/0/2 {
- encapsulation ethernet-vpls;
- unit 0;
- }
- lo0 {
- unit 0 {
- family inet {
- address 2.2.2.2/32;
- }
- }
- unit 10 {
- family inet {
- address 22.22.22.22/32;
- }
- }
- }
- }
- routing-options {
- autonomous-system 65001;
- }
- protocols {
- mpls {
- interface ge-0/0/1.0;
- interface lo0.0;
- }
- bgp {
- group ibgp {
- type internal;
- local-address 2.2.2.2;
- family inet {
- unicast;
- }
- family inet-vpn {
- unicast;
- }
- family l2vpn {
- signaling;
- }
- local-as 65001;
- neighbor 1.1.1.1;
- }
- }
- ospf {
- area 0.0.0.0 {
- interface lo0.0;
- interface ge-0/0/1.0;
- }
- }
- ldp {
- interface ge-0/0/1.0;
- }
- }
- security {
- forwarding-options {
- family {
- mpls {
- mode packet-based;
- }
- }
- }
- flow {
- tcp-session {
- no-syn-check;
- no-syn-check-in-tunnel;
- }
- }
- }
- routing-instances {
- blue {
- instance-type vpls;
- interface ge-0/0/2.0;
- route-distinguisher 65001:11;
- vrf-target target:65001:15;
- protocols {
- vpls {
- interface ge-0/0/2.0;
- no-tunnel-services;
- site blue2 {
- site-identifier 2;
- }
- vpls-id 101;
- neighbor 1.1.1.1;
- }
- }
- }
- red {
- instance-type vrf;
- interface lo0.10;
- route-distinguisher 65001:3;
- vrf-target target:65001:1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement