RE: ip prefix-list ....

From: Gyori Gábor (Gabor.Gyori@xxxxxx)
Date: Tue Jul 02 2002 - 14:47:49 GMT-3


   
As I experienced, ge meens the prefix length (the number of 1-s in subnet
mask) is greather or equal then the given number. The le works similar: it
matches if the prefix length is lower or equal then the given value.

So for 172.16.0.0/16 ge 23, the following nets are matched (for example):
 172.16.0.0/23
 172.16.2.0/23
 172.16.0.0/24
 172.16.3.64/28

I have tested it.

An other examle permits the the networks that are at least /19 size
 prefix-list savememory permit 0.0.0.0/0 le 19

See below too.

> -----Original Message-----
> From: Hunt Lee [mailto:ciscoforme3@yahoo.com.au]
> Sent: Tuesday, July 02, 2002 1:50 PM
> To: ccielab@groupstudy.com
> Subject: ip prefix-list ....
>
>
> Could someone explain to me how is the "ge" and "le" options are used
> for in a prefix list statement?
>
> Example:
>
> ip prefix-list TEST permit 172.16.0.0/24
> ip prefix-list TEST permit 172.16.1.0/24
> ip prefix-list TEST permit 172.16.2.0/24
> ip prefix-list TEST permit 172.16.3.0/24
>
> I understand that these 4 prefix-lists together will permit the 4
> subnets.

The statements abow explicitly permits that for subnet (not more, no longer
prefixes).

It can be shortened as (equivalent with):
 ip prefix-list TEST deny 172.16.0.0/22 ge 25
 ip prefix-list TEST permit 172.16.0.0/22 ge 24

The sequence is essential.

Gabor



This archive was generated by hypermail 2.1.4 : Sat Sep 07 2002 - 19:36:18 GMT-3