RE: ip prefix-list

From: Daniel Cisco Group Study (danielcgs@imc.net.au)
Date: Mon Apr 07 2003 - 05:57:29 GMT-3


I believe that the access-list version should be:

access-list 120 permit ip 192.0.16.0 0.255.0.0 255.255.224.0 0.0.31.128

Note the 128, not 127.

Explanation:

The mask we are trying to match is:

255.255.224.0 to 255.255.255.128

Look at last two octets of the above subnet masks:
11100000.00000000 to 11111111.10000000

therefore the don't care bits for the subnet mask are the last 5 bits of the third octet, and the first bit on the 4th octet:

This gives the following wild card mask for 3rd & 4th octets:
00011111.10000000 --> 31.128

Therefore 0.0.31.128

Daniel

-----Original Message-----
From: love cisco [mailto:love_cisco@hotmail.com]
Sent: Friday, 4 April 2003 19:49
To: ccielab@groupstudy.com
Subject: ip prefix-list

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?



This archive was generated by hypermail 2.1.4 : Thu May 01 2003 - 13:35:48 GMT-3