cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1721
Views
5
Helpful
2
Replies

back to basics...ip nat outside add-route

Leo Gal
Level 1
Level 1

Hi guys, 

sorry to disturb with this basic stuff, but Im short of time and need a bit of a push and

struggle to get it up.

situation:

R1 192.168.0.1----192.168.0.4 e0/1 R4 e0/0 30.0.0.4 ---- 30.0.0.5 R5

and want to run bidirectional NAT so that

30.0.0.5 is seen as 192.168.0.50 on segment between R1-R4 and

192.168.0.1 is seen as 30.0.0.50 on segment R4-R5.

I configured:

ip nat inside source static 192.168.0.1 30.0.0.50
ip nat outside source static 30.0.0.5 192.168.0.50 add-route

(which is just a variant of this  

ip route 192.168.0.50 255.255.255.255 Ethernet0/0 30.0.0.5)

to route the traffic going from 192.168.0.1 -> 192.168.0.50 to outside intf

so NAT catches it and does what it is supposed to, but due to

Local route neither of those works.

 

192.168.0.0/24 is variably subnetted, 3 subnets, 2 masks
C 192.168.0.0/24 is directly connected, Ethernet0/1
L 192.168.0.4/32 is directly connected, Ethernet0/1
L 192.168.0.50/32 is directly connected, Ethernet0/1

 

Im sure it is solved somewhere, but I was not able to find the link so far.

Please any hint, or show the direction, or paste the link where it is solved, appreciated in advance.

Thanks much.

LG

 

1 Accepted Solution

Accepted Solutions

Hello

no ip nat inside source static 192.168.0.1 30.0.0.50
no ip nat outside source static 30.0.0.5 192.168.0.50 add-route

no ip route 192.168.0.50 255.255.255.255 Ethernet0/0 30.0.0.5

 

int x/x
description outside interface
no ip nat outside
ip nat enable

int x/x
description inside interface
no ip nat inside
ip nat enable

 

ip nat source static 192.168.0.1 30.0.0.50

ip nat  source static 30.0.0.5 192.168.0.50

 

res

Paul


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

View solution in original post

2 Replies 2

Hello

no ip nat inside source static 192.168.0.1 30.0.0.50
no ip nat outside source static 30.0.0.5 192.168.0.50 add-route

no ip route 192.168.0.50 255.255.255.255 Ethernet0/0 30.0.0.5

 

int x/x
description outside interface
no ip nat outside
ip nat enable

int x/x
description inside interface
no ip nat inside
ip nat enable

 

ip nat source static 192.168.0.1 30.0.0.50

ip nat  source static 30.0.0.5 192.168.0.50

 

res

Paul


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Hi Paul, 

 

Thank you for the solution.

How about the old syntax, on newer codes it already doesn't work?

Should I count on complete transition to nvi with my NATs whatsoever?

Thanks for opinion.

regards

Leo

 

 

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