edit load factory-def set groups BGP protocols bgp group local-as 65001 set groups BGP protocols bgp group export pol-INTERNET set apply-groups BGP set system host-name vMX1 set system root-authentication encrypted-password "$6$w0uV/Veg$MxUKS00aYKDRZKuI13guEQ3yhv0XjZ5vDD/xBSVatXwzxvgMZCjERUu5kEpMaRzFDhrcyf8NLW8lQiM.KpUCE1" set system scripts language python set system login user jcladmin uid 2000 set system login user jcladmin class super-user set system login user jcladmin authentication encrypted-password "$6$COH4QgW/$uFzZAk1fYdnuwVl5WUjhb/4JdtSWIq7y/eCqB3qEFLFK/QBeG1C686NzW0XL0sz8qX4bzyYW0uMIBNXK47Kw7." set system login user jcluser uid 2001 set system login user jcluser class super-user set system login user jcluser authentication encrypted-password "$6$G44rGtvQ$I3jMwJk.0/CbTlhEoZzoDGv9dcFuZYdKvNFHiZwZ6s5Lktf/vMHipZxDwEXxgtid.dmN5K27fMBYwKnSijiQ/." 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 all set chassis fpc 0 pic 0 number-of-ports 8 set chassis fpc 0 lite-mode set interfaces ge-0/0/0 unit 0 family inet address 10.100.12.1/24 set interfaces ge-0/0/0 unit 0 family inet address 10.150.1.1/24 set interfaces ge-0/0/1 unit 0 family inet address 10.100.14.1/24 set interfaces ge-0/0/1 unit 0 family inet address 10.150.2.1/24 set interfaces ge-0/0/2 unit 0 family inet address 10.100.13.1/24 set interfaces ge-0/0/2 unit 0 family inet address 10.150.3.1/25 set interfaces ge-0/0/3 unit 0 family inet address 10.100.15.1/24 set interfaces ge-0/0/3 unit 0 family inet address 10.100.1.1/25 set interfaces fxp0 unit 0 family inet address 100.123.1.0/16 set interfaces lo0 unit 0 family inet address 10.1.1.1/32 set policy-options policy-statement pol-FROMCUST term term-10 from community AS65000:110 set policy-options policy-statement pol-FROMCUST term term-10 then local-preference 110 set policy-options policy-statement pol-FROMCUST term term-10 then accept set policy-options policy-statement pol-FROMCUST term term-20 from community AS65000:90 set policy-options policy-statement pol-FROMCUST term term-20 then local-preference 90 set policy-options policy-statement pol-FROMCUST term term-20 then accept set policy-options policy-statement pol-INTERNET term term-10 from protocol direct set policy-options policy-statement pol-INTERNET term term-10 then reject set policy-options policy-statement pol-INTERNET term term-15 from route-filter 10.0.0.0/8 orlonger set policy-options policy-statement pol-INTERNET term term-15 then accept set policy-options policy-statement pol-INTERNET term term-20 then reject set policy-options policy-statement pol-LOCALAS65001 term term-0 from interface lo0.0 set policy-options policy-statement pol-LOCALAS65001 term term-0 then reject set policy-options policy-statement pol-LOCALAS65001 term term-1 from protocol direct set policy-options policy-statement pol-LOCALAS65001 term term-1 from route-filter 10.0.0.0/8 orlonger set policy-options policy-statement pol-LOCALAS65001 term term-1 then next-hop self set policy-options policy-statement pol-LOCALAS65001 term term-1 then next policy set policy-options policy-statement pol-LOCALAS65001 term term-2 then reject set policy-options community AS65000:110 members 65000:110 set policy-options community AS65000:90 members 65000:90 set protocols bgp apply-groups BGP set protocols bgp group gr-AS65001 type internal set protocols bgp group gr-AS65001 local-address 10.1.1.1 set protocols bgp group gr-AS65001 export pol-LOCALAS65001 set protocols bgp group gr-AS65001 peer-as 65001 set protocols bgp group gr-AS65001 neighbor 10.2.2.2 set protocols bgp group gr-AS65003 type external set protocols bgp group gr-AS65003 export pol-LOCALAS65001 set protocols bgp group gr-AS65003 peer-as 65003 set protocols bgp group gr-AS65003 neighbor 10.150.3.2 set protocols bgp group gr-AS65003 neighbor 10.150.2.254 set protocols bgp group gr-AS65000 type external set protocols bgp group gr-AS65000 export pol-LOCALAS65001 set protocols bgp group gr-AS65000 peer-as 65000 set protocols bgp group gr-AS65000 neighbor 10.100.1.2 set protocols ospf area 0.0.0.0 interface ge-0/0/0.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 set protocols ospf area 0.0.0.1 interface ge-0/0/2.0 set protocols ospf area 0.0.0.1 interface ge-0/0/3.0 set routing-options router-id 10.1.1.1 set routing-options autonomous-system 65001 set routing-options static route 0.0.0.0/0 next-hop 100.123.0.1 set routing-options static route 0.0.0.0/0 no-readvertise commi conf 1