We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

wildcard mask help on cisco router

iamuser
iamuser asked
on
Medium Priority
858 Views
Last Modified: 2008-01-09
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
Comment
Watch Question

Commented:

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.

Author

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

Commented:
yep - my bad

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

Author

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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

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
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.