RE: Redistributing only even subnets.

From: Albert Lu (albert_ccie@xxxxxxxxx)
Date: Mon Oct 29 2001 - 23:57:59 GMT-3


   
Yes, you are right. I forgot I could get rid of the 6th line by setting the
8th bit of the inverse mask and address to 0.

And I screwed up this line access-list 1 permit 158.168.92.0 0.0.0.0 as this
looks for a specific host.

-----Original Message-----
From: Bryan Osoro [mailto:bosoro@hotmail.com]
Sent: Tuesday, October 30, 2001 1:55 PM
To: albert_ccie@yahoo.com
Cc: ccielab@groupstudy.com
Subject: RE: Redistributing only even subnets.

Actually, shouldn't it be

Access-list 1 permit 158.168.0.0 0.0.62.255
Access-list 1 permit 158.168.64.0 0.0.14.255
Access-list 1 permit 158.168.80.0 0.0.6.255
Access-list 1 permit 158.168.88.0 0.0.2.255
Access-list 1 permit 158.168.92.0 0.0.0.255

You wanted even subnets, correct?

-Bryan

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Brian Hescock
Sent: Monday, October 29, 2001 7:46 PM
To: albert_ccie@yahoo.com
Cc: 'Cliff Ward'; ccielab@groupstudy.com; 'Andy Cuberly'
Subject: Re: Redistributing only even subnets.

Yep, 5 lines, get rid of the deny statement at the end :-)

Albert Lu wrote:

>You mean:
>
>access-list 1 permit 158.168.0.0 0.0.63.255
>access-list 1 permit 158.168.64.0 0.0.15.255
>access-list 1 permit 158.168.80.0 0.0.7.255
>access-list 1 permit 158.168.88.0 0.0.3.255
>access-list 1 permit 158.168.92.0 0.0.0.0
>access-list 1 deny 158.168.1.0 0.0.254.255
>
>Hmm... 6 lines. Anyone knows a shorter way?
>
>Albert
>
>-----Original Message-----
>From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of
>Brian Hescock
>Sent: Tuesday, October 30, 2001 1:02 PM
>To: Andy Cuberly
>Cc: 'Cliff Ward'; ccielab@groupstudy.com
>Subject: Re: Redistributing only even subnets.
>
>
>These are the kinds of things everyone needs to watch out for, easy
>points missed. Because the requirement said even networks up through
>92.0, not 254.0. So what you really need is five line:
>
>even networks been 0-63, 64-79, 80-87, 88-91, and 92
>
>Brian
>
>
>
>Andy Cuberly wrote:
>
>>An access list with the following commands would filter out ALL odd
>>networks.
>>
>>Access-list 1 deny 158.168.1.0 0.0.254.255
>>Access-list 1 permit any
>>
>>Andy
>>
>>-----Original Message-----
>>From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of
>>Cliff Ward
>>Sent: Monday, October 29, 2001 4:40 PM
>>To: ccielab@groupstudy.com
>>Subject: Redistributing only even subnets.
>>
>>
>>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
>>an
>>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