Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

NAT Configuration - Filter on Source Address

Is it possible to configure NAT such that traffic from a particular subnet will pass through the NAT process, while traffic from other subnets will 'bypass' the NAT process?

For example, Router A is on the public address range, but to get to the private networks has Router B as its next hop. Both have an interface on the same subnet

Router B has one interface on the public network and the other on the private network.

We want to configure NAT on Router A so that traffic from its local subnet does not pass through the NAT process. But, traffic orginating from the private networks via Router B will pass through the NAT process on Router A.

We would appreciate sample configs.

Thanks in advance.

3 REPLIES
Silver

Re: NAT Configuration - Filter on Source Address

What is NAT'd and what is not is configured via ACL's, so you should be able to get the function you desire. I will send a few URLS on NAT that should help you on your way.

http://www.cisco.com/warp/customer/556/12.html

http://www.cisco.com/warp/customer/556/nat-cisco.shtml

http://www.cisco.com/warp/customer/556/9.html

Hope this helps,

Don

New Member

Re: NAT Configuration - Filter on Source Address

But, NAT only uses access-lists when it needs to create a translation entry. If a translation entry already exists that matches the traffic then the translation entry will be used; any access-list will not be consulted.

Basically, I have a PC on the inside network, which uses public addressing, and therefore does not need to be translated when passing thorough the NAT router.

The NAT router uses both static and dynamic NAT - I have several 'ip nat outside source static' mappings.

Checking the NAT table on the router while trying HTTP from the PC shows that the source address of the PC does not get translated, because it is not permitted by the ACL, but the destination address is translated due to the 'ip nat outside source static' command. I do not want the router to change the destination address for traffic from/to this PC.

Is there any way that the router could look at both the source and destination address at the inside interface, before deciding whether traffic should be NATed or not before it is sent out of the outside interface?

New Member

Re: NAT Configuration - Filter on Source Address

for your internal interface, bind a secondary ip (which should also be a public ip in the same range as the pc with the public ip)

for eg.

interface ethernet 0

ip address 10.10.10.1 255.255.255.0

ip address 172.5.5.2 255.255.0.0 secondary

however, this might affect your other natting, so please check other settings...

114
Views
0
Helpful
3
Replies
CreatePlease to create content