cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
448
Views
4
Helpful
6
Replies

Summarize this ?

cisconoobie
Level 2
Level 2

Is there a way to summarize this

In an access list, if I wanted to summarize

192.168.6.40 - 49

is this possible? or do I have to list them all out?

6 Replies 6

Jon Marshall
Hall of Fame
Hall of Fame

Hi

Well you could do

192.168.6.40 0.0.0.7

host 192.168.40.49

although this is dependant on how 192.168.6.0 -> 39 hsa been subnetted (if indeed it has ).

HTH

Jon

dgahm
Level 8
Level 8

Sparky,

Here is the last octet binary for your range of numbers.

00101000 40

00101001 41

00101010 42

00101011 43

00101100 44

00101101 45

00101110 46

00101111 47

00110000 48

00110001 49

Note that only the 128, 64, and 32 bit value positions do not change, and are always 001 (32). If you use a mask of 0.0.0.31 to "don't care" the changing bits, you get a range of 32-63 for your summary. So a single summarization exceeds your range.

If you move two more bits right with the must match position (00101 or 40) the remaining 3 "don't care" bits mask 0.0.0.7 give you a range of 40-47. This is closer, but you still need 48 and 49.

The 48-49 range can be matched with a 0.0.0.1 mask.

So, 2 statements are required:

192.168.6.40 0.0.0.7

192.168.6.48 0.0.0.1

Please rate helpful posts.

Dave

Hi Dave

Thanks for catching that. My mistake with the .48 address.

Deserves rating

Jon

Hi Dave

Thanks for catching that. My mistake with the .48 address.

Apologies to sparky.

Deserves rating - only it won't let me rate it. Any ideas why - does Sparky have to rate it first ?

Jon

Jon,

Fortunately perfection is not a requirement for posting on NetPro -- if it was, none of us would be here.

Strange on the rating, never had a problem with it.

Dave

Dave

Thanks for this. I stil can't rate this post which i don't understand so i have rated your multicast post in IP telephony which worked !!

Jon

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco