PE1
set interfaces ge-0/0/1 mac 00:0c:29:c7:28:8b
set interfaces ge-0/0/1 unit 0 family inet address 10.10.8.6/24
set interfaces ge-0/0/1 unit 0 family mpls
set interfaces ge-0/0/4 vlan-tagging
set interfaces ge-0/0/4 encapsulation vlan-ccc
set interfaces ge-0/0/4 mac 00:0c:29:c7:28:a9
set interfaces ge-0/0/4 unit 0 encapsulation vlan-ccc
set interfaces ge-0/0/4 unit 0 vlan-id 1000
set interfaces ge-0/0/4 unit 0 family ccc
set interfaces lo0 unit 0 family inet address 6.6.6.6/24
set routing-options router-id 6.6.6.6
set routing-options forwarding-table export ECMP
set protocols mpls interface ge-0/0/1.0
set protocols ospf area 0.0.0.0 interface ge-0/0/1.0
set protocols ospf area 0.0.0.0 interface lo0.0 passive
set protocols ldp interface ge-0/0/1.0
set protocols ldp interface lo0.0
set protocols l2circuit neighbor 2.2.2.2 interface ge-0/0/4.0 virtual-circuit-id 1
PE2
set interfaces ge-0/0/1 vlan-tagging
set interfaces ge-0/0/1 encapsulation vlan-ccc
set interfaces ge-0/0/1 mac 00:0c:29:4a:be:1d
set interfaces ge-0/0/1 unit 0 encapsulation vlan-ccc
set interfaces ge-0/0/1 unit 0 vlan-id 1000
set interfaces ge-0/0/1 unit 0 family ccc
set interfaces ge-0/0/4 mac 00:0c:29:4a:be:3b
set interfaces ge-0/0/4 unit 0 family inet address 10.10.8.2/24
set interfaces ge-0/0/4 unit 0 family mpls
set interfaces lo0 unit 0 family inet address 2.2.2.2/32
set routing-options router-id 2.2.2.2
set routing-options forwarding-table export ECMP
set protocols mpls interface ge-0/0/4.0
set protocols ospf area 0.0.0.0 interface lo0.0 passive
set protocols ospf area 0.0.0.0 interface ge-0/0/4.0
set protocols ldp interface ge-0/0/4.0
set protocols ldp interface lo0.0
set protocols l2circuit neighbor 6.6.6.6 interface ge-0/0/1.0 virtual-circuit-id 1
chano@PE2# run show l2circuit connections
Layer-2 Circuit Connections:
Legend for interface status
Up -- operational
Dn -- down
Neighbor: 6.6.6.6
Interface Type St Time last up # Up trans
ge-0/0/1.0(vc 1) rmt Up May 18 11:23:56 2015 1
Remote PE: 6.6.6.6, Negotiated control-word: Yes (Null)
Incoming label: 299888, Outgoing label: 300128
Negotiated PW status TLV: No
Local interface: ge-0/0/1.0, Status: Up, Encapsulation: VLAN
Flow Label Transmit: No, Flow Label Receive: No
chano@PE1> ping mpls l2circuit virtual-circuit 1 neighbor 2.2.2.2
!!!!!
--- lsping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss