• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 835
  • Last Modified:

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
0
iamuser
Asked:
iamuser
  • 3
  • 3
1 Solution
 
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
 
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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
 
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
 
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now