! PermitANY — Cisco IOS BGP (eBGP / iBGP) ! eBGP and iBGP configuration with route reflectors, communities, prefix-lists, and route-maps for Cisco IOS/IOS-XE. ! Generated: 2026-09-20 ! These are EXAMPLE values. Replace with your actual config before deploying. ! hostname RTR-EDGE-01 ! ip prefix-list PL-ACCEPT-IN seq 10 permit 10.0.0.0/8 le 24 ! route-map RM-ISP1-IN permit 10 match ip address prefix-list PL-ACCEPT-IN set local-preference 200 set metric 100 set community 65001:100 set weight 1000 ! router bgp 65001 bgp router-id 1.1.1.1 bgp log-neighbor-changes network 10.0.0.0 mask 255.255.0.0 neighbor 203.0.113.1 remote-as 65002 neighbor 203.0.113.1 description ISP1-eBGP neighbor 203.0.113.1 update-source Loopback0 neighbor 203.0.113.1 send-community neighbor 203.0.113.1 soft-reconfiguration inbound neighbor 203.0.113.1 route-map RM-ISP1-IN in neighbor 203.0.113.1 route-map RM-ISP1-OUT out neighbor 203.0.113.1 prefix-list PL-ACCEPT-IN in neighbor 203.0.113.1 prefix-list PL-ADVERTISE-OUT out !