0

NSX-T in Practice: NAT

In this blog post, we are going configure NAT to access one of internal VMs. Let’s start.

The Setup 

Create a New Segment

Navigate to Switching > Switches > Add

Create a Tier 1 Router

Navigate to Routing > Router > Add Tier 1 Router

Configure the Route Advertisement to allow NAT Routes

Add a port to the Tier 1 Router

Navigate to Routing > Router > T-NAT-Tier1 > Configuration > Router Ports > Add 

Add SNAT Rule

Navigate to Routing > Router > T-NAT-Tier1 > Services NAT >  ADD

The source NAT IP  172.16.50.101 will be translated to IP  80.80.80.1. Click Save.

Add DNAT Rule

Navigate to Routing > Router > T-NAT-Tier1 > Services NAT > ADD

The destination NAT IP 80.80.80.1  will be translated to IP  172.16.50.101 Click Save

NAT Rules below

Configure Route Redistribution in the Tier 0 Router

Navigate to Routing > Router > Logical -Router-Tier0  > Routing > Route redistribution > Edit 

Click Save.

Testing

Ensure that the VM we are tesing with is connected to the correct segment and that it’s TCP/IP stack is configured with the right IP.

Let’s try a ping test. The VM is responding! 

I hope this post was helpful. Thank you for reading.

How useful was this post?

Click on a star to rate it!

Average rating / 5. Vote count:

Sharing is caring!

Leave a Reply

Your email address will not be published. Required fields are marked *