Two machines arrive with the same PLC address: 192.168.1.10. Each works on its own. Connect both to the factory network and the addresses collide. Changing them may mean updating PLC programs, HMI connections and the machine builder's service settings.
An industrial NAT router lets you keep the addresses inside each machine while giving the factory network a different address to use for each one. The machines still need separate networks. NAT cannot distinguish two devices using the same IP address on the same LAN.
Give each machine its own network
Consider two machines connected to a factory network on 10.20.0.0/24. Both PLCs use 192.168.1.10/24. Put a NAT router between each machine LAN and the factory network:
| Connection | Machine A | Machine B |
|---|---|---|
| PLC address inside the machine | 192.168.1.10 |
192.168.1.10 |
| Router's machine-side address | 192.168.1.1 |
192.168.1.1 |
| Router's factory-side address | 10.20.0.11 |
10.20.0.12 |
| SCADA connection for a mapped Modbus TCP service | 10.20.0.11:502 |
10.20.0.12:502 |
The SCADA computer uses two different destinations. Router A forwards its configured TCP port 502 connection to PLC A; Router B forwards its connection to PLC B. Neither PLC needs a new address.
The repeated addresses work because the two machine LANs are physically separate. Within either machine LAN, each device still needs a unique address. Simply plugging both PLCs into the same switch, or into ports belonging to the same LAN, brings the conflict back.
In this layout, the router's WAN interface faces the factory network. It does not need an internet connection for the local NAT path.
Port mapping or one-to-one NAT?
Choose the mapping around the connection you actually need. If a SCADA driver only needs one TCP service, port mapping can give it access through the router's factory-side address. A device that needs several services may be easier to address through a dedicated one-to-one mapping.
| Method | How the client connects | What to plan |
|---|---|---|
| Port mapping | A chosen address and port forward to an internal device and service. | The protocol, external and internal ports, permitted clients, and any conflict with the router's own services. |
| One-to-one NAT | A dedicated factory-side address maps to one internal device. | An available mapped address, a way for traffic to reach the router, the return path, and firewall permissions. |
For example, two servers with different addresses on one cell LAN could use these one-to-one mappings:
-
172.16.100.100on the factory side maps to192.168.105.100inside the cell. -
172.16.100.200on the factory side maps to192.168.105.200inside the cell.
Those are private factory addresses, not public internet addresses. They must be reserved in the site's address plan and delivered to the NAT router through the appropriate interface address or route. Adding a translation rule alone does not make an unused address reachable.
This second layout is different from the two-machine example: its servers already have different internal addresses. One router can serve that cell without having to distinguish duplicate addresses on a shared LAN.
Configure the path your application will use
Start with the SCADA computer, destination device and service written down. In the two-machine layout above, a computer at 10.20.0.50 might read a Modbus TCP value from each PLC on TCP port 502.
- Set the interfaces. Configure a factory-facing WAN interface with its own address on each router. Keep the machine-side LAN interface in the PLC's subnet, and check that the factory and machine subnets do not overlap.
-
Create the mapping. Forward the chosen factory-side TCP connection to
192.168.1.10:502on that router's machine LAN. Check the installed configuration for address, interface and port conflicts before applying the rule. - Set the access rule. Permit the required traffic from the SCADA computer to the mapped service. Address translation and firewall permission are separate parts of the connection.
- Check the return path. The PLC must be able to send its response back through the router. A request that reaches the PLC is only half of a working connection.
In the RobustOS 5.5.1 manual, port mapping is under Network > Firewall > NAT > Port Mapping. The fields for Router A in this example are:
| Field | Router A |
|---|---|
| Remote IP |
10.20.0.50/32 — the SCADA computer |
| Internet IP |
10.20.0.11 — Router A's factory-side address |
| Binding | The factory-facing WAN interface |
| Internet Port | 502 |
| Local IP |
192.168.1.10 — PLC A |
| Local Port | 502 |
| Protocol | TCP |
Remote Port is the client's source port. It is not where you enter the PLC service port. Leave it unrestricted unless the application requires a fixed source port; in this example, TCP 502 belongs in Internet Port and Local Port.
The form uses “Internet” for the outside address and port even when that interface connects to a private factory network. The R2111 software manual links to the RobustOS reference; match its settings to the firmware installed on your router.
What if the PLC has no default gateway?
Suppose the PLC receives a request whose source is 10.20.0.50. That address is outside its own 192.168.1.0/24 subnet. Without a suitable route or default gateway, the PLC may receive the request but have nowhere to send the reply.
If the machine configuration allows it, setting the PLC's gateway to the machine-side router address provides a return path. Where the PLC's network settings cannot be changed, source NAT can make the forwarded request appear to come from the router's local address, 192.168.1.1. The PLC replies locally, and the router translates the response back to the SCADA computer.
Apply source translation to the intended connection rather than every flow through the router. It also changes what the PLC sees: several permitted factory clients may appear under the same router address. Keep that in mind when setting access controls and reading device logs.
Test from the SCADA computer
Check one machine first. From the computer that will run SCADA, connect to the mapped destination and read the controller identity and a known status value. Confirm that the response belongs to the intended machine, then repeat the check for the other mapping.
Next, run both connections together. The clients should keep reaching the correct PLCs without changing either PLC address. Reconnect the application and check that the router retains the configuration after a planned restart.
A successful ping is useful, but it does not prove that the application works. Port mapping may forward TCP 502 without forwarding ICMP at all. Conversely, a router can answer ping while the PLC service remains unreachable. Test the actual driver and port.
If the connection fails, follow the request in order: can the SCADA computer reach the router, does the mapping point to the right device and service, does the firewall permit it, and can the PLC reply? Once those are correct, check the application protocol. Broadcast discovery and protocols that carry IP addresses inside their messages can need additional handling across NAT. PLC programming software may also need different services from the SCADA driver's data connection.
Keep local mapping and remote access separate
NAT changes addresses; it does not encrypt traffic or decide who should be allowed to operate a machine. Limit access to the clients and services the installation needs.
For off-site maintenance, provide an authenticated VPN or other approved remote-access path to the factory network, then allow the engineer to reach the required mapped service. Making the PLC port reachable directly from the public internet is not a substitute for that access design.
Where the R2111-NU fits
The R2111-NU Industrial NAT Router is a wired option for connecting machine networks to a factory Ethernet network. The supplied R2111-A-NU has five Gigabit Ethernet ports and runs RobustOS. It has no cellular modem or SIM connection.
Use the machine layout to decide how many routers you need. The two-machine example uses one router for each separate machine LAN; five Ethernet ports do not mean five automatically isolated machine networks. Check the required NAT rules, return paths and application traffic before repeating the design across a production line.
For hardware and installation details, see the R2111 datasheet and hardware manual.
View the R2111-NU configuration and what's included
Common questions
Can I keep the PLC and HMI addresses inside each machine?
Yes, provided the machine networks remain separate and the required factory-side connections are mapped correctly. Local PLC-to-HMI traffic can stay on the machine LAN. Check any HMI or engineering connection that crosses the router separately.
Will a Modbus TCP mapping also let me program the PLC?
Not necessarily. Programming and discovery can use other ports or a different protocol. Use the PLC manufacturer's requirements to plan and test the engineering connection as well as the SCADA connection.
Do I need RCMS for the local NAT connection?
No. The local connection uses the router's configured interfaces, NAT and firewall rules. RCMS is a separate remote gateway-management service; its connection and account settings do not replace the local network configuration.
About the author
Steven Lin, Technical Support Engineer at Robustel
Steven Lin is a Technical Engineer at Robustel, with extensive practical experience in industrial routers and IoT solutions. At Robustel, his primary responsibilities include product technical support, project management and delivery, and solution development.


Comments
Leave a comment