It's similar to CCC but with label stacking ( Tunnel/LSP and VC labels )
1- In the core:Â
- MPLS enable on core interfaces
- LDP enable on core interfaces:Â to create MPLS LSP ( or RSVP for LDP over RSVP )
- extended LDP session ( targeted-LDP for Alcatel/Nokia )Â enable on l0.0 interface
- single-area OSPFÂ / Single IGP domain ( BGP or RVSP not needed )
2- PE Router: extended LDP session
- Neigbor IP@
- outgoing interface
- VC-ID ( same both end!!!)
3- PE Router:Â VPN service
- interface and logica interface:Â Â Layer 2 VPN interfaces
- CCC or TCC encapsulation
3- CE Router
CCC encapsulation:Â same vlan at both end
TCC encapsulation: different vlan used by CE
#Core interface
set interfaces ae0 description "to-P router"
set interfaces ae0 mtu 9192
set interfaces ae0 aggregated-ether-options lacp active
set interfaces ae0 aggregated-ether-options lacp periodic fast
set interfaces ae0 unit 0 family inet address 10.1.2.1/30
set interfaces ae0 unit 0 family iso
set interfaces ae0 unit 0 family mpls
#IGP: ISIS
set protocols isis reference-bandwidth 100g
set protocols isis max-areas 10
set protocols isis level 1 authentication-key "l1-key-here"
set protocols isis level 1 authentication-type md5
set protocols isis level 1 wide-metrics-only
set protocols isis level 2 authentication-key "l2-key-here"
set protocols isis level 2 authentication-type md5
set protocols isis level 2 wide-metrics-only
set protocols isis interface ae0.0 point-to-point
set protocols isis interface lo0.0 passive
#MPLS
set protocols mpls path-mtu allow-fragmentation
set protocols mpls path-mtu rsvp mtu-signaling
set protocols mpls optimize-switchover-delay 30
set protocols mpls no-propagate-ttl
set protocols mpls no-cspf
set protocols mpls optimize-timer 7200
set protocols mpls interface lo0.0
set protocols mpls interface ae0.0
#MPLS LSP
set protocols mpls label-switched-path lsp-fron-x-to-y to 10.1.1.1
set protocols mpls label-switched-path lsp-fron-x-to-y fast-reroute
#LDP
set protocols lldp interface all
# extended LDP session
set protocols ldp interface lo0.0
#interface to CE device
set interfaces et-0/0/4 description "to-CE1 - ae4"
set interfaces et-0/0/4 ether-options 802.3ad ae4
set interfaces ae4 description "to-CE1"
set interfaces ae4 flexible-vlan-tagging
set interfaces ae4 mtu 9192
set interfaces ae4 encapsulation flexible-ethernet-services
set interfaces ae4 aggregated-ether-options lacp active
set interfaces ae4 aggregated-ether-options lacp periodic fast
set interfaces ae4 unit 121 description "ptp to customer1"
set interfaces ae4 unit 121 encapsulation vlan-ccc
set interfaces ae4 unit 121 vlan-id 121
set interfaces ae4 unit 121 input-vlan-map pop
set interfaces ae4 unit 121 output-vlan-map push
#l2circuit config
set protocols l2circuit neighbor 10.1.1.1 interface ae4.121 virtual-circuit-id 21111
set protocols l2circuit neighbor 10.1.1.1 interface ae4.121 description "l2circuit to customer1"
set protocols l2circuit neighbor 10.1.1.1 interface ae4.121 ignore-mtu-mismatch
set protocols l2circuit neighbor 10.1.1.1 interface ae4.121 pseudowire-status-tlv