RE: access-list

From: Kelly Cobean (kcobean@xxxxxxxxxxxxx)
Date: Thu Jul 11 2002 - 18:44:31 GMT-3


   
On the contrary, Andy!!!

You can block odd numbered addresses in this IP network with the following
access-list

access-list 1 deny 192.168.1.1 0.0.0.254
access-list 1 permit 192.168.1.0 0.0.0.255

The first line says "deny any address 192.168.1.x whose 32nd bit is a "1".
This nails all the odds, and lets the evens continue to the next statement
in the access-list.
The second line goes on to handle (permit) the rest of the subnet (which
would be the even numbers), or you could use acess-list 1 permit any

HTH,

Kelly Cobean, CCNP, CCSA, ACSA, MCSE, MCP+I
Network Engineer
AT&T Government Solutions, Inc.

Disclaimer:
The opinions expressed herein are those of the author alone, and do not
necessarily relfect those of AT&T Government Solutions, Inc., it's
management, or it's affiliates.

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of
Andy McLaughlin
Sent: Thursday, July 11, 2002 4:57 PM
To: ccielab@groupstudy.com
Subject: Re: access-list

I don't think that you can block just odd addresses from a C class without
explicitly denying each address that you do not want. If you block the
whole thing then no one can get through. You can not use a different mask
because that will still block even numbered addresses and let through odd
numbered ones.

I think that you will need to explicitly define each address that you do not
want or change your addressing scheme.

Andy

----- Original Message -----
From: <Hemant_Kumar@BERLEX.COM>
To: <ccielab@groupstudy.com>
Sent: Thursday, July 11, 2002 3:12 PM
Subject: access-list

> Hi all,
>
> This might a small problem but i am not able to figure it out.
>
> I have classs C address eg 192.168.1.0
>
> I would like to block all the workstation with odd numbers as their ip
> address? What is simplest way to achive this using access list.
>
> thanks
> Hemant



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