Re: Redistributing only even subnets.

From: Jonathan Chin Kah Fi (kachin@xxxxxxxxx)
Date: Mon Oct 29 2001 - 22:01:11 GMT-3


   
Hi Cliff,

This should be easy

158.168.1.0 to 158.168.92.0 (you only want even subnets)

158.168.2.0, 158.168.4.0, etc

158.168.00000010.0 ---> 2
158.168.00000100.0 ---> 4
158.168.00000110.0 ---> 6

and so on. So you will need to ensure the 24th bit is zero.

so an access-list like this will work 158.168.0.0 with a mask
00000000.00000000.11111110 .111111111

-> access-list 99 permit 158.168.0.0 0.0.254.255

router eigrp 1
redistribute ospf 1 metrix x x x x x
distribute-list 99 out ospf 1

Will this do the trick?

-jonathan

Cliff Ward wrote:

> An interesting issue has arisen.
>
> I'm running OSPF to EIGRP redistribution and want to advertise a group of
> class B subnets. 158.168.1.0 through 158.168.92.0. However odd number subnets
> need not be advertised. EG. Advertise 158.168.2.0 and 158.168.4.0 through...
> but not 158.168.3.0 or 158.168.5.0 etc, etc.
>
> I've been playing with a series of access lists and route maps but is there a
n
> easy way to do it with minimal commands? It seems to me that the last bit in
> the third octet is the discriminator between odd and even but I can't seem to
> get this to translate to an access-list which works with redistribution.
>
> Thanks,
> Cliff.



This archive was generated by hypermail 2.1.4 : Thu Jun 20 2002 - 22:33:28 GMT-3