cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
528
Views
0
Helpful
7
Replies

NAT question

royalblues
Level 10
Level 10

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

1 Accepted Solution

Accepted Solutions

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.

View solution in original post

7 Replies 7

spremkumar
Level 9
Level 9

Hi

Is that ip configured on any of the interfaces of your router ?

regds

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

mark.edwards
Level 1
Level 1

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

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

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.

Thanks Mark.

Let me configure the same on my router.

Will revert back once done

I used the /24 netmask and it worked

Thanks everyone

Narayan

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:

Review Cisco Networking products for a $25 gift card