RE: Suggestion on BGP Prefix-list

From: OhioHondo (ohiohondo@columbus.rr.com)
Date: Thu Jun 05 2003 - 12:41:24 GMT-3


The requirement is to allow only 192.168.1.0/24, 192.168.2.0/24
> and 192.168.5.0/24 ONLY

> prefix-list XXX seq 5 permit 192.168.0.0/21 ge 24 le 24

This will allow 192.168.0.0/24 through 192.168.7.0/24 and nothing else.

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of
Jay Hennigan
Sent: Thursday, June 05, 2003 10:01 AM
To: Ram Shummoogum
Cc: scotsman@rediffmail.com; ccielab@groupstudy.com
Subject: Re: Suggestion on BGP Prefix-list

On Thu, 5 Jun 2003, Ram Shummoogum wrote:

> Let me give it a shot.
>
> prefix-list XXX seq 5 deny 192.168.20.0/23 ge 24 le 24
> prefix-list XXX seq 10 permit 0.0.0.0/0 le 32

One line:

ip prefix-list xxx seq 10 permit 192.168.0.0/21 ge 24 le 24

For this scenario, the following would also work:

ip prefix-list xxx seq 10 permit 192.168.0.0/20 ge 24 le 24

> "Scot Peter" <scotsman@rediffmail.com>@groupstudy.com on 06/05/2003
> Subject: Suggestion on BGP Prefix-list
>
>
> 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
>
>
> ___________________________________________________
> Get email that means BUSINESS! me @ mycompany.com.
> Just Rs.1499/year.
> To start, click http://www.rediffmailpro.com
>

-- 
Jay Hennigan - CCIE #7880 - Network Administration - jay@west.net
WestNet:  Connecting you to the planet.  805 884-6323      WB6RDV
NetLojix Communications, Inc.  -  http://www.netlojix.com/


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