Commissioning in STEP 7
5.4 Communication between Linux and CPU
Example command line for assigning an IP address
pt1@debian:/opt/SIEMENS/SWCPU/bin# "./s7_vnic_ipconfig --nic "enp0s1f2" --
mac "28:63:36:78:b5:eb" --setip "192.168.73.123" --setmask "255.255.255.0" --setgw
"192.168.73.199"
5.4.2
Establish remote access via Linux network interface
5.4.2.1
Establishing a connection with IP routing
Introduction
IP routing makes the runtime communication interface accessible through an external
network. This allows an external OPC UA client to access the OPC UA server of the CPU or
the client of the CPU to access an external server.
With this setting you have a Web server access from an external PC to a Web server of the
CPU via a Web browser.
Note
Unique IP and MAC addresses
Make sure that the IP addresses of the devices used in the virtual network are unique within
the subnet. The MAC addresses of the devices must be globally unique.
You can use the Management tool (Page 60) provided to change the MAC addresses for
virtual Ethernet interface devices.
Configuration in STEP 7
Requirement
You have created a project in STEP 7.
Procedure
To establish a connection via IP routing, perform the following steps in STEP 7:
1. Navigate to "Runtime communication interface > Ethernet addresses" in the properties of
the CPU.
2. In the "IP protocol" field, select the option "Use router".
3. Enter the IP address "192.168.73.15" at "Router address".
4. Download the project to the CPU.
50
CPU 1505SP (F) Ready4Linux Version 2.7
Operating Instructions, 05/2019, A5E46864285-AA