RE: odd numbered hosts access-list

From: Brian McGahan (brian@xxxxxxxxxxxxxxx)
Date: Wed Jul 03 2002 - 12:49:40 GMT-3


   
David,

        Assuming your talking about only odd hosts within the
172.16.80.128/25 subnet, the list would read:

Access-list 1 permit 172.16.80.129 0.0.0.126

All numbers from 128-255 will have the first bit (128) set. Of these
numbers, all odd ones will also have the last bit (1) set. Therefore
you get 129. Since we only care about the first and the last bit, the
wildcard is 126.

10000001 <-- 129
01111110 <-- 126 Wildcard

HTH

Brian McGahan, CCIE #8593
Director of Design and Implementation
brian@cyscoexpert.com

CyscoExpert Corporation
Internetwork Consulting & Training
http://www.cyscoexpert.com
Voice: 847.674.3392
Fax: 847.674.2625

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Shane Miles
Sent: Wednesday, July 03, 2002 9:45 AM
To: 'ccielab@groupstudy.com'
Subject: RE: odd numbered hosts access-list

 I always screw these up but I'll give it a try. How about:
access-list 1 permit 172.16.80.129 0.0.0.128

-----Original Message-----
From: David Ham
To: ccielab@groupstudy.com
Sent: 7/2/02 8:32 PM
Subject: odd numbered hosts access-list

Hi all,

I have simple access-list question that I couldn't figure out.

I am trying to pass only odd numbered hosts at the token-ring interfaces
with 172.16.80.129/25

what could be the answer and the exponation??

Thanks in advance.

Regards,
David Ham



This archive was generated by hypermail 2.1.4 : Sat Sep 07 2002 - 19:36:18 GMT-3