! PermitANY — Juniper JunOS BGP (eBGP / iBGP / RR) ! eBGP and iBGP configuration for Juniper JunOS with route reflectors, peer groups, communities, import/export policies, and prefix-list filters. ! Generated: 2026-09-20 ! These are EXAMPLE values. Replace with your actual config before deploying. ! set system host-name JNP-EDGE-01 set routing-options router-id 1.1.1.1 set routing-options autonomous-system 65001 ! # Prefix Lists set policy-options prefix-list PL-ACCEPT-IN 10.0.0.0/8 upto /24 ! # Routing Policies set policy-options policy-statement IMPORT-FROM-ISP term ACCEPT from prefix-list PL-ACCEPT-IN set policy-options policy-statement IMPORT-FROM-ISP term ACCEPT then local-preference 200 set policy-options policy-statement IMPORT-FROM-ISP term ACCEPT then community add COMMUNITY-65001:100 set policy-options community COMMUNITY-65001:100 members 65001:100 set policy-options policy-statement IMPORT-FROM-ISP term ACCEPT then accept ! # Advertise policy set policy-options policy-statement ADVERTISE term NETS from route-filter 10.0.0.0/16 exact set policy-options policy-statement ADVERTISE term NETS then accept set policy-options policy-statement ADVERTISE term DEFAULT then reject ! # BGP Peer Groups set protocols bgp group EBGP-PEERS type external set protocols bgp group EBGP-PEERS import IMPORT-FROM-ISP set protocols bgp group EBGP-PEERS export EXPORT-TO-ISP ! # BGP Neighbors set protocols bgp group EBGP-PEERS neighbor 203.0.113.1 peer-as 65000 set protocols bgp group EBGP-PEERS neighbor 203.0.113.1 description "ISP1" set protocols bgp group EBGP-PEERS neighbor 203.0.113.1 local-address 203.0.113.2