Suggestion on BGP Prefix-list

From: Scot Peter (scotsman@rediffmail.com)
Date: Thu Jun 05 2003 - 07:35:14 GMT-3


Hello Group,

I have a scenario like this

AS254--(EBGP)----R4(AS1)---(IBGP)---R2(AS1)

AS 254 is advertising five routes to R4 in the range...
192.168.1.0/24
192.168.2.0/24
192.168.5.0/24
192.168.20.0/24
192.168.21.0/24
The requirement is to allow only 192.168.1.0/24, 192.168.2.0/24
and 192.168.5.0/24 ONLY; and filter all other routes. DO NOT use
any access-lists / distribute lists; use only prefix lists with
minimum number of lines.

I have configured the below on R4; but not sure on configuring
minimum number of lines. Please advice.

Router bgp 1
neighbor 10.1.1.1 remot-as 254
neighbor 10.1.1.1 prefix-list XXX in

prefix-list XXX seq 5 permit 192.168.1.0/24
prefix-list XXX seq 10 permit 192.168.2.0/24
prefix-list XXX seq 15 permit 192.168.5.0/24

Is this config is OK with the minimum number of lines?

Thanks in advance
SP



This archive was generated by hypermail 2.1.4 : Fri Jul 04 2003 - 11:10:53 GMT-3