edit load factory-def set groups gr-AS65002 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 vMX2 set system root-authentication encrypted-password "$6$w0uV/Veg$MxUKS00aYKDRZKuI13guEQ3yhv0XjZ5vDD/xBSVatXwzxvgMZCjERUu5kEpMaRzFDhrcyf8NLW8lQiM.KpUCE1" 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 set system time-zone America/Montreal set system syslog file messages any notice set system syslog file messages authorization info set system syslog file interactive-commands interactive-commands any set interfaces ge-0/0/0 unit 0 family inet address 10.150.1.2/24 set interfaces ge-0/0/1 unit 0 family inet address 10.150.4.2/24 set interfaces ge-0/0/2 unit 0 family inet address 10.150.6.2/24 set interfaces ge-0/0/3 unit 0 family inet address 10.200.1.2/25 set interfaces fxp0 unit 0 family inet address 100.123.1.1/16 set interfaces lo0 unit 0 family inet address 10.2.2.2/32 set policy-options policy-statement pol-FROMCUST term term-10 from community AS65001: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 next-hop self set policy-options policy-statement pol-FROMCUST term term-10 then accept set policy-options policy-statement pol-FROMCUST term term-20 from community AS65001: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 next-hop self 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 from interface fxp0.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 accept set policy-options policy-statement pol-LOCALAS65001 term term-2 then next policy set policy-options community AS65001:110 members 65001:110 set policy-options community AS65001:90 members 65001:90 set policy-options community AS65002:110 members 65002:110 set policy-options community AS65002:90 members 65002:90 set protocols bgp group gr-AS65001 type internal set protocols bgp group gr-AS65001 local-address 10.2.2.2 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.1.1.1 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.4.254 set protocols bgp group gr-AS65003 neighbor 10.150.6.254 set protocols bgp group gr-AS65002 type external set protocols bgp group gr-AS65002 local-address 10.200.1.2 set protocols bgp group gr-AS65002 import pol-FROMCUST set protocols bgp group gr-AS65002 export pol-LOCALAS65001 set protocols bgp group gr-AS65002 peer-as 65002 set protocols bgp group gr-AS65002 neighbor 10.200.1.1 set protocols ospf area 0.0.0.0 interface ge-0/0/0.0 set protocols ospf area 0.0.0.0 interface lo0.0 set routing-options router-id 10.2.2.2 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 comm conf 1