If you mean block all even or odd numbers, then yes it can be done. If you
mean prime numbers, then it cannot be done in a short/simple access-list.
Why? ..Because there isn't a short/simple binary bit pattern that
encompasses the prime numbers. I.e.
1 0001
2 0010
3 0011
5 0101
7 0111
11 1011
13 1101
>From a bit-pattern view, It seems random, and not short/simple
access-listable.
Compare to even numbers
0 0000
2 0010
4 0100
6 0110
8 1000
10 1010
(Hint: the Rightmost digit is always a 0)
HTH,
Ejay
-----Original Message-----
From: Alejandro Pelaez [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 2:58 AM
To: [EMAIL PROTECTED]
Subject: access list w/ prime numers [7:14117]
Hola All!
I want to set up an access list that do the following:
deny all packets from subnet 192.168.1.0 with last octect a prime numer.
Alejandro
Message Posted at:
http://www.groupstudy.com/form/read.php?f=7&i=14230&t=14117
--------------------------------------------------
FAQ, list archives, and subscription info: http://www.groupstudy.com/list/cisco.html
Report misconduct and Nondisclosure violations to [EMAIL PROTECTED]