BGP Outbound Route Filtering (ORF)
R1 advertise following networks to R2: R2#sh ip bgp | b Network Network Next Hop Metric LocPrf Weight Path *> 192.168.1.0 100.100.12.1 0 0 100 i *> 192.168.2.0 100.100.12.1 0 0 100 i *> 192.168.3.0 100.100.12.1 0 0 100 i R2# Then we add a prefix-list to deny 192.168.2.0 network: R2(config)#do sh run | s prefix-list ip prefix-list FROM-R1 seq 5 deny 192.168.2.0/24 ip prefix-list FROM-R1 seq 10 permit 0.0.0.0/0 le 32 R2(config)#do sh run | s bgp router bgp 200 bgp log-neighbor-changes neighbor 100.100.12.1 remote-as 100 neighbor 100.100.12.1 prefix-list FROM-R1 in R2(config)# Then we can see the 192.168.2.0/24 is no longer in BGP table: R2#clear ip bgp 100.100.12.1 in R2#sh ip bgp | b Network Network Next Hop Metric LocPrf Weight Path *> 192.168.1.0 100.100.12.1 0 0 100 i *> 192.168.3.0 100.100.1