Are these two "ip nat" statements equivalent

Answered Question
Dec 1st, 2008

I manage a bunch of routers... on some, the outside-to-inside port address translation statements are set up like this:


ip nat inside source static tcp 192.168.10.69 25 24.56.67.89 25 extendable

(24.56.67.89 is my outside public IP assigned to FastE4)


while other routers are set up like this:


ip nat inside source static tcp 192.168.10.69 25 interface FastEthernet4 25


Both ways work fine, although I prefer the latter way in case FastEthernet4's IP address changes. Are there any real significant difference or are they really just the same?


Correct Answer by satish_zanjurne about 8 years 3 months ago

Yes !!


1.You are right , it is used in case IP Address of NAT interface change , you don't have to change that address in NAT statement


2.Other important thing is , in case you are using DHCP to acquire IP address for Fastethernet interface ( i.e you are making your router as DHCP client) , then also your later method comes handy , as again you don't have to worry about the IP address , DHCP server will allocate "interface" keyword will take care of everything.


HTH...rate if helpful..

Correct Answer by Jon Marshall about 8 years 3 months ago

Thomas


Not aware of any significant difference. They achieve the same thing.


Jon

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Correct Answer
Jon Marshall Mon, 12/01/2008 - 11:18

Thomas


Not aware of any significant difference. They achieve the same thing.


Jon

Correct Answer
satish_zanjurne Mon, 12/01/2008 - 11:27

Yes !!


1.You are right , it is used in case IP Address of NAT interface change , you don't have to change that address in NAT statement


2.Other important thing is , in case you are using DHCP to acquire IP address for Fastethernet interface ( i.e you are making your router as DHCP client) , then also your later method comes handy , as again you don't have to worry about the IP address , DHCP server will allocate "interface" keyword will take care of everything.


HTH...rate if helpful..

Actions

This Discussion