edit load factory-defaultset 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 system processes dhcp-service traceoptions file dhcp_logfile set system processes dhcp-service traceoptions file size 10m set system processes dhcp-service traceoptions level all set system processes dhcp-service traceoptions flag packet 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 10.1.34.2/24 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 172.16.2.2/30 set interfaces fxp0 unit 0 family inet address 100.123.1.3/16 set interfaces lo0 unit 0 family inet address 192.168.0.3/32 set policy-options policy-statement pol-IBGP then next-hop self set policy-options policy-statement toEXT term temr-1 from route-filter 10.0.0.0/8 exact set policy-options policy-statement toEXT term temr-1 from route-filter 172.16.0.0/16 exact set policy-options policy-statement toEXT term temr-1 from route-filter 192.168.0.0/16 exact set policy-options policy-statement toEXT term temr-1 then accept set policy-options policy-statement toEXT term temr-2 then reject set protocols bgp group ibgp type internal set protocols bgp group ibgp local-address 192.168.0.3 set protocols bgp group ibgp family inet unicast set protocols bgp group ibgp export pol-IBGP set protocols bgp group ibgp neighbor 192.168.0.1 set protocols bgp group ibgp neighbor 192.168.0.2 set protocols bgp group toEXt type external set protocols bgp group toEXt local-address 172.16.2.2 set protocols bgp group toEXt family inet unicast set protocols bgp group toEXt export toEXT set protocols bgp group toEXt peer-as 64520 set protocols bgp group toEXt neighbor 172.16.2.1 set protocols ospf traffic-engineering set protocols ospf area 0.0.0.0 interface lo0.0 set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 set routing-options router-id 192.168.0.3 set routing-options autonomous-system 65412 set routing-options static route 0.0.0.0/0 next-hop 100.123.0.1 set routing-options aggregate route 192.168.0.0/16 set routing-options aggregate route 10.0.0.0/8 set routing-options generate route 172.16.0.0/16 commit conf 1