Date created: Wednesday, April 20, 2016 4:44:58 PM. Last modified: Thursday, March 22, 2018 8:36:44 AM

VPLS with IRB

Example 1:

Basic IRB config and VPLS routing instance (tested on Junos 15.1R6.7):

set interfaces irb unit 100 description VLAN 997 IRB
set interfaces irb unit 100 bandwidth 10g
set interfaces irb unit 100 family inet mtu 9178
set interfaces irb unit 100 family inet address 10.0.0.1/24

set routing-instances VPLS-VLAN-100 instance-type vpls
set routing-instances VPLS-VLAN-100 route-distinguisher 10.255.255.1:100 set routing-instances VPLS-VLAN-100 vrf-target target:12345:100
set routing-instances VPLS-VLAN-100 vlan-id 100
set routing-instances VPLS-VLAN-100 routing-interface irb.100
set routing-instances VPLS-VLAN-100 protocols vpls encapsulation-type ethernet-vlan
set routing-instances VPLS-VLAN-100 protocols vpls no-tunnel-services
set routing-instances VPLS-VLAN-100 protocols vpls vpls-id 100
set routing-instances VPLS-VLAN-100 protocols vpls mtu 9100
set routing-instances VPLS-VLAN-100 protocols vpls neighbor 10.255.255.2
set routing-instances VPLS-VLAN-100 protocols vpls connectivity-type irb

#show vpls connections extensive

 

Example 2:

PE1 takes in tagged VLANs in to the VPLS instance on ae0.100. PE2 has one untagged port and one tagged port, and an irb interface and all three are in a bridge domain, the irb is added to the VPLS instance.

# PE1
set routing-instances vpls-test instance-type vpls
set routing-instances vpls-test interface ae0.100
set routing-instances vpls-test route-distinguisher 1.1.1.1:100
set routing-instances vpls-test vrf-target target:65000:100
set routing-instances vpls-test protocols vpls site-range 3
set routing-instances vpls-test protocols vpls no-tunnel-services
set routing-instances vpls-test protocols vpls site A site-identifier 2
set routing-instances vpls-test protocols vpls site A interface ae0.100
            


# PE2
set routing-instances vpls-test instance-type vpls
set routing-instances vpls-test route-distinguisher 1.1.1.2:100
set routing-instances vpls-test vrf-target target:65000:100
set routing-instances vpls-test routing-interface irb.100
set routing-instances vpls-test protocols vpls site-range 3
set routing-instances vpls-test protocols vpls no-tunnel-services
set routing-instances vpls-test protocols vpls site B site-identifier 1
set routing-instances vpls-test protocols vpls connectivity-type irb


set interfaces ge-0/0/0 vlan-tagging
set interfaces ge-0/0/0 encapsulation extended-vlan-bridge
set interfaces ge-0/0/0 unit 100 vlan-id 100

set interfaces ge-0/0/1 encapsulation ethernet-bridge
set interfaces ge-0/0/1 unit 0 family bridge

set interfaces irb unit 100 family inet address 192.0.2.1/24

set bridge-domains vlan-100 vlan-id 100
set bridge-domains vlan-100 interface ge-0/0/0.100
set bridge-domains vlan-100 interface ge-0/0/1.0
set bridge-domains vlan-100 routing-interface irb.100

 

Example 3:

In this example two logital-tunnel interfaces are stitched together, one terminates the pseudowire from the remote PE (a Juniper CCC) and the other is the layer 3 interface (tested on Junos 15.1R6.7):

set interfaces lt-0/0/100 mtu 9192

set interfaces lt-0/0/100 unit 100 description LT-0/0/100.100->VLAN_100->PW
set interfaces lt-0/0/100 unit 100 encapsulation vlan-ccc
set interfaces lt-0/0/100 unit 100 vlan-id 100
set interfaces lt-0/0/100 unit 100 peer-unit 101
set interfaces lt-0/0/100 unit 100 family ccc

set interfaces lt-0/0/100 unit 101 description LT-0/0/100.101->VLAN_100->L3
set interfaces lt-0/0/100 unit 101 encapsulation vlan
set interfaces lt-0/0/100 unit 101 vlan-id 100
set interfaces lt-0/0/100 unit 101 peer-unit 100
set interfaces lt-0/0/100 unit 101 family inet address 10.0.0.1/30

set protocols l2circuit neighbor 10.255.255.2 interface lt-0/0/100.100 virtual-circuit-id 100
set protocols l2circuit neighbor 10.255.255.2 interface lt-0/0/100.100 mtu 9100

Previous page: PWE3 Junos to IOS
Next page: VLAN Push/PoP