Simple BGP signaled VPLS.

A configuration example of a simple setup with BGP signaled VPLS. BGP signaled VPLS is enabled by running OSPF, LDP and, of course, BGP. This is done on the MPLS routers (Aurelius, Trajan, Remus and Romulus).

There are four routing-instances of the type VPLS configured on these MPLS routers. These routing-instances enable layer 2 communication between the MX80 and a non-MPLS router (Tiberius, Hadrian, Augustus and Gaius).

Another thing is that there is an irb interface configured on Remus. This interface is pingable from the anywhere in the VPLS.

scenario
Zoom in.

AURELIUS:
 
set interfaces xe-0/2/0 unit 2 description REMUS
set interfaces xe-0/2/0 unit 2 vlan-id 2
set interfaces xe-0/2/0 unit 2 family inet mtu 1500
set interfaces xe-0/2/0 unit 2 family inet address 2.0.0.6/30
set interfaces xe-0/2/0 unit 2 family iso
set interfaces xe-0/2/0 unit 2 family mpls
set interfaces xe-0/3/0 unit 4 description TRAJAN
set interfaces xe-0/3/0 unit 4 vlan-id 4
set interfaces xe-0/3/0 unit 4 family inet mtu 1500
set interfaces xe-0/3/0 unit 4 family inet address 2.0.0.13/30
set interfaces xe-0/3/0 unit 4 family iso
set interfaces xe-0/3/0 unit 4 family mpls
set interfaces ae0 unit 3 encapsulation vlan-vpls
set interfaces ae0 unit 3 vlan-id 3
set interfaces ae0 unit 6 encapsulation vlan-vpls
set interfaces ae0 unit 6 vlan-id 6
set interfaces ae0 unit 10 encapsulation vlan-vpls
set interfaces ae0 unit 10 vlan-id 10
set interfaces ae0 unit 13 encapsulation vlan-vpls
set interfaces ae0 unit 13 vlan-id 13
set interfaces lo0 unit 1 family inet address 1.1.1.1/32
set protocols mpls interface all
set protocols bgp group VPLS type internal
set protocols bgp group VPLS local-address 1.1.1.1
set protocols bgp group VPLS family l2vpn signaling
set protocols bgp group VPLS authentication-key "$9$jfqm5n6CApOhSL7-w4o"
set protocols bgp group VPLS neighbor 1.1.1.2
set protocols bgp group VPLS neighbor 1.1.1.5
set protocols bgp group VPLS neighbor 1.1.1.6
set protocols ospf area 0.0.0.0 interface all
set protocols ospf3 traffic-engineering shortcuts
set protocols ospf3 area 0.0.0.0 interface all
set protocols ldp interface all
set routing-instances vpls-10 instance-type vpls
set routing-instances vpls-10 vlan-id 10
set routing-instances vpls-10 interface ae0.10
set routing-instances vpls-10 route-distinguisher 10:10
set routing-instances vpls-10 vrf-target target:10:10
set routing-instances vpls-10 protocols vpls site-range 4
set routing-instances vpls-10 protocols vpls mac-table-size 2048
set routing-instances vpls-10 protocols vpls no-tunnel-services
set routing-instances vpls-10 protocols vpls site aurelius site-identifier 1
set routing-instances vpls-10 protocols vpls connectivity-type permanent
set routing-instances vpls-13 instance-type vpls
set routing-instances vpls-13 vlan-id 13
set routing-instances vpls-13 interface ae0.13
set routing-instances vpls-13 route-distinguisher 13:13
set routing-instances vpls-13 vrf-target target:13:13
set routing-instances vpls-13 protocols vpls site-range 4
set routing-instances vpls-13 protocols vpls mac-table-size 2048
set routing-instances vpls-13 protocols vpls no-tunnel-services
set routing-instances vpls-13 protocols vpls site aurelius site-identifier 1
set routing-instances vpls-13 protocols vpls connectivity-type permanent
set routing-instances vpls-3 instance-type vpls
set routing-instances vpls-3 vlan-id 3
set routing-instances vpls-3 interface ae0.3
set routing-instances vpls-3 route-distinguisher 3:3
set routing-instances vpls-3 vrf-target target:3:3
set routing-instances vpls-3 protocols vpls site-range 4
set routing-instances vpls-3 protocols vpls mac-table-size 2048
set routing-instances vpls-3 protocols vpls no-tunnel-services
set routing-instances vpls-3 protocols vpls site aurelius site-identifier 1
set routing-instances vpls-3 protocols vpls connectivity-type permanent
set routing-instances vpls-6 instance-type vpls
set routing-instances vpls-6 vlan-id 6
set routing-instances vpls-6 interface ae0.6
set routing-instances vpls-6 route-distinguisher 6:6
set routing-instances vpls-6 vrf-target target:6:6
set routing-instances vpls-6 protocols vpls site-range 4
set routing-instances vpls-6 protocols vpls mac-table-size 2048
set routing-instances vpls-6 protocols vpls no-tunnel-services
set routing-instances vpls-6 protocols vpls site aurelius site-identifier 1
set routing-instances vpls-6 protocols vpls connectivity-type permanent
set routing-options autonomous-system 1
                
TRAJAN:
 
set interfaces xe-0/2/0 unit 4 description AURELIUS
set interfaces xe-0/2/0 unit 4 vlan-id 4
set interfaces xe-0/2/0 unit 4 family inet mtu 1500
set interfaces xe-0/2/0 unit 4 family inet address 2.0.0.14/30
set interfaces xe-0/2/0 unit 4 family iso
set interfaces xe-0/2/0 unit 4 family mpls
set interfaces xe-0/2/0 unit 5 description ROMULUS
set interfaces xe-0/2/0 unit 5 vlan-id 5
set interfaces xe-0/2/0 unit 5 family inet mtu 1500
set interfaces xe-0/2/0 unit 5 family inet address 2.0.0.18/30
set interfaces xe-0/2/0 unit 5 family iso
set interfaces xe-0/2/0 unit 6 encapsulation vlan-vpls
set interfaces xe-0/2/0 unit 6 vlan-id 6
set interfaces lo0 unit 2 family inet address 1.1.1.2/32
set protocols mpls interface all
set protocols bgp group VPLS type internal
set protocols bgp group VPLS local-address 1.1.1.2
set protocols bgp group VPLS family l2vpn signaling
set protocols bgp group VPLS authentication-key "$9$jfqm5n6CApOhSL7-w4o"
set protocols bgp group VPLS neighbor 1.1.1.1
set protocols bgp group VPLS neighbor 1.1.1.5
set protocols bgp group VPLS neighbor 1.1.1.6
set protocols ospf area 0.0.0.0 interface all
set protocols ospf3 traffic-engineering shortcuts
set protocols ospf3 area 0.0.0.0 interface all
set protocols ldp interface all
set routing-instances vpls-6 instance-type vpls
set routing-instances vpls-6 vlan-id 6
set routing-instances vpls-6 interface xe-0/2/0.6
set routing-instances vpls-6 route-distinguisher 6:6
set routing-instances vpls-6 vrf-target target:6:6
set routing-instances vpls-6 protocols vpls site-range 4
set routing-instances vpls-6 protocols vpls mac-table-size 2048
set routing-instances vpls-6 protocols vpls no-tunnel-services
set routing-instances vpls-6 protocols vpls site trajan site-identifier 2
set routing-instances vpls-6 protocols vpls connectivity-type permanent
set routing-options autonomous-system 1
                
REMUS:
 
set interfaces xe-0/3/0 unit 1 description ROMULUS
set interfaces xe-0/3/0 unit 1 vlan-id 1
set interfaces xe-0/3/0 unit 1 family inet mtu 1500
set interfaces xe-0/3/0 unit 1 family inet address 2.0.0.1/30
set interfaces xe-0/3/0 unit 1 family iso
set interfaces xe-0/3/0 unit 1 family mpls
set interfaces xe-0/3/0 unit 2 description AURELIUS
set interfaces xe-0/3/0 unit 2 vlan-id 2
set interfaces xe-0/3/0 unit 2 family inet mtu 1500
set interfaces xe-0/3/0 unit 2 family inet address 2.0.0.5/30
set interfaces xe-0/3/0 unit 2 family iso
set interfaces xe-0/3/0 unit 2 family mpls
set interfaces xe-0/3/0 unit 3 description TIBERIUS
set interfaces xe-0/3/0 unit 3 encapsulation vlan-vpls
set interfaces xe-0/3/0 unit 3 vlan-id 3
set interfaces xe-0/3/0 unit 3 family vpls
set interfaces irb unit 3 family inet mtu 1500
set interfaces irb unit 3 family inet address 10.3.0.3/24
set interfaces lo0 unit 5 family inet address 1.1.1.5/32
set protocols mpls interface all
set protocols bgp group VPLS type internal
set protocols bgp group VPLS local-address 1.1.1.5
set protocols bgp group VPLS family l2vpn signaling
set protocols bgp group VPLS authentication-key "$9$jfqm5n6CApOhSL7-w4o"
set protocols bgp group VPLS neighbor 1.1.1.1
set protocols bgp group VPLS neighbor 1.1.1.6
set protocols bgp group VPLS neighbor 1.1.1.2
set protocols ospf area 0.0.0.0 interface all
set protocols ldp interface all
set routing-instances vpls-3 instance-type vpls
set routing-instances vpls-3 vlan-id 3
set routing-instances vpls-3 interface xe-0/3/0.3
set routing-instances vpls-3 routing-interface irb.3
set routing-instances vpls-3 route-distinguisher 3:3
set routing-instances vpls-3 vrf-target target:3:3
set routing-instances vpls-3 protocols vpls site-range 4
set routing-instances vpls-3 protocols vpls mac-table-size 2048
set routing-instances vpls-3 protocols vpls no-tunnel-services
set routing-instances vpls-3 protocols vpls site remus site-identifier 3
set routing-instances vpls-3 protocols vpls connectivity-type permanent
set routing-instances vpls-3-router instance-type virtual-router
set routing-instances vpls-3-router interface irb.3
set routing-options autonomous-system 1
                
ROMULUS:
 
set interfaces xe-0/2/0 unit 1 description REMUS
set interfaces xe-0/2/0 unit 1 vlan-id 1
set interfaces xe-0/2/0 unit 1 family inet mtu 1500
set interfaces xe-0/2/0 unit 1 family inet address 2.0.0.2/30
set interfaces xe-0/2/0 unit 1 family iso
set interfaces xe-0/2/0 unit 1 family mpls
set interfaces xe-0/2/0 unit 9 description HADRIAN
set interfaces xe-0/2/0 unit 9 vlan-id 9
set interfaces xe-0/2/0 unit 9 family inet mtu 1500
set interfaces xe-0/2/0 unit 9 family inet address 2.0.0.34/30
set interfaces xe-0/2/0 unit 9 family iso
set interfaces xe-0/2/0 unit 10 encapsulation vlan-vpls
set interfaces xe-0/2/0 unit 10 vlan-id 10
set interfaces xe-0/2/0 unit 13 encapsulation vlan-vpls
set interfaces xe-0/2/0 unit 13 vlan-id 13
set interfaces xe-0/3/0 unit 5 description TRAJAN
set interfaces xe-0/3/0 unit 5 vlan-id 5
set interfaces xe-0/3/0 unit 5 family inet mtu 1500
set interfaces xe-0/3/0 unit 5 family inet address 2.0.0.17/30
set interfaces xe-0/3/0 unit 5 family iso
set interfaces xe-0/3/0 unit 5 family mpls
set interfaces lo0 unit 6 family inet address 1.1.1.6/32
set protocols mpls interface all
set protocols bgp group VPLS type internal
set protocols bgp group VPLS local-address 1.1.1.6
set protocols bgp group VPLS family l2vpn signaling
set protocols bgp group VPLS authentication-key "$9$jfqm5n6CApOhSL7-w4o"
set protocols bgp group VPLS neighbor 1.1.1.1
set protocols bgp group VPLS neighbor 1.1.1.5
set protocols bgp group VPLS neighbor 1.1.1.2
set protocols ospf area 0.0.0.0 interface all
set protocols ldp interface all
set routing-instances vpls-10 instance-type vpls
set routing-instances vpls-10 vlan-id 10
set routing-instances vpls-10 interface xe-0/2/0.10
set routing-instances vpls-10 route-distinguisher 10:10
set routing-instances vpls-10 vrf-target target:10:10
set routing-instances vpls-10 protocols vpls site-range 4
set routing-instances vpls-10 protocols vpls mac-table-size 2048
set routing-instances vpls-10 protocols vpls no-tunnel-services
set routing-instances vpls-10 protocols vpls site romulus site-identifier 4
set routing-instances vpls-10 protocols vpls connectivity-type permanent
set routing-instances vpls-13 instance-type vpls
set routing-instances vpls-13 vlan-id 13
set routing-instances vpls-13 interface xe-0/2/0.13
set routing-instances vpls-13 route-distinguisher 13:13
set routing-instances vpls-13 vrf-target target:13:13
set routing-instances vpls-13 protocols vpls site-range 4
set routing-instances vpls-13 protocols vpls mac-table-size 2048
set routing-instances vpls-13 protocols vpls no-tunnel-services
set routing-instances vpls-13 protocols vpls site romulus site-identifier 4
set routing-instances vpls-13 protocols vpls connectivity-type permanent
set routing-options autonomous-system 1
                
AUGUSTUS:
 
set interfaces xe-0/3/0 unit 13 description ROMULUS
set interfaces xe-0/3/0 unit 13 vlan-id 13
set interfaces xe-0/3/0 unit 13 family inet mtu 1500
set interfaces xe-0/3/0 unit 13 family inet address 10.13.0.3/24
set interfaces xe-0/3/0 unit 13 family iso
set interfaces lo0 unit 7 family inet address 1.1.1.7/32
set protocols ospf area 0.0.0.0 interface all
                
TIBERIUS:
 
set interfaces xe-0/2/0 unit 3 description REMUS
set interfaces xe-0/2/0 unit 3 vlan-id 3
set interfaces xe-0/2/0 unit 3 family inet mtu 1500
set interfaces xe-0/2/0 unit 3 family inet address 10.3.0.3/24
set interfaces xe-0/2/0 unit 3 family iso
set interfaces lo0 unit 9 family inet address 1.1.1.9/32
set protocols ospf area 0.0.0.0 interface all
                
HADRIAN:
 
set interfaces xe-0/3/0 unit 10 description ROMULUS
set interfaces xe-0/3/0 unit 10 vlan-id 10
set interfaces xe-0/3/0 unit 10 family inet mtu 1500
set interfaces xe-0/3/0 unit 10 family inet address 10.10.0.3/24
set interfaces xe-0/3/0 unit 10 family iso
set interfaces lo0 unit 10 family inet address 1.1.1.10/32
set protocols ospf area 0.0.0.0 interface all

                
GAIUS:
 
set interfaces xe-0/3/0 unit 6 description TRAJAN
set interfaces xe-0/3/0 unit 6 vlan-id 6
set interfaces xe-0/3/0 unit 6 family inet mtu 1500
set interfaces xe-0/3/0 unit 6 family inet address 10.6.0.3/24
set interfaces lo0 unit 3 family inet address 1.1.1.3/32
set protocols ospf area 0.0.0.0 interface all
                
MX80:
 
set logical-systems VPLS interfaces ae0 unit 3 vlan-id 3
set logical-systems VPLS interfaces ae0 unit 3 family inet mtu 1500
set logical-systems VPLS interfaces ae0 unit 3 family inet address 10.3.0.1/24
set logical-systems VPLS interfaces ae0 unit 3 family iso
set logical-systems VPLS interfaces ae0 unit 6 description GAIUS
set logical-systems VPLS interfaces ae0 unit 6 vlan-id 6
set logical-systems VPLS interfaces ae0 unit 6 family inet mtu 1500
set logical-systems VPLS interfaces ae0 unit 6 family inet address 10.6.0.1/24
set logical-systems VPLS interfaces ae0 unit 10 vlan-id 10
set logical-systems VPLS interfaces ae0 unit 10 family inet mtu 1500
set logical-systems VPLS interfaces ae0 unit 10 family inet address 10.10.0.1/24
set logical-systems VPLS interfaces ae0 unit 13 vlan-id 13
set logical-systems VPLS interfaces ae0 unit 13 family inet mtu 1500
set logical-systems VPLS interfaces ae0 unit 13 family inet address 10.13.0.1/24
set logical-systems VPLS interfaces lo0 unit 3 family inet address 3.0.0.1/32
set logical-systems VPLS interfaces lo0 unit 6 family inet address 6.0.0.1/32
set logical-systems VPLS interfaces lo0 unit 10 family inet address 10.0.0.1/32
set logical-systems VPLS interfaces lo0 unit 13 family inet address 13.0.0.1/32
set logical-systems VPLS routing-instances vpls-10 instance-type virtual-router
set logical-systems VPLS routing-instances vpls-10 interface ae0.10
set logical-systems VPLS routing-instances vpls-10 interface lo0.10
set logical-systems VPLS routing-instances vpls-10 protocols ospf area 0.0.0.0 interface all
set logical-systems VPLS routing-instances vpls-13 instance-type virtual-router
set logical-systems VPLS routing-instances vpls-13 interface ae0.13
set logical-systems VPLS routing-instances vpls-13 interface lo0.13
set logical-systems VPLS routing-instances vpls-13 protocols ospf area 0.0.0.0 interface all
set logical-systems VPLS routing-instances vpls-3 instance-type virtual-router
set logical-systems VPLS routing-instances vpls-3 interface ae0.3
set logical-systems VPLS routing-instances vpls-3 interface lo0.3
set logical-systems VPLS routing-instances vpls-3 protocols ospf area 0.0.0.0 interface all
set logical-systems VPLS routing-instances vpls-6 instance-type virtual-router
set logical-systems VPLS routing-instances vpls-6 interface ae0.6
set logical-systems VPLS routing-instances vpls-6 interface lo0.6
set logical-systems VPLS routing-instances vpls-6 protocols ospf area 0.0.0.0 interface all
                

22-11-2014