edit load factory-default set groups BGP protocols bgp group local-as 65003 set groups BGP protocols bgp group export pol-INTERNET set apply-groups BGP set system host-name vMX3 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.5.1/24 set interfaces ge-0/0/1 unit 0 family inet address 10.150.4.254/24 set interfaces ge-0/0/2 unit 0 family inet address 10.150.3.2/25 set interfaces ge-0/0/4 unit 0 family inet address 10.100.1.129/25 set interfaces fxp0 unit 0 family inet address 100.123.1.2/16 set interfaces lo0 unit 0 family inet address 10.3.3.3/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-LOCALAS65003 term term-0 from interface lo0.0 set policy-options policy-statement pol-LOCALAS65003 term term-0 then reject set policy-options policy-statement pol-LOCALAS65003 term term-1 from protocol direct set policy-options policy-statement pol-LOCALAS65003 term term-1 from route-filter 10.0.0.0/8 orlonger set policy-options policy-statement pol-LOCALAS65003 term term-1 then next-hop self set policy-options policy-statement pol-LOCALAS65003 term term-1 then next policy set policy-options policy-statement pol-LOCALAS65003 term term-2 then next policy set policy-options community AS65000:110 members 65000:110 set policy-options community AS65000:90 members 65000:90 set protocols bgp group gr-AS65001 type external set protocols bgp group gr-AS65001 export pol-LOCALAS65003 set protocols bgp group gr-AS65001 peer-as 65001 set protocols bgp group gr-AS65001 neighbor 10.150.4.2 set protocols bgp group gr-AS65001 neighbor 10.150.3.1 set protocols bgp group gr-AS65003 type internal set protocols bgp group gr-AS65003 local-address 10.3.3.3 set protocols bgp group gr-AS65003 export pol-LOCALAS65003 set protocols bgp group gr-AS65003 peer-as 65003 set protocols bgp group gr-AS65003 neighbor 10.4.4.4 set protocols bgp group gr-AS65000 type external set protocols bgp group gr-AS65000 local-address 10.100.1.129 set protocols bgp group gr-AS65000 import pol-FROMCUST set protocols bgp group gr-AS65000 export pol-LOCALAS65003 set protocols bgp group gr-AS65000 peer-as 65000 set protocols bgp group gr-AS65000 local-as 65003 set protocols bgp group gr-AS65000 neighbor 10.100.1.254 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 10.3.3.3 set routing-options autonomous-system 65003 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 commit conf 1