edit load factory-default set version 21.1R1.11 set system host-name PE2 set system root-authentication encrypted-password "$6$iV87lLLH$J5PgOILA3bCKA8wp4hBeNoK7QS6tb/MP9Z9iJlpuDD0gbgmgmdRrA2pIVIMfxhirrQGcZlvKGqUJYWfKgGPHZ." set system scripts language python3 set system login user jcluser uid 2000 set system login user jcluser class super-user set system login user jcluser authentication encrypted-password "$6$w/7lX5wK$dToen.eIS.Zh6zKaDVfLBfw4vaUJgbM6l0.EP7D.l6WPO3eTmKxoQiNe2mx00ANM799O4gJbQGbIgA6UUzYl4." set system services ssh root-login allow set system services netconf ssh set system services rest http port 3000 set system services rest enable-explorer set system time-zone America/Montreal set system syslog user * any emergency set system syslog file messages any notice set system syslog file messages authorization info set system syslog file interactive-commands interactive-commands any set chassis fpc 0 pic 0 number-of-ports 8 set chassis fpc 0 lite-mode set interfaces ge-0/0/0 unit 0 description "Link from PE2 to P" set interfaces ge-0/0/0 unit 0 family inet address 192.168.212.2/30 set interfaces ge-0/0/0 unit 0 family iso set interfaces ge-0/0/0 unit 0 family mpls set interfaces ge-0/0/1 unit 0 description "Link from PE2 to CE2" set interfaces ge-0/0/1 unit 0 family inet address 192.168.3.1/30 set interfaces fxp0 unit 0 family inet address 100.123.1.3/16 set interfaces lo0 unit 0 family inet address 192.168.2.4/32 set interfaces lo0 unit 0 family iso address 49.0001.1921.6800.2004.00 set policy-options prefix-list pre-DEFAULTRTE 10.0.0.0/8 set policy-options prefix-list pre-DEFAULTRTE 172.16.0.0/16 set policy-options policy-statement DEFAULT-RTE term term-ALLOW from prefix-list pre-DEFAULTRTE set policy-options policy-statement DEFAULT-RTE term term-ALLOW then accept set policy-options policy-statement DEFAULT-RTE term term-ELSE then reject set policy-options policy-statement EGRESS_LDP term export from protocol direct set policy-options policy-statement EGRESS_LDP then accept set policy-options policy-statement pol-CUSTPREFIX term term-CUSTPRE from neighbor 192.168.3.2 set policy-options policy-statement pol-CUSTPREFIX term term-CUSTPRE then next-hop self set policy-options policy-statement pol-CUSTPREFIX term term-CUSTPRE then accept set policy-options policy-statement pol-CUSTPREFIX term term-OTHER then reject set policy-options policy-statement pol-EGRESS term term-EXPORT from route-filter 192.168.3.0/30 exact set policy-options policy-statement pol-EGRESS term term-EXPORT from route-filter 192.168.2.4/32 exact set policy-options policy-statement pol-EGRESS term term-EXPORT then accept set protocols bgp group CUST type external set protocols bgp group CUST local-address 192.168.3.1 set protocols bgp group CUST export DEFAULT-RTE set protocols bgp group CUST peer-as 65502 set protocols bgp group CUST local-as 65500 set protocols bgp group CUST neighbor 192.168.3.2 set protocols bgp group ISP type internal set protocols bgp group ISP local-address 192.168.2.4 set protocols bgp group ISP export pol-CUSTPREFIX set protocols bgp group ISP peer-as 65500 set protocols bgp group ISP local-as 65500 set protocols bgp group ISP neighbor 192.168.2.2 shutdown set protocols isis interface ge-0/0/0.0 level 1 disable set protocols isis interface ge-0/0/1.0 passive set protocols isis interface lo0.0 set protocols ldp egress-policy pol-EGRESS set protocols ldp transport-address 192.168.2.4 set protocols ldp interface ge-0/0/0.0 link-protection set protocols mpls interface ge-0/0/0.0 set routing-options router-id 192.168.2.4 set routing-options autonomous-system 65500 set routing-options static route 0.0.0.0/0 next-hop 100.123.0.1 set routing-options static route 172.16.0.0/16 discard set routing-options static route 10.0.0.0/8 discard run clear log messages commi confi 1