Best Practices for Configuring PCS 7 and WinCC in VMware Virtualized Environments with NAT vs Bridged Networks

Best Practices for Configuring PCS 7 and WinCC in VMware Virtualized Environments with NAT vs Bridged Networks

In virtualized SIMATIC PCS 7 and WinCC deployments on VMware Workstation or ESXi, utilizing Network Address Translation (NAT) for automation communication with physical S7-400 or CPU 410-5H controllers is officially unsupported and leads to connection failures because the S7 protocol verifies incoming source IP addresses against NetPro configurations. When using NAT, the PLC receives packets stamped with the VMware host's IP rather than the VM's internal IP. If NAT is unavoidable in development environments, the host's physical IP must be configured as the PC station's address in Step 7. For production environments, Siemens strictly requires Bridged networking with dedicated static IP addresses.

Table of Contents

Virtual Networking Modes in VMware: Bridged vs NAT

Virtualization using VMware vSphere (ESXi) and VMware Workstation is an industry-standard practice for hosting SIMATIC PCS 7 Engineering Stations, OS Servers, and OS Clients.

VMware provides multiple virtual network adapter configurations:
1. Bridged Networking (VMnet0): The virtual machine's virtual network interface card (vNIC) connects directly to the physical network switch through the host's physical adapter. The VM appears as an independent physical node on the Industrial Ethernet network, possessing its own unique MAC address and static IP address.
2. Network Address Translation (NAT) (VMnet8): The VM resides on an isolated private internal subnet managed by VMware's internal DHCP/NAT service. All outbound IP packets leaving the VM have their source IP address rewritten to match the VMware host machine's physical IP address.
3. Host-Only (VMnet1): Completely isolated from the physical network; used exclusively for inter-VM communication.

Failure Mechanisms of S7 Protocol Communications over NAT

When engineers attempt to run a WinCC Operator Station or Engineering Station inside a VMware Workstation configured with NAT to communicate with a physical S7-400 or CPU 410-5H controller, the connection fails:

The Origin Address Verification Conflict

  1. NetPro Configuration: In NetPro and HW Config, the engineer defines the PC Station's IP address (e.g., 192.168.220.10 corresponding to the VM's internal NAT address).
  2. Address Translation: When WinCC or SIMATIC Manager initiates an S7 Named Connection or ISO-on-TCP connection (Port 102), VMware's NAT engine translates the packet header, replacing 192.168.220.10 with the host PC's physical IP (e.g., 192.168.1.50).
  3. Rejection by Controller: The CP 443-1 or CPU 410-5H firmware inspects the incoming TCP connection request. It compares the sender's IP address (192.168.1.50) against its offline connection table (192.168.220.10). Because the addresses mismatch, the controller rejects the S7 connection handshake.
  4. Broadcast Failure: Redundancy synchronization (CCRedSync), SIMATIC Time Synchronization, and MAC-based ISO Transport cannot cross NAT boundaries.

Workaround for Development Environments and the Host-IP Rule

In testing or mobile development scenarios where engineers must operate multiple VMs using VMware DHCP/NAT to avoid corporate IP address management overhead:

The Host-IP Workaround Rule

If NAT must be used between a virtualized OS/ES and a physical PLC:
1. Identify the physical network IP address of the VMware Host computer (e.g., 192.168.1.50).
2. In SIMATIC Manager HW Config, open the PC Station object representing the WinCC OS.
3. In the properties of the network adapter ('IE General'), enter the Host PC's IP address (192.168.1.50), NOT the VM's internal NAT address (192.168.220.10).
4. In NetPro, verify that the S7 connection points to this host IP.
5. Save and Compile HW Config and NetPro, and download the configuration to the PLC.
6. When WinCC Runtime runs inside the VM, the PLC sees incoming packets from 192.168.1.50, which now matches its connection table, allowing the S7 connection to establish cleanly.

Virtual Network Architecture and Suitability Reference Matrix

The following table outlines VMware network adapter architectures and their compliance with SIMATIC PCS 7 standards:

Virtualization Network ModeSiemens PCS 7 CertificationS7 Named ConnectionsRedundant Server SyncProduction Plant UsabilityBridged Mode (Dedicated vSwitch)100% Certified and SupportedNative Direct BindingFully SupportedMandatory StandardNAT (Host-IP Workaround)Unsupported (Dev/Lab Only)Supported with Host IPNot SupportedStrictly ProhibitedNAT (Standard VM IP)UnsupportedFails (Handshake Rejected)Not SupportedUnusableHost-Only NetworkSupported for SIMIT / PLCSIMVirtual Simulation OnlySupported internallySimulation Lab Only

Adhering strictly to Bridged networking ensures compliance with Siemens virtualization guidelines.

Verification

To verify virtual network connectivity to physical controllers:
1. In the virtual machine, open Windows Command Prompt and ping the PLC IP address; verify reply times < 2 ms.
2. In HW Config, download the hardware configuration to the AS module.
3. Launch WinCC Runtime inside the virtual machine.
4. In WinCC Explorer, open Tag Management -> SIMATIC S7 Protocol Suite -> Named Connections.
5. Verify that the connection reports a green checkmark (Status: OK) and process values update dynamically on graphic screens.

Limitations and Operational Precautions

  • NAT is strictly prohibited in production plants: Operating PCS 7 with NAT voids Siemens system support and breaks redundant server synchronization and high-precision time stamping.
  • In VMware ESXi environments, configure dedicated physical NICs for the Plant Bus and Terminal Bus using dedicated virtual switches (vSwitches) with promiscuous mode enabled if required.
  • Ensure power-saving features, CPU throttling, and VM memory ballooning are disabled on the hypervisor host to prevent cycle time jitter.
  • For redundant OS servers running in virtual environments, host the primary and standby servers on physically separate ESXi hardware hosts (anti-affinity rules).

Engineer FAQ

Why does Siemens require Bridged networking for PCS 7 virtual machines?

Bridged networking allows the VM's virtual adapter to participate directly on the physical Industrial Ethernet network, supporting Layer 2 broadcast protocols, redundant synchronization, and deterministic S7 communication.

Can I use NAT for SIMATIC SIMIT simulation testing?

Yes, for offline simulation where SIMIT and PLCSIM run within the same virtual network or host, NAT or Host-Only networking is acceptable.

What happens to WinCC Redundancy over a NAT connection?

WinCC Redundancy fails over NAT because the redundancy synchronization protocol (CCRedSync) requires bidirectional RPC communication and raw socket broadcasts that NAT routers cannot translate.

Technical References

Related Articles

Related Tags

  • VMware
  • Virtualization
  • NAT_Network
  • Bridged_Network
  • S7_Connection
6 respuestas