If you are going to use "clear ip bgp x.x.x.x soft in / out" you must enable the ability first.
Router BGP 1
neighbor x.x.x.x soft-reconfiguration in
Route-Filtering 101
access-list 1 deny 3.3.3.0 0.0.0.255
access-list 1 permit any
Router bgp 1
neighbor x.x.x.x distribute-list 1 in
(Note: If you have more than (1) BGP neighbor that you can learn this prefix from, then you need to add it to all neighbors.
_________
ip prefix-list oscar deny 3.3.3.0/24
ip prefix-list oscar permit 0.0.0.0/0 le 32
Router bgp 1
neighbor x.x.x.x prefix-list oscar in
(Note: If you have more than (1) BGP neighbor that you can learn this prefix from, then you need to add it to all neighbors.
________
access-list 1 deny 3.3.3.0 0.0.0.255
access-list 1 permit any
Route-map oscar permit 10
match ip address 1
Route-map oscar permit 20
Router bgp 1
neighbor x.x.x.x route-map oscar in
(Note: If you have more than (1) BGP neighbor that you can learn this prefix from, then you need to add it to all neighbors.)
You can also use a DENY route-map and a PERMIT route-map instead.
________
Filtering route's by telling the eBGP neighbor to not send them in the first place.
Router BGP 1
address-family ipv4
neighbor 10.1.23.2 capability orf prefix-list both
ip prefix-list oscar deny 3.3.3.0/24
ip prefix-list oscar permit 0.0.0.0/0 le 32
(Note: If you have more than (1) BGP neighbor that you can learn this prefix from, then you need to add it to all neighbors.)
________
No comments:
Post a Comment