Junos Evolved is used for this lab. Commands are pretty much identical to standard Junos.
LSPs have been created between PE1 & PE3. The PE1 LSP goes through PE4 & the PE3 LSP through PE2. IS-IS is the IGP and an out of data path Route Reflector is used to reflect the relevant routes.
https://community.juniper.net/blogs/suneesh-babu/2022/11/05/evpn-vpws-validation-on-acx7000
PE1
set interfaces et-0/0/0 unit 0 family inet address 1.1.1.1/30
set interfaces et-0/0/0 unit 0 family iso
set interfaces et-0/0/0 unit 0 family mpls
set interfaces et-0/0/1 unit 0 family inet address 4.4.4.2/30
set interfaces et-0/0/1 unit 0 family iso
set interfaces et-0/0/1 unit 0 family mpls
set interfaces et-0/0/2 unit 0 family inet address 1.2.2.1/30
set interfaces et-0/0/2 unit 0 family iso
set interfaces et-0/0/3 vlan-tagging
set interfaces et-0/0/3 encapsulation flexible-ethernet-services
set interfaces et-0/0/3 unit 3232 encapsulation vlan-ccc
set interfaces et-0/0/3 unit 3232 vlan-id 3232
set interfaces lo0 unit 0 family inet address 5.5.5.5/32
set interfaces lo0 unit 0 family iso address 49.0000.5555.0000.0000.00
set interfaces lo0 unit 0 family mpls
set routing-instances EVPN instance-type evpn-vpws
set routing-instances EVPN protocols evpn interface et-0/0/3.3232 vpws-service-id local 32
set routing-instances EVPN protocols evpn interface et-0/0/3.3232 vpws-service-id remote 33
set routing-instances EVPN interface et-0/0/3.3232
set routing-instances EVPN route-distinguisher 5.5.5.5:3232
set routing-instances EVPN vrf-target target:65400:3232
set routing-options router-id 5.5.5.5
set routing-options autonomous-system 65400
set protocols bgp group EVPN type internal
set protocols bgp group EVPN local-address 5.5.5.5
set protocols bgp group EVPN family evpn signaling
set protocols bgp group EVPN neighbor 9.9.9.9
set protocols isis interface et-0/0/0.0 point-to-point
set protocols isis interface et-0/0/1.0 point-to-point
set protocols isis interface et-0/0/2.0 point-to-point
set protocols isis interface lo0.0 passive
set protocols isis level 1 disable
set protocols isis level 2 wide-metrics-only
set protocols mpls label-switched-path PE3 to 7.7.7.7
set protocols mpls label-switched-path PE3 primary PE3
set protocols mpls path PE3 8.8.8.8 strict
set protocols mpls interface et-0/0/0.0
set protocols mpls interface et-0/0/1.0
set protocols mpls interface lo0.0
set protocols rsvp interface et-0/0/0.0
set protocols rsvp interface et-0/0/1.0
set protocols rsvp interface lo0.0
PE2
set interfaces et-0/0/0 unit 0 family inet address 1.1.1.2/30
set interfaces et-0/0/0 unit 0 family iso
set interfaces et-0/0/0 unit 0 family mpls
set interfaces et-0/0/1 unit 0 family inet address 2.2.2.1/30
set interfaces et-0/0/1 unit 0 family iso
set interfaces et-0/0/1 unit 0 family mpls
set interfaces et-0/0/2 unit 0 family inet address 1.3.3.1/30
set interfaces et-0/0/2 unit 0 family iso
set interfaces lo0 unit 0 family inet address 6.6.6.6/32
set interfaces lo0 unit 0 family iso address 49.0000.6666.0000.0000.00
set interfaces lo0 unit 0 family mpls
set routing-options router-id 6.6.6.6
set routing-options autonomous-system 65400
set protocols isis interface et-0/0/0.0 point-to-point
set protocols isis interface et-0/0/1.0 point-to-point
set protocols isis interface et-0/0/2.0 point-to-point
set protocols isis interface lo0.0 passive
set protocols isis level 1 disable
set protocols isis level 2 wide-metrics-only
set protocols mpls interface et-0/0/0.0
set protocols mpls interface et-0/0/1.0
set protocols mpls interface lo0.0
set protocols rsvp interface et-0/0/0.0
set protocols rsvp interface et-0/0/1.0
set protocols rsvp interface lo0.0
PE3
set interfaces et-0/0/0 unit 0 family inet address 2.2.2.2/30
set interfaces et-0/0/0 unit 0 family iso
set interfaces et-0/0/0 unit 0 family mpls
set interfaces et-0/0/1 unit 0 family inet address 3.3.3.1/30
set interfaces et-0/0/1 unit 0 family iso
set interfaces et-0/0/1 unit 0 family mpls
set interfaces et-0/0/2 unit 0 family inet address 1.4.4.1/30
set interfaces et-0/0/2 unit 0 family iso
set interfaces et-0/0/3 vlan-tagging
set interfaces et-0/0/3 encapsulation flexible-ethernet-services
set interfaces et-0/0/3 unit 3232 encapsulation vlan-ccc
set interfaces et-0/0/3 unit 3232 vlan-id 3232
set interfaces lo0 unit 0 family inet address 7.7.7.7/32
set interfaces lo0 unit 0 family iso address 49.0000.7777.0000.0000.00
set interfaces lo0 unit 0 family mpls
set routing-instances EVPN instance-type evpn-vpws
set routing-instances EVPN protocols evpn interface et-0/0/3.3232 vpws-service-id local 33
set routing-instances EVPN protocols evpn interface et-0/0/3.3232 vpws-service-id remote 32
set routing-instances EVPN interface et-0/0/3.3232
set routing-instances EVPN route-distinguisher 7.7.7.7:3232
set routing-instances EVPN vrf-target target:65400:3232
set routing-options router-id 7.7.7.7
set routing-options autonomous-system 65400
set protocols bgp group EVPN type internal
set protocols bgp group EVPN local-address 7.7.7.7
set protocols bgp group EVPN family evpn signaling
set protocols bgp group EVPN neighbor 9.9.9.9
set protocols isis interface et-0/0/0.0 point-to-point
set protocols isis interface et-0/0/1.0 point-to-point
set protocols isis interface et-0/0/2.0 point-to-point
set protocols isis interface lo0.0 passive
set protocols isis level 1 disable
set protocols isis level 2 wide-metrics-only
set protocols mpls label-switched-path PE1 to 5.5.5.5
set protocols mpls label-switched-path PE1 primary PE1
set protocols mpls path PE1 6.6.6.6 strict
set protocols mpls interface et-0/0/0.0
set protocols mpls interface et-0/0/1.0
set protocols mpls interface lo0.0
set protocols rsvp interface et-0/0/0.0
set protocols rsvp interface et-0/0/1.0
set protocols rsvp interface lo0.0
PE4
set interfaces et-0/0/0 unit 0 family inet address 3.3.3.2/30
set interfaces et-0/0/0 unit 0 family iso
set interfaces et-0/0/0 unit 0 family mpls
set interfaces et-0/0/1 unit 0 family inet address 4.4.4.1/30
set interfaces et-0/0/1 unit 0 family iso
set interfaces et-0/0/1 unit 0 family mpls
set interfaces et-0/0/2 unit 0 family inet address 1.5.5.1/30
set interfaces et-0/0/2 unit 0 family iso
set interfaces lo0 unit 0 family inet address 8.8.8.8/32
set interfaces lo0 unit 0 family iso address 49.0000.8888.0000.0000.00
set interfaces lo0 unit 0 family mpls
set routing-options router-id 8.8.8.8
set routing-options autonomous-system 65400
set protocols isis interface et-0/0/0.0 point-to-point
set protocols isis interface et-0/0/1.0 point-to-point
set protocols isis interface et-0/0/2.0 point-to-point
set protocols isis interface lo0.0 passive
set interfaces lo0 unit 0 family inet address 8.8.8.8/32
set interfaces lo0 unit 0 family iso address 49.0000.8888.0000.0000.00
set interfaces lo0 unit 0 family mpls
set routing-options router-id 8.8.8.8
set routing-options autonomous-system 65400
set protocols isis interface et-0/0/0.0 point-to-point
set protocols isis interface et-0/0/1.0 point-to-point
set protocols isis interface et-0/0/2.0 point-to-point
set protocols isis interface lo0.0 passive
set protocols isis level 1 disable
set protocols isis level 2 wide-metrics-only
set protocols mpls interface et-0/0/0.0
set protocols mpls interface et-0/0/1.0
set protocols mpls interface lo0.0
set protocols rsvp interface et-0/0/0.0
set protocols rsvp interface et-0/0/1.0
set protocols rsvp interface lo0.0
RR
set interfaces et-0/0/1 unit 0 family inet address 1.2.2.2/30
set interfaces et-0/0/1 unit 0 family iso
set interfaces et-0/0/2 unit 0 family inet address 1.3.3.2/30
set interfaces et-0/0/2 unit 0 family iso
set interfaces et-0/0/3 unit 0 family inet address 1.4.4.2/30
set interfaces et-0/0/3 unit 0 family iso
set interfaces et-0/0/4 unit 0 family inet address 1.5.5.2/30
set interfaces et-0/0/4 unit 0 family iso
set interfaces lo0 unit 0 family inet address 9.9.9.9/32
set interfaces lo0 unit 0 family iso address 49.0000.9999.0000.0000.00
set routing-options resolution rib bgp.evpn.0 resolution-ribs inet.0
set routing-options router-id 9.9.9.9
set routing-options autonomous-system 65400
set protocols bgp group EVPN type internal
set protocols bgp group EVPN local-address 9.9.9.9
set protocols bgp group EVPN family evpn signaling
set protocols bgp group EVPN cluster 9.9.9.9
set protocols bgp group EVPN neighbor 5.5.5.5
set protocols bgp group EVPN neighbor 7.7.7.7
set protocols isis interface et-0/0/1.0 point-to-point
set protocols isis interface et-0/0/2.0 point-to-point
set protocols isis interface et-0/0/3.0 point-to-point
set protocols isis interface et-0/0/4.0 point-to-point
set protocols isis interface lo0.0 passive
The VPWS instance will now be up.
OSPF configured on the 2 CE devices confirming the layer 2 circuit.