Viper User
Manual (001-5008-000 Rev6)
Page
65
Figure 7.7 Basic NAT Operation
In our example, Host 1 sends a packet to Host 2. The Host 2 device does not see the private
IP address of Host 1. When Host 2 sends a reply to Host 1, Host 2 uses the destination IP
address 172.31.5.1, which is translated back to the appropriate destination IP address by
the NAT enabled device. (See Figure 7.7)
NAT does a lot more than just translation of the source IP address. For the UDP and TCP
protocol, NAT will also translate the source port numbers. Special handling is also done for
more specific protocols like FTP (port 21) and Modbus (port 502).
1.1.42
NAT on Viper
The user can select which of two interfaces (Ethernet or RF) will be considered private. The
following examples illustrate how to configure the Vipers. The examples use a private
network of 192.168.205.X and a public network of 172.31.5.X.
1.1.43
Ethernet Interface Private
Figure 7.8 shows the NAT enabled for the Eth interface.
Packet (1)
Source Address 192.168.205.2
Destination Address 172.31.5.2
Packet (1)
Source Address 172.31.5.1
Destination Address 172.31.5.2
NAT Enabled Device
Packet (2)
Source Address 172.31.5.2
Destination Address 192.168.205.2
Packet (2)
Source Address 172.31.5.2
Destination Address 172.31.5.1
Host 1
192.168.205.2
Host 2
172.31.5.2
192.168.205.1
172.31.5.1
Public Network 172.31.5.0
Private Network 192.168.205.0