wildcard mask help on cisco router

I need to make a wildcard mask for the range of 192.168.1.32 to 192.168.1.68

How would i do the wild card mask?

Thanks
iamuserAsked:
Who is Participating?
 
minmeiCommented:
The last one is possible

wildcard mask having any bits set means it is a wild card and will match a 1 or a 0

so 0.0.0.0 means match it exactly - no wildcard bits.

0.0.0.1 means match it up to the last bit, which could be either 0 or 1

192.168.1.68 0.0.0.0 matches 192.168.1.68 only,

192.168.1.68 0.0.0.1 matches 192.168.1.68 and 192.168.1.69

0
 
minmeiCommented:

192.168.1.32 to 192.168.1.63 would be:

32 is 00100000, 63 is 00111111,

wildcard mask is 0.0.0.31, so command is 192.168.1.32 0.0.0.31

but this would only get you addresses up to 63, not 68.

mask of 0.0.0.63 would get you up to 127, but expand both directions to 1 and to 127.

.32 to .68 is not on a subnet boundary.

You could use three statements...

192.168.1.32 0.0.0.31 (192.168.1.32-63)
192.168.1.64 0.0.0.4 (192.168.1.64-67)
192.168.1.68 0.0.0.0 (192.168.1.68)

That would work.
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
iamuserAuthor Commented:
shouldn't the middle one be 0.0.0.3 instead of 4?

what about this?

0.0.0.31
0.0.0.3
0.0.0.1

0
 
minmeiCommented:
yep - my bad

But if you are correcting me, what good is asking the question? :)

0
 
iamuserAuthor Commented:
i wasn't sure and instead of blowing something up i decided to just play it safe :D

actually is the last one possible ? 192.168.1.68 0.0.0.1

I mean is it the same as 192.168.1.68 0.0.0.0

thanks
0
 
iamuserAuthor Commented:
ahhh thanks in this case then 0.0.0.0 would probably be what i'm looking for since i don't want  to mask out 69

thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.