From: Brian Hescock (bhescock@xxxxxxxxx)
Date: Tue Oct 30 2001 - 00:15:51 GMT-3
I can name that tune in 3... lol (sorry, showing my age, an old tv
show) Someone had brought up a good point off-line (we weren't
subtracting a bit in the wildcard bits), try this:
access-list 1 deny 158.168.94.0 0.0.0.255
access-list 1 permit 158.168.0.0 0.0.62.255
access-list 1 permit 158.168.64.0 0.0.30.255
First line denies 94.0
Second line should only permit even networks up to 62.0 (subtracted one bit fro
m the wildcard bits to only get even nets)
Third line would normally allow even netwowrks from 64 to 94 but we've already
denied 94.
if anyone can do it in two lines I'll buy you a beer. ;-)
Brian
Jason Gardiner wrote:
>Hmmm....
>
>access-list 1 deny 158.168.94.0 0.0.0.255
>access-list 1 permit 158.168.0.0 0.0.63.255
>access-list 1 permit 158.168.64.0 0.0.31.255
>access-list 1 deny 158.168.1.0 0.0.254.255
>
>Thanks,
>
>Jason Gardiner
>Supervisor, Engineering Services
>Sprint <Insert Division Name>
>
>"You can swim all day in the Sea of Knowledge and
>still come out completely dry. Most people do."
>
>- Norton Juster
>
>On Tue, 30 Oct 2001, 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