.. _example_interfaces_ethernet_traffic_nat_dnat: #### Dnat #### .. sidebar:: Contents .. contents:: :depth: 2 :local: These scenarios show how to configure DNAT (Destination Network Address Translation) on OSDx. .. image:: dnat.svg :width: 400 ********* Test DNAT ********* Description =========== In this scenario, DUT0 modifies the source address of outgoing packets generated at the LAN side. The address is translated to a custom one: ``10.0.0.1``. Scenario ======== .. include:: dnat/testdnat .. raw:: html
****************** Test DNAT Redirect ****************** Description =========== This scenario is similar to the previous one, but when masquerade is specified, the route uses the IP address of the outgoing interface. Therefore, masquerading should be configured if the outgoing interface uses a dynamic IP address. Scenario ======== .. include:: dnat/testdnatredirect .. raw:: html