[nsp] whats wrong in prefix list & as-path list
John Wong, Kok Seng
JohnWong@crimsonlogic.com
Sat, 28 Sep 2002 11:18:38 +0800
Hi,
> 1) Here I have configured as-path access list for not to=20
> receive any routes, but still than I am receiving my providers
> routes which he announced to his provider using network statement.
> Is my filter list ok for not to receive any route or Should I=20
> user regex * only instead of .*
Why don't u use a prefix-list to deny all prefixes? I kinda think
filter-list is more for filtering AS numbers.
> 2) In network statement I am announcing 192.168.64.0/19 ,=20
> and using route-map I am filtering for only 192.168.80.0/24 . But
> still than my provider receiving 192.168.64.0/19 too.
> Whats wrong in my config??
A recommendation by Philip Smith for using the various
BGP filtering :-
prefix-lists to filter prefixes
filter-lists to filter ASNs
route-maps to apply policy
I've been following this rule and have not had any problems
with advertising & filtering prefixes. Maybe u wanna try this
style?
!
router bgp 11111
no synchronization
network 192.168.80.0
network 192.168.64.0 mask 255.255.224.0
neighbor 10.10.10.10 remote-as 12222
neighbor 10.10.10.10 ebgp-multihop 4
neighbor 10.10.10.10 update-source Loopback0
neighbor 10.10.10.10 prefix-list From-Provider in
neighbor 10.10.10.10 prefix-list To-Provider out
no auto-summary
!
ip prefix-list From-Provider seq 5 deny 0.0.0.0/0 le 32
ip prefix-list To-Provider seq 5 permit 192.168.64.0/19 le 24
ip prefix-list To-Provider seq 10 deny 0.0.0.0/0 le 32
Good luck...