From: Tim Fletcher (tim@fletchmail.net)
Date: Wed Mar 05 2003 - 19:32:57 GMT-3
Danny,
Just change the appropriate octet (the 3rd in your example) from 1 to 0.
access-list 1 deny 10.10.0.0 0.0.254.255
With a 254 mask, you are saying ignore everything but the 1s bit. If you
have a 0 in the address, the 1s bit is off and you will match all addresses
with a 0 in the 1s bit (all even numbers). If you have a 1 in the address,
the 1s bit is on and you will match all address with a 1 in the 1s bit (all
odd numbers).
-Tim Fletcher
At 02:30 PM 3/5/2003 -0500, Danny Andaluz andaluz wrote:
>I'm trying to figure something out here.
>
>I know how to allow even networks and deny odd networks:
>
>router ospf 3
>network x.x.x.x
>dist-list 1 out
>
>access-list 1 deny 10.10.1.0 0.0.254.255
>access-list 1 permit any
>
>this would only allow 10.10.2.0, 4.0, 6.0 ,etc... to be advertised.
>
>How would you allow only odd networks and deny even networks? I have
>tried many different ways and nothing works.
>
>TIA
>
>Danny
This archive was generated by hypermail 2.1.4 : Sat Apr 05 2003 - 08:51:33 GMT-3