Configuration
PE1# /* If logical systems are used for the lab, then * The physical interface encapsulation (ethernet-ccc) is configured * at the global level - NOT at logical system level */ interface { ge-1/1/0 { encapsulation ethernet-ccc; unit 0 { description "PE1->CE1 | Physical interface"; } } } protocols { mpls { /* PE1->P1 */ interface lt-0/0/10.1101; } ospf { area 0.0.0.0 { /* PE1 Loopback */ interface lo0.11; /* PE1->P1 */ interface lt-0/0/10.1101; } } ldp { /* PE1->P1 */ interface lt-0/0/10.1101; /* PE1 Loopback */ interface lo0.11; } l2circuit { neighbor 12.12.12.12 { interface ge-1/1/0.0 { virtual-circuit-id 1; no-control-word; ignore-mtu-mismatch; } } } } PE2# interface { ge-1/1/1 { encapsulation ethernet-ccc; unit 0 { description "PE2->CE2 | Physical interface"; } } } protocols { mpls { /* PE2->P3 */ interface lt-0/0/10.123; } ospf { area 0.0.0.0 { /* PE2->P3 */ interface lt-0/0/10.123; /* PE2 Loopback */ interface lo0.12; } } ldp { /* PE2->P3 */ interface lt-0/0/10.123; /* PE2 Loopback */ interface lo0.12; } l2circuit { neighbor 11.11.11.11 { interface ge-1/1/1.0 { virtual-circuit-id 1; no-control-word; ignore-mtu-mismatch; } } } }
Verification
Confirm that LDP sessions are up not only between local routers PE1-P1, but also via remote targeted LDP session PE1–PE2
pe1@MX:PE1> show ldp neighbor Address Interface Label space ID Hold time 12.12.12.12 lo0.11 12.12.12.12:0 42 100.1.11.1 lt-0/0/10.1101 1.1.1.1:0 14 pe1@MX:PE1> show ldp database Input label database, 11.11.11.11:0--1.1.1.1:0 Label Prefix 3 1.1.1.1/32 299776 2.2.2.2/32 299792 3.3.3.3/32 299840 4.4.4.4/32 299808 5.5.5.5/32 299824 6.6.6.6/32 299952 11.11.11.11/32 299968 12.12.12.12/32 Output label database, 11.11.11.11:0--1.1.1.1:0 Label Prefix 300112 1.1.1.1/32 300128 2.2.2.2/32 300144 3.3.3.3/32 300192 4.4.4.4/32 300160 5.5.5.5/32 300176 6.6.6.6/32 3 11.11.11.11/32 300224 12.12.12.12/32 Input label database, 11.11.11.11:0--12.12.12.12:0 Label Prefix 300160 1.1.1.1/32 300144 2.2.2.2/32 300128 3.3.3.3/32 300208 4.4.4.4/32 300176 5.5.5.5/32 300192 6.6.6.6/32 300224 11.11.11.11/32 3 12.12.12.12/32 300112 L2CKT NoCtrlWord ETHERNET VC 1 Output label database, 11.11.11.11:0--12.12.12.12:0 Label Prefix 300112 1.1.1.1/32 300128 2.2.2.2/32 300144 3.3.3.3/32 300192 4.4.4.4/32 300160 5.5.5.5/32 300176 6.6.6.6/32 3 11.11.11.11/32 300224 12.12.12.12/32 300208 L2CKT NoCtrlWord ETHERNET VC 1
Confirm that the L2CKT is up for the P2P connection between PE1–PE2. If the session is not up, then we may need to check MTU, encapsulation, VC ID.
pe1@MX:PE1> show l2circuit connections | find Neighbor Neighbor: 12.12.12.12 Interface Type St Time last up # Up trans ge-1/1/0.0(vc 1) rmt Up Jul 20 05:27:32 2014 1 Remote PE: 12.12.12.12, Negotiated control-word: No Incoming label: 300208, Outgoing label: 300112 Negotiated PW status TLV: No Local interface: ge-1/1/0.0, Status: Up, Encapsulation: ETHERNET