12-06-2006 05:16 AM - edited 03-05-2019 01:12 PM
Hi all
I have a strange NAT situation
My router fastethernet IP is 172.16.24.1/22
I want to PAT 172.16.25.0, 26.0 & 27.0 to 172.16.24.2
Can this be done as the netmask length overlaps
Narayan
Solved! Go to Solution.
12-06-2006 06:06 AM
Apologies. I've tested the config with 22 & /24 and there is no issue, the router will accept either. This is with an up/up interface configured with a /22 as in your case.
(see below extract from CCO).
netmask - Network mask that indicates which address bits belong to the network and subnetwork fields and which bits belong to the host field. Specify the netmask of the network to which the pool addresses belong.
12-06-2006 05:24 AM
Hi
Is that ip configured on any of the interfaces of your router ?
regds
12-06-2006 05:37 AM
it is not configured on any of the interfaces but since i would be doing this on a production router just wanted to make sure
Narayan
12-06-2006 05:33 AM
yes it can be done.
ip nat pool TEST 172.16.24.2 172.16.24.2 netmask 255.255.255.0
ip nat inside source list 10 pool TEST overload
access-list 10 permit 172.16.25.0 0.0.0.255
access-list 10 permit 172.16.26.0 0.0.0.255
access-list 10 permit 172.16.27.0 0.0.0.255
12-06-2006 05:39 AM
Mark
thanks for the reply, but i know the configurations
what i wanted to know was since the netmask would be a /22 subnet and the pool falls within this range, whether the router accepts it.
Narayan
12-06-2006 06:06 AM
Apologies. I've tested the config with 22 & /24 and there is no issue, the router will accept either. This is with an up/up interface configured with a /22 as in your case.
(see below extract from CCO).
netmask - Network mask that indicates which address bits belong to the network and subnetwork fields and which bits belong to the host field. Specify the netmask of the network to which the pool addresses belong.
12-06-2006 06:08 AM
Thanks Mark.
Let me configure the same on my router.
Will revert back once done
12-06-2006 09:50 PM
I used the /24 netmask and it worked
Thanks everyone
Narayan
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: