Skip to content

Instantly share code, notes, and snippets.

@RobWC
Created October 26, 2012 19:49
Show Gist options
  • Save RobWC/3961041 to your computer and use it in GitHub Desktop.
Save RobWC/3961041 to your computer and use it in GitHub Desktop.
Junos VPLS config
interfaces {
ge-0/0/0 {
unit 0 {
family ethernet-switching {
port-mode access;
vlan {
members Vlan100;
}
}
}
}
gr-0/0/0 {
unit 0 {
clear-dont-fragment-bit;
tunnel {
source 10.0.1.220;
destination 10.0.1.210;
allow-fragmentation;
}
family inet {
mtu 1280;
address 10.0.2.2/30;
}
family mpls;
copy-tos-to-outer-ip-header;
}
}
ge-0/0/1 {
unit 0 {
family ethernet-switching {
port-mode access;
vlan {
members Vlan100;
}
}
}
}
fe-0/0/2 {
unit 0 {
family inet {
address 10.0.1.220/24;
}
}
}
fe-0/0/3 {
unit 0 {
family ethernet-switching {
vlan {
members Vlan100;
}
}
}
}
fe-0/0/5 {
unit 0 {
family ethernet-switching {
port-mode access;
vlan {
members Vlan1000;
}
}
}
}
fe-0/0/6 {
unit 0 {
family ethernet-switching {
port-mode access;
vlan {
members Vlan1000;
}
}
}
}
fe-0/0/7 {
encapsulation ethernet-vpls;
unit 0 {
family vpls;
}
}
}
routing-options {
router-id 10.0.1.220;
autonomous-system 65050;
forwarding-table {
export vpls-export;
}
}
protocols {
rsvp {
interface gr-0/0/0.0;
}
mpls {
label-switched-path To-SRX-L2-BRDR {
to 10.0.2.1;
}
interface gr-0/0/0.0;
}
bgp {
group gre-internal {
type internal;
local-address 10.0.2.2;
family l2vpn {
signaling;
}
neighbor 10.0.2.1;
}
}
ospf {
traffic-engineering;
area 0.0.0.0 {
interface gr-0/0/0.0;
}
}
stp {
interface all {
edge;
}
}
}
policy-options {
policy-statement vpls-export {
term 1 {
from community local;
then {
install-nexthop lsp To-SRX-L2-BRDR;
accept;
}
}
}
policy-statement vpls-import {
term 1 {
from {
protocol bgp;
community remote;
}
then accept;
}
term 2 {
then reject;
}
}
community local members target:65050:1;
community remote members target:65050:1;
}
security {
forwarding-options {
family {
mpls {
mode packet-based;
}
}
}
}
routing-instances {
vpls {
instance-type vpls;
interface fe-0/0/7.0;
route-distinguisher 65050:1;
vrf-target target:65050:1;
protocols {
vpls {
site-range 10;
no-tunnel-services;
site 1 {
site-identifier 2;
}
vpls-id 101;
}
}
}
}
poe {
interface all;
interface ge-0/0/1 {
priority high;
}
interface ge-0/0/0 {
disable;
}
}
vlans {
Vlan100 {
vlan-id 100;
}
Vlan1000 {
vlan-id 1000;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment