IMD SolutionComputing LibraryShop main store

Explainer

Why the eWON EthGW setting is not the LAN gateway

Remote access and virtualization Published 4 min read By IMD Solution engineering team

Short answer

EthGW on an eWON Cosy 131 is the WAN gateway address and is ignored when the WAN port uses DHCP; the eWON LAN address, 172.27.5.10 in this case, is the gateway for its LAN devices. A device at 192.168.1.50 in VLAN 11 therefore needs routes in both directions, not a changed EthGW value.

On this page
  1. What EthGW actually configures
  2. What the switch addresses prove and what they do not
  3. The decision: route both ways or translate
  4. Verify each boundary in order
  5. Questions asked

When an eWON Cosy 131 reaches the switch management addresses over a remote connection but misses end devices behind NAT or a routed VLAN, the usual misreading is the EthGW setting: it is the eWON's WAN gateway, not its LAN gateway. Changing it to the routing switch, 172.27.5.1 in this case, does nothing for LAN reachability, and the remaining device at 192.168.1.50 in VLAN 11 needs a two-way routed path instead. Which devices a VPN tunnel can reach on the machine LAN is covered in which PLCs and HMIs a VPN tunnel reaches on the machine LAN; this article explains the specific EthGW misreading.

What EthGW actually configures #

The eWON Cosy 131 is itself the router on its LAN side. By default the WAN role belongs to port 4 and the other ports form the LAN, per the vendor's documented default port attribution. Every LAN device on the eWON's own subnet must use the eWON LAN address, here 172.27.5.10, as its default gateway; there is no setting that hands that role to another router.

EthGW names the next hop on the WAN side, so it belongs to the WAN network, described in the reported case as a 192.168.x.x network. When the WAN interface obtains its configuration through DHCP, the setting is ignored altogether. A setup wizard result described as assigning 192.168.2.1 to the LAN-side gateway conflicts with that documented role; recheck the actual interface fields rather than trusting the description.

What the switch addresses prove and what they do not #

The confirmed topology in this case:

Component Address Confirmed role
eWON LAN interface 172.27.5.10 Gateway for directly attached LAN devices
Routing Stratix 5400 172.27.5.1 Routing switch hosting VLAN 11
Layer 2 Stratix 5400 switches 172.27.5.13, .14, .15, .17 Layer 2 switching with NAT
VLAN 11 interface 192.168.1.1 Gateway for the device network
Unreachable device 192.168.1.50 In VLAN 11

Reaching the four switch management addresses proves one thing only: the tunnel reaches the 172.27.5.x subnet. It proves neither that their NAT rules cover every attached device nor that VLAN 11 has a return path. The same limit applies whenever one router fronts several machine LANs, as covered in what one VPN router can reach across several machine LANs.

The decision: route both ways or translate #

The device is not on the eWON's subnet, so one of two things must exist:

  • A translation that exposes it on the eWON LAN network, on equipment that supports NAT in that role. The customer reports NAT cannot be created on the routing switch in its current role, so this option is off the table here.
  • Routing in both directions. This is the configuration to build.

Leave EthGW in its WAN role; do not point it at 172.27.5.1 as a LAN-routing workaround. Then:

  1. Add a route on the eCatcher PC for the device network, 192.168.1.0/24, so its traffic enters the eWON tunnel.
  2. Add the matching entry in the eWON's static route table for 192.168.1.0/24 with next hop 172.27.5.1. The vendor's documented procedure for reaching several machine LANs behind one gateway uses exactly this static route table in the eWON configuration.
  3. Ensure VLAN 11 returns remote-access traffic toward 172.27.5.10. The device's gateway is 192.168.1.1, so the routing switch must route the tunnel's source range back to the eWON; if it forwards that traffic elsewhere, the request arrives and the answer never returns.

A worked example of the full path: the eCatcher PC sends to 192.168.1.50, its local route hands the packet to the tunnel, the eWON consults its static table (192.168.1.0/24 via 172.27.5.1), the routing switch moves it into VLAN 11, and the reply from 192.168.1.50 goes to its gateway 192.168.1.1, which must route it back to 172.27.5.10 rather than to the site's internet router.

Verify each boundary in order #

Test in increasing path length and stop at the first failure: the eWON LAN address, then 172.27.5.1, then the VLAN interface 192.168.1.1, then 192.168.1.50. The first failed boundary tells you where to inspect routing, translation or filtering. After adding the routes, confirm the PC route, the eWON static entry and the VLAN 11 return route, then test the target by its IP address; discovery software often relies on traffic that does not cross routed boundaries, so direct IP reachability is the decisive test.

If two-way routing genuinely cannot be provided, the fallback is NAT 1:1 on equipment that supports translation in that role; on an eWON Flexy that option lives under Routing in the networking setup, enabled by checkbox, per the vendor's NAT 1:1 setup note. Routed remote access through a Cosy to a PLC is the same principle in a working case, described in the knowledge-base note on routed remote access to a PLC through a Cosy.

Questions asked

Is EthGW the eWON Cosy 131 LAN gateway?

No. EthGW is the WAN gateway address and is ignored when the WAN interface gets its configuration from DHCP. No setting turns another router into the eWON's LAN gateway; LAN devices use the eWON LAN address as their default gateway.

Why does eCatcher show the Stratix switches but not the end devices?

The four switch management addresses sit on the eWON's own subnet, so the tunnel reaches them directly. End devices behind NAT or in VLAN 11 need a translation rule or a forward and return route, which those switch addresses say nothing about.

Can the discovery tool find the VLAN 11 device once routing works?

Not reliably. Discovery traffic often stays on the local broadcast domain and does not cross routed or translated boundaries, so test the device by its IP address after the routes are in place.

Which Ethernet port of the Cosy 131 is the WAN port?

By default the WAN port is port 4 and the remaining ports form the LAN side, per the vendor's default port attribution. Keep the routing switch on the LAN ports so LAN devices can use the eWON as their gateway.

Keep reading

  • Explainer

    How a VPN gateway on a controller routes you to the machine LAN

    A VPN client on the machine-side gateway becomes a router to the machine LAN only when IP forwarding is enabled on both the tunnel and LAN interfaces, the server advertises the machine subnet and binds it to that client with iroute, and replies find a way back through the device gateway or an SNAT rule on the gateway. A worked packet example shows both directions.

    Remote access and virtualization

  • Troubleshooting

    Reaching an MPI PLC through a gateway from the WAN

    An MPI PLC behind an Ewon Flexy keeps no IP of its own: your S7 client targets the gateway interface the path reaches. From the WAN, use the Flexy WAN IP after enabling WAN-to-LAN traffic (reboot required) or a proxy rule with WAN as Proxy External Interface; over the VPN tunnel, use the LAN IP. Clients that omit the MPI node reach one PLC at a time via Destination Node.

    Remote access and virtualization

  • Troubleshooting

    Troubleshooting a PLC agent that will not go online remotely

    A green remote session proves only that you reached the gateway. Prove the programming connection locally first, then the agent's target address and subnet, then the agent type and protocol, then the client — one boundary at a time. Most of these faults are a mistyped target address or an agent type that carries the wrong protocol.

    Remote access and virtualization