Hello,
Here is the sample config for You. Setting MAC on irb unit requires JUNOS 13.3+.
ACX4K lo0.0 is 169.254.3.211
MX-A lo0.0 is 169.254.0.111
MX-B lo0.0 is 169.254.0.112
ACX4000 side - usual L2circuit config:
set interfaces ge-0/0/7 vlan-tagging
set interfaces ge-0/0/7 encapsulation extended-vlan-ccc
set interfaces ge-0/0/7 unit 10 vlan-id 10
set interfaces ge-0/0/7 unit 10 family ccc
set protocols l2circuit neighbor 169.254.0.111 interface ge-0/0/7.10 virtual-circuit-id 1010
set protocols l2circuit neighbor 169.254.0.111 interface ge-0/0/7.10 no-control-word
set protocols l2circuit neighbor 169.254.0.111 interface ge-0/0/7.10 encapsulation-type ethernet
set protocols l2circuit neighbor 169.254.0.111 interface ge-0/0/7.10 backup-neighbor 169.254.0.112
MX-A side config:
set interfaces irb unit 10 family inet address 203.0.113.188/24
set interfaces irb unit 10 mac 02:02:02:02:02:02
set routing-instances LDP-VPLS instance-type virtual-switch
set routing-instances LDP-VPLS protocols vpls no-tunnel-services
set routing-instances LDP-VPLS protocols vpls vpls-id 1010
set routing-instances LDP-VPLS protocols vpls neighbor 169.254.3.211 encapsulation-type ethernet
set routing-instances LDP-VPLS protocols vpls connectivity-type permanent
set routing-instances LDP-VPLS bridge-domains BD10 domain-type bridge
set routing-instances LDP-VPLS bridge-domains BD10 vlan-id 10
set routing-instances LDP-VPLS bridge-domains BD10 routing-interface irb.10
set routing-instances VRF-1 instance-type vrf
set routing-instances VRF-1 interface irb.10
MAC-B config:
set interfaces irb unit 10 family inet address 203.0.113.188/24
set interfaces irb unit 10 mac 02:02:02:02:02:02
set routing-instances LDP-VPLS instance-type virtual-switch
set routing-instances LDP-VPLS protocols vpls no-tunnel-services
set routing-instances LDP-VPLS protocols vpls vpls-id 1010
set routing-instances LDP-VPLS protocols vpls neighbor 169.254.3.211 encapsulation-type ethernet
set routing-instances LDP-VPLS protocols vpls connectivity-type permanent
set routing-instances LDP-VPLS bridge-domains BD10 domain-type bridge
set routing-instances LDP-VPLS bridge-domains BD10 vlan-id 10
set routing-instances LDP-VPLS bridge-domains BD10 routing-interface irb.10
set routing-instances VRF-1 instance-type vrf
set routing-instances VRF-1 interface irb.10
Verification:
- ACX4K side
>show l2circuit connections
Layer-2 Circuit Connections:
Legend for connection status (St)
EI -- encapsulation invalid NP -- interface h/w not present
MM -- mtu mismatch Dn -- down
EM -- encapsulation mismatch VC-Dn -- Virtual circuit Down
CM -- control-word mismatch Up -- operational
VM -- vlan id mismatch CF -- Call admission control failure
OL -- no outgoing label IB -- TDM incompatible bitrate
NC -- intf encaps not CCC/TCC TM -- TDM misconfiguration
BK -- Backup Connection ST -- Standby Connection
CB -- rcvd cell-bundle size bad SP -- Static Pseudowire
LD -- local site signaled down RS -- remote site standby
RD -- remote site signaled down HS -- Hot-standby Connection
XX -- unknown
Legend for interface status
Up -- operational
Dn -- down
Neighbor: 169.254.0.111
Interface Type St Time last up # Up trans
ge-0/0/7.10(vc 1010) rmt Up Apr 12 01:46:49 2018 1
Remote PE: 169.254.0.111, Negotiated control-word: No
Incoming label: 300064, Outgoing label: 262145
Negotiated PW status TLV: No
Local interface: ge-0/0/7.10, Status: Up, Encapsulation: ETHERNET
Flow Label Transmit: No, Flow Label Receive: No
Neighbor: 169.254.0.112
Interface Type St Time last up # Up trans
ge-0/0/7.10(vc 1010) rmt BK
- MX-A side:
>show vpls connections
Layer-2 VPN connections:
Legend for connection status (St)
EI -- encapsulation invalid NC -- interface encapsulation not CCC/TCC/VPLS
EM -- encapsulation mismatch WE -- interface and instance encaps not same
VC-Dn -- Virtual circuit down NP -- interface hardware not present
CM -- control-word mismatch -> -- only outbound connection is up
CN -- circuit not provisioned <- -- only inbound connection is up
OR -- out of range Up -- operational
OL -- no outgoing label Dn -- down
LD -- local site signaled down CF -- call admission control failure
RD -- remote site signaled down SC -- local and remote site ID collision
LN -- local site not designated LM -- local site ID not minimum designated
RN -- remote site not designated RM -- remote site ID not minimum designated
XX -- unknown connection status IL -- no incoming label
MM -- MTU mismatch MI -- Mesh-Group ID not available
BK -- Backup connection ST -- Standby connection
PF -- Profile parse failure PB -- Profile busy
RS -- remote site standby SN -- Static Neighbor
LB -- Local site not best-site RB -- Remote site not best-site
VM -- VLAN ID mismatch HS -- Hot-standby Connection
Legend for interface status
Up -- operational
Dn -- down
Instance: LDP-VPLS
VPLS-id: 1010
Neighbor Type St Time last up # Up trans
169.254.3.211(vpls-id 1010) rmt Up Apr 12 01:46:58 2018 1
Remote PE: 169.254.3.211, Negotiated control-word: No
Incoming label: 262145, Outgoing label: 300064
Negotiated PW status TLV: No
Local interface: lsi.1048577, Status: Up, Encapsulation: ETHERNET
Description: Intf - vpls LDP-VPLS neighbor 169.254.3.211 vpls-id 1010
Flow Label Transmit: No, Flow Label Receive: No
> show interfaces irb terse
show interfaces irb.10
Logical interface irb.10 (Index 342) (SNMP ifIndex 552)
Flags: Up SNMP-Traps 0x4004000 Encapsulation: ENET2
MAC: 02:02:02:02:02:02
Bandwidth: 1000mbps
Routing Instance: LDP-VPLS Bridging Domain: BD10
Input packets : 0
Output packets: 0
Protocol inet, MTU: 1514
Max nh cache: 75000, New hold nh limit: 75000, Curr nh cnt: 0, Curr new hold cnt: 0, NH drop cnt: 0
Flags: Sendbcast-pkt-to-re
Addresses, Flags: Is-Preferred Is-Primary
Destination: 203.0.113/24, Local: 203.0.113.188, Broadcast: 203.0.113.255
Protocol multiservice, MTU: 1514
- MX-B side:
>show vpls connections | no-more
Layer-2 VPN connections:
Legend for connection status (St)
EI -- encapsulation invalid NC -- interface encapsulation not CCC/TCC/VPLS
EM -- encapsulation mismatch WE -- interface and instance encaps not same
VC-Dn -- Virtual circuit down NP -- interface hardware not present
CM -- control-word mismatch -> -- only outbound connection is up
CN -- circuit not provisioned <- -- only inbound connection is up
OR -- out of range Up -- operational
OL -- no outgoing label Dn -- down
LD -- local site signaled down CF -- call admission control failure
RD -- remote site signaled down SC -- local and remote site ID collision
LN -- local site not designated LM -- local site ID not minimum designated
RN -- remote site not designated RM -- remote site ID not minimum designated
XX -- unknown connection status IL -- no incoming label
MM -- MTU mismatch MI -- Mesh-Group ID not available
BK -- Backup connection ST -- Standby connection
PF -- Profile parse failure PB -- Profile busy
RS -- remote site standby SN -- Static Neighbor
LB -- Local site not best-site RB -- Remote site not best-site
VM -- VLAN ID mismatch HS -- Hot-standby Connection
Legend for interface status
Up -- operational
Dn -- down
Instance: LDP-VPLS
VPLS-id: 1010
Neighbor Type St Time last up # Up trans
169.254.3.211(vpls-id 1010) rmt OL
>show interfaces irb.10
Logical interface irb.10 (Index 340) (SNMP ifIndex 553)
Flags: Hardware-Down Up SNMP-Traps 0x4004000 Encapsulation: ENET2
MAC: 02:02:02:02:02:02
Bandwidth: 1000mbps
Routing Instance: LDP-VPLS Bridging Domain: BD10
Input packets : 0
Output packets: 0
Protocol inet, MTU: 1514
Max nh cache: 75000, New hold nh limit: 75000, Curr nh cnt: 0, Curr new hold cnt: 0, NH drop cnt: 0
Flags: Sendbcast-pkt-to-re
Addresses, Flags: Dest-route-down Is-Preferred Is-Primary
Destination: 203.0.113/24, Local: 203.0.113.188, Broadcast: 203.0.113.255
Protocol multiservice, MTU: 1514
HTH
Thx
Alex