Re: Prefix lists

From: Brian Lodwick (xpranax@xxxxxxxxxxx)
Date: Fri Mar 22 2002 - 16:02:07 GMT-3


   
In access-list format this 199.100.0.0 0.0.255.255

equals this in prefix-list format

ip prefix-list 1 permit permit 199.100.0.0/16 le 32

Meaning you will allow all subnets from a /16 to a /32 if the first 2 octets
look like 199.100

I didn't quite catch exactly what you were saying on the other part.
"apply this to filter routes which will allow subnets 1 - 254 to pass of a
/24 network only."

Are you saying you don't want anything to pass that has less than a /24
mask?
If yes then your prefix list should look like this:

ip prefix-list 1 permit permit 199.100.0.0/16 le 24

Which would allow all updates from 199.100.0.0/16 to 199.100.0.0/24 but
nothing less than /24 will be allowed no /25 - /32

>>>Brian

>From: "Williams, Glenn" <WILLIAMSG@PANASONIC.COM>
>Reply-To: "Williams, Glenn" <WILLIAMSG@PANASONIC.COM>
>To: "'ccielab@groupstudy.com'" <ccielab@groupstudy.com>
>Subject: Prefix lists
>Date: Fri, 22 Mar 2002 12:51:25 -0500
>
>Friends,
>
>I know for BGP I can do this with an access list:
>
>access-list 100 permit ip 199.100.0.0 0.0.255.255 host 255.255.255.0
>
>apply this to filter routes which will allow subnets 1 - 254 to pass of a
>/24 network only. For a prefix-list would it look like this????:
>
>ip prefix-list 1 permit permit 199.100.0.0/16 ge 25 le 25
>
>is it the same or how would it look?
>
>GW



This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 10:57:18 GMT-3