cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
363
Views
0
Helpful
2
Replies

This should be easy for someone!

kholford
Level 1
Level 1

I have an network connected to us that is using NAT to allow a pool of addresses to access a single host on our network. The command on their router is:

ip nat pool RockCty 172.17.1.33 172.17.1.95 prefix-length 24

Is the prefix-length 24 is correct if they only want .33-.95?

Would my access list look like this?

access-list 101 permit ip host 172.17.1.0 0.0.192 host 172.25.32.217

I can't figure out the correct inverse mask.

Thanks,

Kathleen

2 Replies 2

kholford
Level 1
Level 1

Shouldn't the ip nat pool statement look like:

ip nat pool RockCty 172.17.1.33 172.17.1.95 prefix-length 26

Because the subnet mask would be 255.255.255.192?

jolmo
Level 4
Level 4

Don't care about prefix-length, it just specifies subnet bits of 172.17.x.x network.

About access-list I recommend to use: (if they use prefix-length 24)

access-list 101 permit ip 172.17.1.32 0.0.0.31 host 172.25.32.217

access-list 101 permit ip 172.17.1.64 0.0.0.31 host 172.25.32.217

This will exactly match machines .32-.95

Hope this helps you

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: