cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
301
Views
0
Helpful
1
Replies

NATing the default route address

axfalk
Level 1
Level 1

We're NATing the destination addresses, using the ip NAT outside source static command and sending the NATed packets to a specific address through the defaut route (192.168.3.2). Does anybody happen to know if we can use the native address of the default route (192.168.3.2) in the default route statement (ip 0.0.0.0 0.0.0.0 192.168.3.2) and it will get statically NATed or use the already NATed default route address?

I believe the NAT command will only work on the destination addresses that are in the packets and since the default route address will not be a destination address in a packet, it will not work on it, but am not sure.

Thanks.

1 Reply 1

Hello,

to be sure I understand the question:

You are translating let´s say the outside address 192.168.1.1/24 to 172.16.16.1/24

ip nat outside source static 192.168.1.1 172.16.16.1

In order for this to work, you would need a static route sending traffic for 172.16.16.0/24 to the next hop of the router where 192.168.1.1/24 originates (let´s say the router has IP address 10.10.10.1):

ip route 172.16.16.0 255.255.255.0 10.10.10.1

Now what is your next step, what do you want to accomplish ?

Regards,

GP

Review Cisco Networking for a $25 gift card