From: Sam Munzani (sam@xxxxxxxxxxx)
Date: Sun Aug 27 2000 - 13:03:27 GMT-3
Is it like this?
access-list 101 permit 128.0.0.0 128.254.255.255
access-list 101 permit 192.0.1.0 64.0.1.255
This is with wild card bit like below.
For this statement: access-list 101 permit 128.0.0.0 128.254.255.255
01000000.11111110.11111111.11111111
1 st octat it will take 64 addresses starting from 128. That means it will
cover class B range.
snd. octat will take only odd numbers since we care about last bit being
zero.
3rd & 4th octact we do'nt care.
For deny statement,
1st.octat will select all class C addresses starting from 192.
2nd. octat we don't care because we care about class C's odd range in 3rd.
octat
4th. octat we permit only the routes with last bit matching 1. That means
all odd numbers.
> For anybody up to it..
>
> not too nasty..
>
> RTRA
> router bgp 100
> distribute-list 101 in
>
>
> create access-list 101 so that RTRA doesn't accept even numbered class B
> routes with a mask <16 bits or odd numbered class C routes with a mask >24
> bits.
>
>
>
> I hope it didn't take you as long as it did me!!
>
This archive was generated by hypermail 2.1.4 : Thu Jun 13 2002 - 08:24:30 GMT-3