cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
503
Views
0
Helpful
4
Replies

access-list permit range

John Kellen
Level 1
Level 1

Hello

I am doubting how I should define my dhcp range in the nat access list

My dhcp range is 10.0.0.0 /22 (255.255.252.0)

I know the access-list permint range parameter is 10.0.0.0   0.0.0.255 when the dhcp range would be 10.0.0.0 /24

But how do I enter this range exactly for a /22 subnet?

permit 10.0.0.0   0.0.0.252 ?

or

permit 10.0.0.0   0.0.3.255

or

...?

thank you!

2 Accepted Solutions

Accepted Solutions

cadet alain
VIP Alumni
VIP Alumni

Hi,

access-list 1 permit 10.0.0.0 0.0.3.0

EDIT: i had made a typo, it was indeed 0.0.3.255 as wildcard mask( that's what happens when your hands go faster than your brain   )

Regards

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

View solution in original post

Bilal Nawaz
VIP Alumni
VIP Alumni

Hello John,

Please use this:

ip access-list 1 permit 10.0.0.0 0.0.3.255

0.0.3.255 is the wildcard mask for a /22

This sheet helped me when I was studying this: https://nsrc.org/workshops/2009/summer/presentations/day3/subnetting.pdf

Hope this helps

Please rate useful posts and remember to mark any solved questions as answered. Thank you.

Please rate useful posts & remember to mark any solved questions as answered. Thank you.

View solution in original post

4 Replies 4

cadet alain
VIP Alumni
VIP Alumni

Hi,

access-list 1 permit 10.0.0.0 0.0.3.0

EDIT: i had made a typo, it was indeed 0.0.3.255 as wildcard mask( that's what happens when your hands go faster than your brain   )

Regards

Alain

Don't forget to rate helpful posts.

Don't forget to rate helpful posts.

Thanks for the edit, now you have a correct answer click ;-)

Bilal Nawaz
VIP Alumni
VIP Alumni

Hello John,

Please use this:

ip access-list 1 permit 10.0.0.0 0.0.3.255

0.0.3.255 is the wildcard mask for a /22

This sheet helped me when I was studying this: https://nsrc.org/workshops/2009/summer/presentations/day3/subnetting.pdf

Hope this helps

Please rate useful posts and remember to mark any solved questions as answered. Thank you.

Please rate useful posts & remember to mark any solved questions as answered. Thank you.

Thanks Bilal,

I indeed came to the conclusion 0.0.0.3.0 couldn't be right

The pdf is very usefull!!

Regards

John

Review Cisco Networking for a $25 gift card