The PC can ping 172.16.132.171, but STEP 7 cannot go online with the IM151-8 PN/DP CPU at 192.168.30.2. That result proves only that the PC can reach the router address. Routed PG/PC access also requires a route toward the CPU, a valid return path from the CPU, the correct PC network adapter, and permitted TCP port 102 traffic in both directions.
Addressing and route definition
The term default gateway here means the router address that the CPU uses for destinations outside its own IP subnet. A gateway must be reachable directly from the CPU interface under the configured subnet mask.
The CPU address and proposed gateway are in different address ranges: 192.168.30.2 and 172.16.132.171. Whether they share a subnet depends on the CPU subnet mask, which must be read from the CPU hardware configuration. With ordinary segmented addressing, they will not share a subnet, and 172.16.132.171 cannot serve directly as the CPU gateway. The router needs an interface address inside the CPU subnet, while another router interface may use 172.16.132.171 on the PC-facing network.
| Item | Known value | Required decision |
|---|---|---|
| CPU | 192.168.30.2 |
Read its subnet mask and gateway setting. |
| Reachable router address | 172.16.132.171 |
Identify which router interface owns it. |
| PC | Not specified | Read its address, mask, and active route to the CPU. |
| CPU-side router interface | Not specified | Obtain the address that shares the CPU subnet. |
Check 1: Compare the CPU address, CPU mask, and CPU gateway bit-for-bit. Expect the gateway to fall inside the CPU's local subnet. Do not proceed with 172.16.132.171 as the CPU gateway unless that comparison proves it is local.
PG/PC network-adapter selection
The PG/PC interface selection chooses the PC network adapter used by STEP 7. It does not create router routes or replace the Windows IP configuration. Entering a router address in an IE-PG access setting is therefore not the primary fix for a missing Layer 3 path.
The selected setting is PC Network card (Auto). Automatic selection can bind engineering traffic to the wrong interface when the PC has Ethernet, wireless, VPN, or virtual adapters. Use the physical adapter whose IP configuration reaches 172.16.132.171. Disable or deprioritize competing paths during diagnosis if adapter selection remains ambiguous.
- Open the PG/PC interface settings in STEP 7.
- Select the specific network adapter connected to the routed automation network.
- Confirm that the adapter is active and has the intended PC IP address and subnet mask.
- Inspect the PC routing table and find the route that matches destination
192.168.30.2. Its next hop must lead toward the router.
Check 2: Expect both the operating system and STEP 7 to use the same physical adapter. The matching route for 192.168.30.2 must not point to a VPN, wireless interface, or disconnected adapter.
CPU gateway configuration
When the PC is outside the CPU subnet, the CPU sends replies through its configured gateway. A correct forward route does not compensate for a missing return route: the connection fails if TCP requests arrive at the CPU but replies cannot return to the PC.
- Read the CPU IP address and subnet mask from the STEP 7 hardware configuration.
- Obtain the address of the router interface physically connected to the CPU subnet.
- Configure that CPU-side address as the CPU router or gateway value.
- Compile the changed hardware configuration.
- Transfer the configuration using an access path that already works. If routed access is not yet functional, connect the engineering PC locally to the CPU subnet for this transfer.
A gateway change can interrupt the current engineering session. Record the original address settings and use approved change controls before modifying a running installation.
Check 3: After the configuration is active, expect the CPU address to remain 192.168.30.2 and its gateway to be a directly reachable router interface in the CPU subnet.
Router and firewall path
The router must know both directions of the conversation. One route sends PC traffic toward 192.168.30.2; a connected network or explicit route sends CPU replies back toward the PC subnet. Network address translation is not a substitute for a documented automation route and can complicate endpoint selection and diagnostics.
TCP port 102 is reported as enabled in the router and firewall. That is necessary for this engineering connection, but an open rule alone does not prove that the rule applies to the correct source address, destination address, interface, and direction.
| Observed result | What it proves | What remains unproven |
|---|---|---|
Ping to 172.16.132.171 succeeds |
The PC reaches that router interface by ICMP. | A route to the CPU and a CPU return path. |
Ping to 192.168.30.2 succeeds |
Bidirectional IP and ICMP connectivity exists. | Permission and service availability on TCP 102. |
TCP 102 connects |
The routed transport path reaches the target port. | Correct STEP 7 target selection and an online session. |
- Trace the router decision for destination
192.168.30.2. - Verify the reverse route for the PC's actual source subnet.
- Match firewall rules against that source, destination
192.168.30.2, and TCP port102. - Review firewall counters or logs while attempting the connection; expect the permitted rule to register traffic without a corresponding deny.
Check 4: Expect a bidirectional TCP connection between the PC address and 192.168.30.2 on port 102. A timeout points to routing, filtering, or target availability; immediate transport success moves diagnosis to STEP 7 configuration.
STEP 7 target connection
IP routing and Siemens station routing are different mechanisms. A direct TCP/IP connection to the CPU address uses the IP routers between the PC and CPU. NetPro station routing is relevant when an intermediate configured automation station forwards engineering traffic between networks; it does not repair an invalid IP gateway or a missing router route.
- Keep the target CPU address set to
192.168.30.2; do not substitute172.16.132.171as though the router were the CPU. - Bind the PG/PC interface to the verified physical network adapter.
- Start the online operation against the configured IM151-8 PN/DP CPU.
- If the connection still fails after TCP
102reaches the CPU, compare the offline station configuration with the actual CPU and inspect STEP 7 diagnostics for the failing stage.
The DP portion of the CPU designation does not create an Ethernet route. The required path for this case is from the PC adapter, through the IP router, to the CPU's PN interface.
Check 5: Expect STEP 7 to identify the IM151-8 PN/DP CPU at 192.168.30.2 and open its online view without changing the target to the router address.
End-to-end commissioning verification
-
Address check: Expect the CPU address and mask to place
192.168.30.2in the intended CPU subnet. - Gateway check: Expect the CPU gateway to be the router's CPU-side interface and to share that subnet.
-
PC route check: Expect the route matching
192.168.30.2to leave through the selected physical adapter. -
IP check: Test reachability to
192.168.30.2, not only172.16.132.171. Expect a response when ICMP is permitted. -
Transport check: Test TCP port
102at192.168.30.2. Expect the connection to open through the intended firewall rule. -
Engineering check: Go online, read CPU diagnostics, disconnect, and reconnect. Expect both online sessions to target
192.168.30.2through the same adapter.
FAQ
What happens if the CPU has no gateway configured?
The CPU can communicate inside its own subnet but cannot return traffic to an off-subnet PG/PC. Configure the router's CPU-side interface as the CPU gateway.
What happens if 172.16.132.171 is outside the CPU subnet?
The CPU cannot reach that address directly as a gateway. Obtain the router interface address that shares the subnet defined by 192.168.30.2 and the CPU mask.
What happens if TCP port 102 is open but STEP 7 still fails?
Verify that the rule covers the PC's actual source address, destination 192.168.30.2, both traffic directions, and the selected adapter. Then compare the STEP 7 target with the actual CPU configuration.
What happens if PC Network card (Auto) selects the wrong adapter?
STEP 7 sends engineering traffic through an unrelated route, often a VPN, wireless, or virtual interface. Select the physical adapter that owns the verified route to 192.168.30.2.
How do I verify routed IM151-8 PN/DP access?
Confirm the CPU-side gateway, verify the PC route, reach 192.168.30.2 on TCP 102, and open the CPU online in STEP 7. Disconnect and reconnect once as the final verification step.