03-30-2022
09:51 PM
- last edited on
04-04-2022
06:48 PM
by
Translator
Hi i still wondering what happen in my cisco router,
my command automatically deleted by router, i'm not doing anything not even reload the router.
Please help.
the command is
ip nat source ip addr1 ip addr2 extendable.
Thank you
Solved! Go to Solution.
04-01-2022
01:16 AM
- last edited on
04-04-2022
07:00 PM
by
Translator
Hello
It could be your rtr doesn't really support NVI nat even though the commands are available.
If you want to hairpin then you can still do this with classic nat (inside/outside domains) its a bit more complex to setup but it does work.
Example
int loopback 10
ip address 169.1.255.254 255 255.255.255
ip nat inside
route-map Hairpin
set interface loopback10
ip access-list extended PAT
deny ip 10.0.0 0 0.15.255.255 10.0.0.0 0.15.255.255
permit ip 10.10.9.0 0.0.0.255 any
permit ip 10.20.0.0 0.0.255.255 any
ip access-list extended hairping
permit ip 10.10.9.0 0.0.0.255 host 10.10.9.109
permit ip 10.20.0.0 0.0.255.255 host 10.10.9.109
ip nat inside source list PAT GigabitEthernet0
ip nat inside source list hairping GigabitEthernet0
ip nat inside source static 10.10.9.109 139.255.48.152
interface GigabitEthernet0/0
description WAN
ip nat outside
interface GigabitEthernet0/1
description LAN
ip nat outside
ip policy route-map Hairpin
no ip redirects
04-01-2022 04:46 AM - edited 04-01-2022 04:50 AM
there are bug make NAT disappear like below one,
what is your IOS Ver.?
https://quickview.cloudapps.cisco.com/quickview/bug/CSCsi30964
03-30-2022
10:02 PM
- last edited on
04-04-2022
06:49 PM
by
Translator
Post the complete output to the following commands:
1. sh version
2. dir
03-30-2022 10:27 PM
Thank you for your reply Mr Leo,
because i am accessing the router by remote, sorry if the config is shown by picture.
Dir
Show Version
03-30-2022 10:29 PM
The router has an uptime of 1 week so this means it did not crash.
03-30-2022
10:31 PM
- last edited on
04-04-2022
06:50 PM
by
Translator
yes, but the command
ip nat source static 10.10.12.189 139.255.48.198 extendable
got deleted automatically, i don't know why.
it cause network error after it missing.
03-30-2022 11:57 PM
Update the firmware of the router.
03-31-2022 03:24 AM - edited 03-31-2022 03:18 PM
...
03-31-2022
03:14 PM
- last edited on
04-04-2022
06:51 PM
by
Translator
Hello
Does you router even support domainless nat
Have you tried domain nat instead?
ip nat inside source static x.x.x.x x.x.x.x
03-31-2022 06:39 PM
Hello Paul, thanks for replying.
How to check it? my router version is 15.4(3).M3
03-31-2022
03:22 PM
- last edited on
04-04-2022
06:52 PM
by
Translator
ip nat inside source static
ip nat source static
what is the different??
1-first one is apply to physical interface,
you config
ip nat inside source static
then
ip nat inside
ip nat outside
2-seocnd is apply to virtual interface,
so in global mode
config the
ip nat source static
that it no need more.
I think you config
ip nat source static
then you config
ip nat inside
ip nat outside
and that make NAT disappear.
please check this point
03-31-2022
06:54 PM
- last edited on
04-04-2022
06:55 PM
by
Translator
my config before is using
ip nat inside source..
however, i need my server to be able access server public ip (i map it to virtual IP) internally.
following this tips:
https://community.cisco.com/t5/routing/how-to-do-nat-reflection-nat-hairpin-on-a-cisco-1800-router/td-p/2754725
it all worked as i need but the command
ip nat source ...
its like got deleted automatically around 3-4 hours after i write the command.
already set
no ip nat inside for int g0/0 and no ip nat outside for int g0/1
03-31-2022
06:56 PM
- last edited on
04-04-2022
06:56 PM
by
Translator
interface GigabitEthernet0/0
no ip nat outside
no ip redirects
ip nat enable
!
interface GigabitEthernet0/1
no ip nat inside
no ip redirects
ip nat enable
!
ip access-list extended NAT
permit ip 10.10.9.0 0.0.0.255 any
permit ip 10.20.0.0 0.0.255.255 any
!
ip nat source static 10.10.9.109 139.255.48.152 extendable
ip nat source list NAT interface GigabitEthernet0 overload
!
end
04-01-2022 04:46 AM - edited 04-01-2022 04:50 AM
there are bug make NAT disappear like below one,
what is your IOS Ver.?
https://quickview.cloudapps.cisco.com/quickview/bug/CSCsi30964
04-01-2022
01:16 AM
- last edited on
04-04-2022
07:00 PM
by
Translator
Hello
It could be your rtr doesn't really support NVI nat even though the commands are available.
If you want to hairpin then you can still do this with classic nat (inside/outside domains) its a bit more complex to setup but it does work.
Example
int loopback 10
ip address 169.1.255.254 255 255.255.255
ip nat inside
route-map Hairpin
set interface loopback10
ip access-list extended PAT
deny ip 10.0.0 0 0.15.255.255 10.0.0.0 0.15.255.255
permit ip 10.10.9.0 0.0.0.255 any
permit ip 10.20.0.0 0.0.255.255 any
ip access-list extended hairping
permit ip 10.10.9.0 0.0.0.255 host 10.10.9.109
permit ip 10.20.0.0 0.0.255.255 host 10.10.9.109
ip nat inside source list PAT GigabitEthernet0
ip nat inside source list hairping GigabitEthernet0
ip nat inside source static 10.10.9.109 139.255.48.152
interface GigabitEthernet0/0
description WAN
ip nat outside
interface GigabitEthernet0/1
description LAN
ip nat outside
ip policy route-map Hairpin
no ip redirects
04-01-2022 02:13 AM - edited 04-01-2022 02:25 AM
Hi Paul, thank you so much for your help.
i am trying to apply your example. its same as NVI let me check it. hope it works more stable
thank you Paul.
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