static nat on dhcp interface

  • 0
  • 1
  • Question
  • Updated 2 weeks ago
  • Answered
Hi,

how do i configure a static outside nat on a dhcp interface like

'ip nat outside destination static 123.123.123.8 2222 tcp 10.10.10.10 22'

The ip 123.123.123.8 needs to be replaced with the dhcp adress.

I am using wing 5.8.6.

Thx for your help.

Best Regards
Markus



Photo of Starrag AG

Starrag AG

  • 80 Points 75 badge 2x thumb

Posted 3 weeks ago

  • 0
  • 1
Photo of Sukhdeep Singh Johar

Sukhdeep Singh Johar, Employee

  • 210 Points 100 badge 2x thumb
Markus, 

You cannot use a DHCP in this case for the outside interface.

What is your use case ? You would not use DHCP in such a requirement. 

regards,
Sukhdeep 
Photo of Starrag AG

Starrag AG

  • 80 Points 75 badge 2x thumb
Hi, my setup looks like this.



I want a to make a port-forwarding for reach services from the server (http,ssh,...) from the internet.

The IP from the Modem changes from time to time. So a static port forwarding on a fixed ip is not a solution.

Is there a way to make that, like other routers does?

Thx.

best regards
Markus



Photo of Sukhdeep Singh Johar

Sukhdeep Singh Johar, Employee

  • 210 Points 100 badge 2x thumb
Thanks Markus. Got it.
But we currently support static option only.

regards,
sukhdeep