05-15-2018 01:19 AM - edited 03-05-2019 10:27 AM
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
Solved! Go to Solution.
05-15-2018 02:19 AM - edited 05-15-2018 02:19 AM
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
05-15-2018 02:19 AM - edited 05-15-2018 02:19 AM
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
05-16-2018 12:22 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide