From: Jeff Szeto (jytszeto@hotmail.com)
Date: Sat Apr 05 2003 - 12:27:12 GMT-3
If it is not necessary to match the third octet (16), both the prefix-list
and access-list will work.
If it is required, I need to study harder.
I have tried it as follow,
R1
router bgp 46
no synchronization
bgp log-neighbor-changes
neighbor 192.168.0.7 remote-as 46
neighbor 192.168.0.7 prefix-list 10 in
ip prefix-list 10 seq 5 permit 192.0.0.0/8 ge 19 le 25
R1#sh ip bgp
BGP table version is 7, local router ID is 172.16.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>i192.1.16.0/25 192.168.0.7 0 100 0 i
*>i192.1.24.0/22 192.168.0.7 0 100 0 i
*>i192.1.28.0/22 192.168.0.7 0 100 0 i
*>i192.12.24.0/22 192.168.0.7 0 100 0 i
*>i192.16.0.0/19 192.168.0.7 0 100 0 i
*>i192.17.24.0 192.168.0.7 0 100 0 i
R2
router bgp 46
no synchronization
network 192.1.16.0 mask 255.255.255.128
network 192.1.24.0 mask 255.255.252.0
network 192.1.28.0 mask 255.255.252.0
network 192.12.24.0 mask 255.255.252.0
network 192.16.0.0 mask 255.255.224.0
network 192.17.24.0
neighbor 192.168.0.222 remote-as 46
----- Original Message -----
From: "OhioHondo" <ohiohondo@columbus.rr.com>
To: "Jeff Szeto" <jytszeto@hotmail.com>; <love_cisco@hotmail.com>
Cc: <ccielab@groupstudy.com>
Sent: Saturday, April 05, 2003 9:30 PM
Subject: RE: ip prefix-list
> allow network 192.X.16.0/19 to 192.X.16.0/25
>
> ip prefix list permit 192.0.16.0/8 ge 19 le 25
>
> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of
> Jeff Szeto
> Sent: Saturday, April 05, 2003 12:07 AM
> To: love_cisco@hotmail.com
> Cc: ccielab@groupstudy.com
> Subject: Re: ip prefix-list
>
>
> Hi,
>
> I think your access-list is right but, it cannot be done with prefix-list
>
>
>
> <<< "love cisco" <love_cisco@hotmail.com> 4/ 4 5:49p >>>
> Does anybody have a good reference about BGP prefix-list?
>
> I am try to do this prefix-list.
> allow network 192.X.16.0/19 to 192.X.16.0/25 come in from BGP neighbor. X
> is any number.
>
> I did it with access-list:
> access-list 120 permit ip 192.0.16.0 0.255.0.0 255.255.224.0 0.0.31.127
>
> With prefix-list:
> ip prefix-list test seq 12 permit 192.0.0.0/8 ge 19 le 25
>
> Is that right?
>
>
>
>
> _________________________________________________________________
> OmSCJ@=gIOWn4s5D5gWSSJ<~O5M3!* MSN Hotmail!# http://www.hotmail.com
This archive was generated by hypermail 2.1.4 : Thu May 01 2003 - 13:35:47 GMT-3