How to Configure Moxa AWK-1137C with N-1 NAT

How to Configure Moxa AWK-1137C with N-1 NAT

Overview

The AWK-1137C can accommodate NAT which is used when a corporate network needs to communicate with a private network. In most cases, the private network cannot be changed so NAT is a perfect solution. Some common scenarios include cell-controlled CNC machines with more than one CNC machine or individual CNC machines with their own private networks for tool changers and/or robots. 

N-1 NAT

N-1 NAT is used when you want to use port forwarding. All WAN traffic goes through one IP address and is forwarded to the private network via a port forwarding table. 

Example Scenarios

  1. One Fanuc CNC with FOCAS and FTP
    1. Fanuc CNC has an IP of 192.168.1.2 and using TCP port 8193 for FOCAS and 21 for FTP
    2. Fanuc CNC CD38A will be plugged LAN1 on the AWK-1137C
    3. The AWK-1137C will be configured with N-1 NAT
      1. Port forwarding rule 1 will be protocol TCP, WAN port 8193, LAN IP 192.168.1.2, and LAN port 8193
      2. Port forwarding rule 2 will be protocol TCP, WAN port 21, LAN IP 192.168.1.2, and LAN port 21
  2. Two Fanuc CNCs with FOCAS
    1. Fanuc CNC 1 has an IP of 192.168.1.2 and using TCP port 8193 for FOCAS
    2. Fanuc CNC 2 has an IP of 192.168.1.3 and using TCP port 8193 for FOCAS
    3. Fanuc CNC 1 CD38A will be plugged LAN1 and Fanuc CNC 2 CD38A will be plugged LAN2 on the AWK-1137C
    4. The AWK-1137C will be configured with N-1 NAT
      1. Port forwarding rule 1 will be protocol TCP, WAN port 5001, LAN IP 192.168.1.2, and LAN port 8193
      2. Port forwarding rule 2 will be protocol TCP, WAN port 5002, LAN IP 192.168.1.3, and LAN port 8193
  3. Three Fanuc CNCs with FOCAS
    1. Fanuc CNC 1 has an IP of 192.168.1.2 and using TCP port 8193 for FOCAS
    2. Fanuc CNC 2 has an IP of 192.168.1.3 and using TCP port 8193 for FOCAS
    3. Fanuc CNC 3 has an IP of 192.168.1.4 and using TCP port 8193 for FOCAS
    4. A switch is now needed, plug the switch into LAN1
    5. Each Fanuc CNC CD38A will be plugged a port on the switch
    6. The AWK-1137C will be configured with N-1 NAT
      1. Port forwarding rule 1 will be protocol TCP, WAN port 5001, LAN IP 192.168.1.2, and LAN port 8193
      2. Port forwarding rule 2 will be protocol TCP, WAN port 5002, LAN IP 192.168.1.3, and LAN port 8193
      3. Port forwarding rule 3 will be protocol TCP, WAN port 5003, LAN IP 192.168.1.4, and LAN port 8193
  4. Cell Controller with four MTConnect based machines
    1. Each CNC already has a IP address on the private network
    2. All CNCs are already connected to a switch
    3. Plug the AWK-1137C from LAN1 to the switch
    4. The AWK-1137C will be configured with N-1 NAT
      1. Port forwarding rule 1 will be protocol TCP, WAN port 5001, LAN IP 192.168.1.2, and LAN port 5000
      2. Port forwarding rule 2 will be protocol TCP, WAN port 5002, LAN IP 192.168.1.3, and LAN port 5000
      3. Port forwarding rule 3 will be protocol TCP, WAN port 5003, LAN IP 192.168.1.4, and LAN port 5000
      4. Port forwarding rule 4 will be protocol TCP, WAN port 5003, LAN IP 192.168.1.5, and LAN port 5000

Terminology

  1. WLAN IP - The IP address of the Moxa AWK-1137C, this connects to your Wi-Fi network
  2. WAN IP - An IP address on the same subnet of your Wi-Fi network dedicated to one device on the private network
  3. LAN IP - The IP address of one device, i.e. CNC machine, on the private network, this is likely already set
  4. WAN Port - The TCP/UDP port number used to connect from the WAN side of the network
  5. LAN Port - The TCP/UDP port number used to connect from the LAN side of the network

Requirements

  1. WLAN IP address of programmed Moxa AWK-1137C
  2. LAN IP address for each device on private network

Preparation

  1. If not already complete, program the Moxa AWK-1137C (Instructions)

Connect to Moxa AWK-1137C

  1. From a web browser, go to https://[moxa_ip_address]
    1. e.g. https://10.100.1.150/
  2. Default Username is "admin"
  3. Default Password is "moxa"
  4. Click Login

Configure NAT

  1. Go to Advanced Setup > NAT/Port Forwarding
  2. Set NAT mode to "N-1 NAT"
  3. Set Port forwarding to "Enable"
  4. Check No. 1 to make Active
  5. Select a Protocol (TCP is most common)
  6. Enter WAN port
    1. e.g. 8193
  7. Enter LAN IP
    1. e.g. 192.168.100.10
  8. Enter LAN port
    1. e.g. 8193
  9. Repeat steps 3 - 7 for additional ports on the private network, up to 32 total
    1. Click Submit

    Finalize Configuration

    1. Go to Restart
    2. Click Save and Restart

    3. To confirm connectivity, ping IP address of WAN IP from computer designated to host software
    4. Using a tester of your choice, test protocol, i.e. FOCAS, by using WAN IP
    Notes
    When configuring your software, you will use the WLAN IP and not the LAN IP. In this example, the CNC machine still has an IP address of 192.168.1.2, but you will use 10.100.1.150 along with the applicable port. 
      • Related Articles

      • How to Program Moxa AWK-1137C

        Overview This article will go through the steps to program a Moxa AWK-1137C unit. Requirements PC with available Ethernet port Ethernet Cable 12-48vdc Power Supply (12vdc included) Static IP Address, Subnet Mask (Netmask), & Gateway SSID Wi-Fi ...
      • How to Install Moxa NPort Drivers

        Overview The following article will guide you through the steps to install and configure Moxa NPort drivers. Requirements Local Administrator Rights IP Address(es) of Moxa Device(s) Preparation Download NPort Windows Driver Manager based on your OS ...
      • How to Program Moxa NPort W2150A & W2250A

        Overview This article will go through the steps to program a Moxa NPort W2150A & W2250A unit. Requirements PC with available Ethernet port Ethernet Cable 12-48vdc Power Supply (12vdc included) Device Search Utility (DSU) Static IP Address, Subnet ...
      • How to Program Moxa NPort W2150A & W2250A in Wired Mode

        Overview This article will go through the steps to program a Moxa NPort W2150A & W2250A unit to be used in wired mode only. Requirements PC with available Ethernet port Ethernet Cable 12-48vdc Power Supply (12vdc included) Device Search Utility (DSU) ...
      • How to Program Moxa NPort P5150A

        Overview This article will go through the steps to program a Moxa NPort P5150A unit. Requirements PC with available Ethernet port Ethernet Cable 12-48vdc Power Supply (12vdc included) Device Search Utility (DSU) Static IP Address, Subnet Mask ...