SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in...

70
___________________ ___________________ ___________ ___________________ ___________________ SIMATIC NET Industrial Ethernet Security SCALANCE S615 Getting Started Getting Started 02/2018 C79000-G8976-C390-03 Preface Connecting SCALANCE S615 to the WAN 1 VPN tunnel between SCALANCE S615 and SINEMA RC Server 2 NETMAP with SCALANCE S615 3 Configuring a VRRPv3 4

Transcript of SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in...

Page 1: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

___________________

___________________

___________ ___________________

___________________

SIMATIC NET

Industrial Ethernet Security SCALANCE S615 Getting Started

Getting Started

02/2018 C79000-G8976-C390-03

Preface

Connecting SCALANCE S615 to the WAN

1

VPN tunnel between SCALANCE S615 and SINEMA RC Server

2

NETMAP with SCALANCE S615

3

Configuring a VRRPv3 4

Page 2: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Siemens AG Division Process Industries and Drives Postfach 48 48 90026 NÜRNBERG GERMANY

Document order number: C79000-G8976-C390 Ⓟ 02/2018 Subject to change

Copyright © Siemens AG 2015 - 2018. All rights reserved

Legal information Warning notice system

This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are graded according to the degree of danger.

DANGER indicates that death or severe personal injury will result if proper precautions are not taken.

WARNING indicates that death or severe personal injury may result if proper precautions are not taken.

CAUTION indicates that minor personal injury can result if proper precautions are not taken.

NOTICE indicates that property damage can result if proper precautions are not taken.

If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to property damage.

Qualified Personnel The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.

Proper use of Siemens products Note the following:

WARNING Siemens products may only be used for the applications described in the catalog and in the relevant technical documentation. If products and components from other manufacturers are used, these must be recommended or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and maintenance are required to ensure that the products operate safely and without any problems. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.

Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.

Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information in this publication is reviewed regularly and any necessary corrections are included in subsequent editions.

Page 3: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 3

Preface

Purpose The configuration of the SCALANCE S615 is shown based on examples.

IP settings for the examples

Note

The IP settings used in the examples were freely chosen.

In a real network, you would need to adapt these IP settings to avoid possible address conflicts.

General naming conventions The designation . . . stands for . . . SINEMA RC SINEMA Remote Connect SINEMA RC Server SINEMA Remote Connect server S615 SCALANCE S615

Further Information Apart from the Configuration Manual you are currently reading, the following documentation is also available on the topic of Remote Network:

● "Industrial Remote Communication Remote Networks - SCALANCE S615 Web Based Management" configuration manual

This document is intended to provide you with the information you require to install, commission and operate the device. It provides you with the information you require to configure the devices.

● "Industrial Remote Communication - TeleControl SINEMA Remote Connect Client" operating instructions

This manual supports you when installing, configuring and operating the application SINEMA RC Client.

● "Industrial Remote Communication - TeleControl SINEMA Remote Connect Server" operating instructions

This manual supports you when installing, configuring and operating the application SINEMA RC Server.

Page 4: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Preface

SCALANCE S615 Getting Started 4 Getting Started, 02/2018, C79000-G8976-C390-03

● Getting Started Industrial Remote Communication - TeleControl - SINEMA Remote Connect"

Based on examples, this document explains the configuration of SINEMA RC.

● The "SIMATIC NET Industrial Ethernet Network Manual" contains information on other SIMATIC NET products that you can operate along with the devices of this product line in an Industrial Ethernet network. There, you will find among other things optical performance data of the communications partners that you require for the installation.

You will find this document on the Internet under the following entry ID: 27069465 (https://support.industry.siemens.com/cs/ww/en/view/27069465)

SIMATIC NET manuals You will find SIMATIC NET manuals on the Internet pages of Siemens Industry Online Support:

● Using the search function:

Link to Siemens Industry Online Support (https://support.industry.siemens.com/cs/ww/de/)

Enter the entry ID of the relevant manual as the search item.

● In the navigation panel on the left hand side in the area "Industrial Communication":

Link to the area "Industrial Communication" (https://support.industry.siemens.com/cs/ww/en/ps/15247/pm)

Go to the required product group and make the following settings: "Entry list" tab, Entry type "Manuals"

Training, Service & Support You will find information on Training, Service & Support in the multi-language document "DC_support_99.pdf" on the data medium supplied with the documentation.

SIMATIC NET glossary Explanations of many of the specialist terms used in this documentation can be found in the SIMATIC NET glossary.

You will find the SIMATIC NET glossary on the Internet at the following address:

50305045 (https://support.industry.siemens.com/cs/ww/en/view/50305045)

Security information Siemens provides products and solutions with industrial security functions that support the secure operation of plants, systems, machines and networks.

In order to protect plants, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art industrial security concept. Siemens’ products and solutions constitute one element of such a concept.

Page 5: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Preface

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 5

Customers are responsible for preventing unauthorized access to their plants, systems, machines and networks. Such systems, machines and components should only be connected to an enterprise network or the internet if and to the extent such a connection is necessary and only when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.

Additionally, Siemens’ guidance on appropriate security measures should be taken into account. For additional information on industrial security measures that may be implemented, please visit Link: (https://www.siemens.com/industrialsecurity)

Siemens’ products and solutions undergo continuous development to make them more secure. Siemens strongly recommends that product updates are applied as soon as they are available and that the latest product versions are used. Use of product versions that are no longer supported, and failure to apply the latest updates may increase customers’ exposure to cyber threats.

To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed under Link: (https://www.siemens.com/industrialsecurity)

Firmware The firmware is signed and encrypted. This ensures that only firmware created by Siemens can be downloaded to the device.

Trademarks The following and possibly other names not identified by the registered trademark sign ® are registered trademarks of Siemens AG:

SCALANCE, SINEMA, KEY-PLUG, C-PLUG

Page 6: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Preface

SCALANCE S615 Getting Started 6 Getting Started, 02/2018, C79000-G8976-C390-03

Page 7: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 7

Table of contents

Preface ................................................................................................................................................... 3

1 Connecting SCALANCE S615 to the WAN .............................................................................................. 9

1.1 Procedure in principle ............................................................................................................... 9

1.2 Setting up SCALANCE S615 and network ............................................................................. 10

1.3 Launching Web Based Management...................................................................................... 11

1.4 Logging in to Web Based Management .................................................................................. 14

1.5 Changing the IP settings of the S615 ..................................................................................... 15

1.6 Specifying device information ................................................................................................. 17

1.7 Setting the time ....................................................................................................................... 18

1.8 Creating IP subnet .................................................................................................................. 19

2 VPN tunnel between SCALANCE S615 and SINEMA RC Server .......................................................... 21

2.1 Procedure in principle ............................................................................................................. 21

2.2 Configuring access to the SINEMA RC Server ...................................................................... 25 2.2.1 Configuring a route ................................................................................................................. 25 2.2.2 Activating IP masquerading .................................................................................................... 26 2.2.3 Allow access ........................................................................................................................... 26

2.3 Configure a remote connection on the SINEMA RC Server ................................................... 27 2.3.1 Creating node groups ............................................................................................................. 27 2.3.2 Create devices ........................................................................................................................ 29 2.3.3 Configure communications relations ....................................................................................... 31

2.4 Configure a remote connection on the S615 .......................................................................... 32 2.4.1 Secure VPN connection with fingerprint ................................................................................. 32 2.4.2 Secure VPN connection with CA certificate ............................................................................ 36 2.4.2.1 Loading a certificate ................................................................................................................ 36 2.4.2.2 Configuring a VPN connection to the SINEMA RC Server ..................................................... 38

3 NETMAP with SCALANCE S615 ........................................................................................................... 41

3.1 NETMAP for the local network ................................................................................................ 43 3.1.1 Creating a VPN connection .................................................................................................... 44 3.1.2 Creating NETMAP rules.......................................................................................................... 46

3.2 NETMAP for the remote network ............................................................................................ 48 3.2.1 Creating a VPN connection .................................................................................................... 49 3.2.2 Creating NETMAP rules.......................................................................................................... 51

3.3 NETMAP for the local and remote network ............................................................................ 53 3.3.1 Creating a VPN connection .................................................................................................... 54 3.3.2 Creating NETMAP rules.......................................................................................................... 56

Page 8: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Table of contents

SCALANCE S615 Getting Started 8 Getting Started, 02/2018, C79000-G8976-C390-03

4 Configuring a VRRPv3 .......................................................................................................................... 59

4.1 Introduction ............................................................................................................................ 59

4.2 Creating IP subnet ................................................................................................................. 61

4.3 Configure VRRPv3 ................................................................................................................. 63 4.3.1 Create VRRPv3 router ........................................................................................................... 63 4.3.2 Configure VRRPv3 router ...................................................................................................... 63 4.3.3 Specifying the virtual IP address............................................................................................ 65 4.3.4 Configuring interface monitoring ............................................................................................ 66

4.4 Creating firewall rules for VRRPv3 ........................................................................................ 67

4.5 Verify VRRPv3 ....................................................................................................................... 68

Page 9: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 9

Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle

In this example the SCALANCE S615 that is in the factory settings status is assigned an IP address. Following this, the device will be configured using Web Based Management (WBM). Access to the WAN via the Ethernet interface P5 of the S615 will be connected.

Structure

Required devices/components ● 1 x S615 (additional option: a suitably installed standard rail with fittings)

● 1 x 24 V power supply with cable connector and terminal block plug

● 1 x PC for configuring the S615

● The required network cable, TP cable (twisted pair) complying with the IE FC RJ-45 standard for Industrial Ethernet

Settings used For the configuration example, the devices are given the following IP address settings: Interface IP address LAN1

S615 LAN port P1 (vlan1)

192.168.100.1 255.255.255.0

WAN port P5 (vlan2)

192.168.50.1 255.255.255.0

PC1 LAN port 192.168.100.20 255.255.255.0 Gateway: IP address vlan1

Page 10: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Connecting SCALANCE S615 to the WAN 1.2 Setting up SCALANCE S615 and network

SCALANCE S615 Getting Started 10 Getting Started, 02/2018, C79000-G8976-C390-03

Note

The IP settings used in the example were freely chosen.

In a real network, you would need to adapt these IP settings to avoid possible address conflicts.

Steps in configuration 1. Setting up SCALANCE S615 and network (Page 10)

2. Launching Web Based Management (Page 11)

3. Logging in to Web Based Management (Page 14)

4. Changing the IP settings of the SCALANCE S615 (Page 15)

5. Configuring SCALANCE S615

– Specifying device information (Page 17)

– Setting the time (Page 18)

– Creating IP subnet (Page 19)

1.2 Setting up SCALANCE S615 and network

Note

Familiarize yourself with the security instructions before you commission the device. You will find the security instructions in the operating instructions.

Procedure 1. First unpack the S615 and check that it is undamaged.

2. Fit the power supply.

WARNING

Use safety extra-low voltage only

The SCALANCE S615 is designed for operation with safety extra-low voltage. This means that only safety extra-low voltages (SELV) complying with IEC950/EN60950/ VDE0805 can be connected to the power supply terminals.

The power supply unit for the SCALANCE S615 power supply must meet NEC Class 2, according to the National Electrical Code(r) (ANSI / NFPA 70).

Page 11: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Connecting SCALANCE S615 to the WAN 1.3 Launching Web Based Management

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 11

3. Wire up the S615, see Setup (Page 9).

4. Connect the device to the local network via the Ethernet ports.

5. Turn the device on. After connecting up, the fault LED (F) is lit red.

6. Now, turn on the PC.

1.3 Launching Web Based Management In the factory settings, the SCALANCE S615 can be reached at the following IP address:

● IP address: 192.168.1.1

● Subnet mask: 255.255.255.0

In this configuration example, the Admin PC has the following IP address setting to allow it to access the Web Based Management of the S615. IP address Subnet mask 192.168.1.20 255.255.255.0

Procedure 1. On the Admin PC, open the Control Panel with the menu command "Start" > "Control

Panel".

2. Click "Network and Sharing Center" and select the "Change Adapter Settings" option in the navigation menu on the left.

3. Right-click on the "LAN Connection" symbol and select the "Properties" menu command.

4. In the "Local Area Connection Properties" dialog, enable the "Internet Protocol Version 4 (TCP/IPv4)" check box.

Page 12: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Connecting SCALANCE S615 to the WAN 1.3 Launching Web Based Management

SCALANCE S615 Getting Started 12 Getting Started, 02/2018, C79000-G8976-C390-03

5. Enter the values in the table above.

6. Confirm the dialogs with "OK" and close the Control Panel.

Page 13: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Connecting SCALANCE S615 to the WAN 1.3 Launching Web Based Management

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 13

7. Enter the IP address "192.168.1.1" in the address box of the Internet browser.

Access via HTTPS is enabled as default. If you access the device via HTTP, the address is automatically redirected to HTTPS.

A message relating to the security certificate appears. Acknowledge this message and continue loading the page.

Note

Information on the security certificate

Because the device can only be administered using encrypted access, it is delivered with a self-signed certificate. If certificates with signatures that the operating system does not know are used, a security message is displayed. You can display the certificate.

8. If there is a problem-free connection to the device, the login page of Web Based Management (WBM) is displayed.

Page 14: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Connecting SCALANCE S615 to the WAN 1.4 Logging in to Web Based Management

SCALANCE S615 Getting Started 14 Getting Started, 02/2018, C79000-G8976-C390-03

1.4 Logging in to Web Based Management

Procedure 1. Log in with the user name "admin" and the password "admin". You will be prompted to

change the password.

2. Confirm the dialog. The "Account Passwords" WBM page is opened automatically.

3. Enter the default password "admin" in "Current User Password".

4. For "New Password", enter the new password. The new password must be at least 8 characters long and contain upper case letters, lower case letters, numbers and special characters.

5. Repeat the new password in "Password Confirmation" as confirmation. The entries must match.

Page 15: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Connecting SCALANCE S615 to the WAN 1.5 Changing the IP settings of the S615

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 15

6. Click the "Set Values" button.

7. The Basic Wizard starts to support you when configuring the device parameters.

Result The password for the "admin" user is changed. The changes take immediate effect.

1.5 Changing the IP settings of the S615

Procedure 1. Click on "Layer 3 > Subnets" in the navigation area and on the "Configuration" tab in the

content area.

2. Enter the IP address for vlan1 according to the table "Settings used (Page 9)".

3. Click on "Set Values".

The IP address is adjusted automatically in the address bar of the Web browser. The Web browser on the Admin PC can no longer access Web Based Management because its IP settings no longer match.

4. On the Admin PC, open the Control Panel with the menu command "Start" > "Control Panel".

5. Click "Network and Sharing Center" and select the "Change Adapter Settings" option in the navigation menu on the left.

6. In the "Local Area Connection Properties" dialog, enable the "Internet Protocol Version 4 (TCP/IPv4)" check box.

Page 16: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Connecting SCALANCE S615 to the WAN 1.5 Changing the IP settings of the S615

SCALANCE S615 Getting Started 16 Getting Started, 02/2018, C79000-G8976-C390-03

7. Enter the values for the PC from the "Settings used (Page 9)" table.

8. Confirm the dialogs with "OK" and close the Control Panel.

9. In the address box of the Web browser, enter the IP address for vlan1, see table "Settings used (Page 9)". If there is a problem-free connection to the device, the login page of Web Based Management (WBM) is displayed.

10.Log in with the user name "admin" and the modified password.

Page 17: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Connecting SCALANCE S615 to the WAN 1.6 Specifying device information

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 17

1.6 Specifying device information To allow better identification of the SCALANCE S615, specify general device information.

Procedure 1. In the navigation area click on "System > General" and in the content area on the

"Device" tab.

2. In "System Name", enter a name for the device.

3. Enter the contact person responsible for the device in "System Contact".

4. Enter the identifier for the location at which the device is installed in "System Location", for example the room number.

5. Click the "Set Values" button.

Result The general device information for the SCALANCE S615 has been specified.

Page 18: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Connecting SCALANCE S615 to the WAN 1.7 Setting the time

SCALANCE S615 Getting Started 18 Getting Started, 02/2018, C79000-G8976-C390-03

1.7 Setting the time The date and time are kept on the SCALANCE S615 to check the validity (time) of certificates and for the time stamps of log entries. You can set the system time yourself manually or have it synchronized automatically with a time server. For this example, the time server is configured using NTP.

Note Manual time setting - reaction after interrupting the power supply

Note that the time is reset to the factory setting if the power supply is interrupted. On return of the power, you need to set the system time again. As result, certificates can lose their validity. Synchronization using a time server

Synchronization of the system time using a public time server creates additional data traffic on the connection. This may result in additional costs, depending on your subscriber contract.

Requirement ● An NTP server can be reached in the local network.

● The IP address of the NTP server is known. For this example, a local time server with the IP address 192.168.100.87 is used.

Procedure 1. In the navigation area click on "System > System Time" and in the content area on the

"NTP Client" tab.

2. In "Time zone", enter the local time difference to world time (UTC). For Central European

Summer time (CEST) +02:00.

3. Click "Create". A new entry is created in the table.

Page 19: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Connecting SCALANCE S615 to the WAN 1.8 Creating IP subnet

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 19

4. In "NTP Server Address", enter the IP address 192.53.103.108.

5. If necessary, change the port in "NTP Server Port". As default, 123 is set.

6. In "Poll Interval", enter the interval for synchronization. As default, 64 is set.

7. Enable "NTP Client".

8. Click on "Set Values".

Result System time using NTP is set. Click "Refresh" to refresh the WBM page.

1.8 Creating IP subnet The interfaces are handled differently.

● Ethernet interface P1 (vlan1): Connection to LAN

● Ethernet interface P5 (vlan2): Connection to WAN

For this configuration example, only the IP subnet for the Ethernet interface P5 needs to be configured. The IP subnet for the Ethernet interface P1 is already configured.

Procedure 1. Click on "Layer 3 > Subnets" in the navigation area and on the "Configuration" tab in the

content area.

2. For "Interfaces" select "vlan2".

3. For "Interface Name" you can enter a name.

Page 20: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Connecting SCALANCE S615 to the WAN 1.8 Creating IP subnet

SCALANCE S615 Getting Started 20 Getting Started, 02/2018, C79000-G8976-C390-03

4. Enter the IP address for vlan2, see table "Settings used (Page 9)"

5. Click on "Set Values".

Result The IP subnets have been created. The IP subnets are displayed in the "Overview" tab.

Page 21: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 21

VPN tunnel between SCALANCE S615 and SINEMA RC Server 2 2.1 Procedure in principle

In this sample configuration two distributed stations are connected using a SCALANCE S615. The devices communicate via the SINEMA RC Server located in the master station.

A KEY-PLUG SINEMA Remote Connect is required for each SCALANCE S615 device. The KEY-PLUG enables the connection from SCALANCE S615 to SINEMA RC.

To do this, the devices need to logon to the SINEMA RC Server. The VPN tunnel between the device and the SINEMA RC Server is established only after successful authentication. Depending on the configured communication relations and the security settings, the SINEMA RC server connects the individual VPN tunnels.

Structure

Page 22: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

VPN tunnel between SCALANCE S615 and SINEMA RC Server 2.1 Procedure in principle

SCALANCE S615 Getting Started 22 Getting Started, 02/2018, C79000-G8976-C390-03

Master station - connection to SINEMA RC Server

● In the test setup in the internal network, a network node is implemented by a PC connected to the LAN port of the SINEMA RC Server.

– PC: represents a participant in internal network 3

– SINEMA RC Server

● Connection to the external network via a router

Access to the external network is via a router connected to the WAN port of the SINEMA RC Server.

Station 1 / 2 - Connection to SCALANCE S615

● In the test setup in the internal network, a network node is implemented by a PC connected to the Ethernet interface P1 of the S615.

– PC: represents a participant in internal network 1/2

– S615: SCALANCE S module for protection of the internal network 1/2

● Connection to the external network via a router

Access to the external network is via a router connected to the Ethernet interface P5 of the S615.

Required devices/components Use the following components for setup:

● 2 x S615 (additional option: a suitably installed standard rail with fittings)

● 2 x KEY-PLUG SINEMA RC

● 2 x 24 V power supply with cable connector and terminal block plug

● 2 x PC each connected to a SCALANCE S615.

● 1 x PC on which the SINEMA RC Server is installed.

● 1 x PC that is connected to the SINEMA RC Server.

● 3 x router

● The required network cable, TP cable (twisted pair) complying with the IE FC RJ-45 standard for Industrial Ethernet

Page 23: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

VPN tunnel between SCALANCE S615 and SINEMA RC Server 2.1 Procedure in principle

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 23

Settings used For the configuration example, the devices are given the following IP address settings: Name Interface IP address Station1 LAN1

S615_1 LAN port P1 (vlan1)

192.168.100.1 255.255.255.0

WAN port P5 (vlan2)

192.168.50.1 255.255.255.0 Default gateway is the LAN IP address of the router 192.168.50.2

PC1 LAN port 192.168.100.20 255.255.255.0

Router1 LAN port 192.168.50.2 255.255.255.0

Station2 LAN2

S615_2

LAN port P1 (vlan1)

192.168.10.1 255.255.255.0

WAN port P5 (vlan2)

192.168.40.1 255.255.255.0 Default gateway is the LAN IP address of the router 192.168.40.2

PC2 Ethernet (LAN 2)

192.168.10.20 255.255.255.0

Router 2 LAN port 192.168.40.2 255.255.255.0

Master station LAN3

SINEMA RC Server

WAN port 192.168.20.250 255.255.255.0 The WAN IP address via which the SINEMA RC Server can be reached is the WAN IP address of the router in this example. 192.168.184.20 Default gateway is the LAN IP address of the router 192.168.20.2

PC3 Ethernet (LAN3)

192.168.20.20 255.255.255.0

Router 3 LAN port 192.168.20.2 255.255.255.0

WAN port 192.168.184.20

Note

The IP settings used in the configuration example were freely chosen.

In a real network, you would need to adapt these IP settings to avoid possible address conflicts.

Page 24: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

VPN tunnel between SCALANCE S615 and SINEMA RC Server 2.1 Procedure in principle

SCALANCE S615 Getting Started 24 Getting Started, 02/2018, C79000-G8976-C390-03

Requirement SINEMA RC Server

● The SINEMA RC Server is connected to the WAN. You will find the configuration steps in the Getting Started "SINEMA Remote Connect".

SCALANCE S615

● The S615 is connected to the WAN , refer to "Connecting SCALANCE S615 to the WAN (Page 9)".

The steps in configuration are the same for all devices, the only difference being the settings, see table "Settings used (Page 21)".

● The S615 can be reached via PC1 or PC2 and you are logged in to the WBM as "admin".

● A valid KEY-PLUG SINEMA Remote Connect is inserted in the SCALANCE S.

Steps in configuration Configuring access to the SINEMA RC Server

To allow a VPN connection to the SINEMA RC Server, a route must be created on the S615:

1. Configuring a route (Page 25)

For the PC to be able to access the WBM of the SINEMA RC Server via S615 as well, the following steps are necessary on the S615:

1. Activate Basic NAT (Page 26)

2. Allow access (Page 26)

Configure a remote connection on the SINEMA RC Server

1. Creating participant groups (Page 27)

2. Create devices (Page 29)

3. Configure communication relations (Page 31)

Configure a remote connection on the S615

● Secure VPN connection with fingerprint (Page 32)

● Secure OpenVPN connection with CA certificate

– Loading a certificate (Page 36)

– Configuring a VPN connection to the SINEMA RC Server (Page 38)

Page 25: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

VPN tunnel between SCALANCE S615 and SINEMA RC Server 2.2 Configuring access to the SINEMA RC Server

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 25

2.2 Configuring access to the SINEMA RC Server

2.2.1 Configuring a route The stations and master station are in different IP subnets. So that the stations can communicate with the master station, the appropriate default route is created on the S615.

Procedure 1. In the address box of the Web browser, enter the LAN IP address of the S615, see table

"Settings used (Page 9)".

2. Log in as the "admin" user and the corresponding password.

3. Click "Layer 3 > Static Routes" in the navigation area.

4. Configure the route to the router with the following settings:

Destination Network 0.0.0.0 (all IP addresses) Subnet Mask 0.0.0.0 Gateway LAN IP address of the router according to the

table "Settings used (Page 9)" Administrative Distance -1

5. When you have entered the values, click "Create".

6. To update the display, click "Refresh".

Result The route is created.

Overview of the configuration on the S615_1:

Page 26: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

VPN tunnel between SCALANCE S615 and SINEMA RC Server 2.2 Configuring access to the SINEMA RC Server

SCALANCE S615 Getting Started 26 Getting Started, 02/2018, C79000-G8976-C390-03

Overview of the configuration on S615_2:

2.2.2 Activating IP masquerading IP masquerading is used so that the internal IP addresses are not forwarded to external. In addition to this, no further routing settings are necessary on the router.

Procedure 1. Click on "Layer 3 > NAT" in the navigation area and on the "Masquerading" tab in the

content area.

2. Activate "Enable Masquerading" for vlan2.

3. Click on "Set Values".

Result Masquerading is activated on the WAN port vlan2. When a packet is sent via this interface, the source address is translated to the IP address assigned to vlan2.

2.2.3 Allow access So that the PC can access the SINEMA RC Server, access from vlan1 to vlan2 is enabled on the device.

Procedure 1. Click on "Security" > "Firewall" in the navigation area and on the "IP Rules" tab in the

content area.

2. Click "Create". A new entry is created in the table.

Page 27: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

VPN tunnel between SCALANCE S615 and SINEMA RC Server 2.3 Configure a remote connection on the SINEMA RC Server

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 27

3. Configure the firewall rule with the following settings:

Action Accept From vlan1 (internal) To vlan2 (external) Source (Range) 0.0.0.0 (all IP addresses) Destination (Range) 0.0.0.0 (all IP addresses) Service all

As default, the service is always available

4. Click on "Set Values".

Result Due to this firewall rule, all services between vlan1 and vlan2 are possible without restrictions, e.g. HTTPS

2.3 Configure a remote connection on the SINEMA RC Server

2.3.1 Creating node groups Users and devices can be put together in participant groups. You can also specify whether the communication between the participants of an individual group is permitted or forbidden.

For this sample configuration, the following groups are created.

● Station1

● Station2

● Service

The Service group is required for the configuration example "OpenVPN tunnel between SINEMA RC Client and SINEMA RC Server". You will find this example in the Getting Started SINEMA RC Server.

Page 28: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

VPN tunnel between SCALANCE S615 and SINEMA RC Server 2.3 Configure a remote connection on the SINEMA RC Server

SCALANCE S615 Getting Started 28 Getting Started, 02/2018, C79000-G8976-C390-03

Requirement ● The SINEMA RC Server is connected to the WAN.

Procedure 1. In the address box of the Web browser, enter the WAN IP address of the SINEMA RC

Server "https://<WAN IP address>", see table "Settings used (Page 21)".

2. Log in as the "admin" user and with the corresponding password.

3. In the navigation area, click "Remote connections" > "Participant groups". The participant groups that have already been created are listed in the content area.

4. Click "Create". The page "New participant group" is opened.

5. For group name enter "Station1". Enable the setting "Members may communicate" and click "Save".

6. Repeat steps 1 - 3 for the groups "Station2" and "Service"

Result The participant groups have been created.

Page 29: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

VPN tunnel between SCALANCE S615 and SINEMA RC Server 2.3 Configure a remote connection on the SINEMA RC Server

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 29

2.3.2 Create devices

Procedure 1. In the navigation area, click "Remote connections" > "Devices". The devices that have

already been created are listed in the content area.

2. Click "Create" button to create a new device.

3. Enter the device name for the device e.g. "S623" for station 1 and "S615_2" for station 2.

4. Click "Continue".

5. For "VPN connection mode", select "OpenVPN". Click "Continue".

6. Enable the parameter "Connected local subnets".

7. Enable the parameter "Device is a network gateway".

8. Configure the devices with the following settings and click "Add":

Local LAN IP address IP address for vlan1 according to the table "Settings used". Network mask 255.255.255.0

9. Click "Continue". The "Group memberships" tab is displayed.

10.Enable the appropriate group.

For the device "S615_1" the group "Station1"

For the device "S615_2" the group "Station2"

11.Click "Continue". The "Password" tab is displayed.

12.Specify the password for the access e.g. An:t_010 for S615_1 and An:t_020 for S615_2.

The password must be made up of uppercase and lowercase letters, numbers and special characters.

13.Click "Complete".

Result The devices are listed with the devices that have already been created.

● Device password

● Device ID

● Fingerprint

You will find the device ID and the fingerprint in the device information. Click on the symbol to open the device information.

Page 30: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

VPN tunnel between SCALANCE S615 and SINEMA RC Server 2.3 Configure a remote connection on the SINEMA RC Server

SCALANCE S615 Getting Started 30 Getting Started, 02/2018, C79000-G8976-C390-03

Page 31: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

VPN tunnel between SCALANCE S615 and SINEMA RC Server 2.3 Configure a remote connection on the SINEMA RC Server

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 31

2.3.3 Configure communications relations So that participant groups can communicate with each other, communication relations are necessary. A communication relation can be created for every direction.

For this sample configuration, the following communication relations are created: from group to the destination group Service Station1

Station2 Station1 Station2

In this configuration example, communication is only from the group "Station 1" to the group "Station 2". In the opposite direction, no communication is possible. For the communication from the group "Station2" to the group "Station1" another communication relation is necessary.

The group "Service" can also communicate with the groups "Station1" and "Station2" but they cannot communicate with "Service".

Procedure 1. In the navigation area, click "Remote connections" > "Participant groups". The participant

groups that have already been created are listed in the content area.

2. For "Station1" in the "Actions" column click on the icon . The page "Destination group" is opened.

3. Enable "Station2" and click on "Save".

4. Click "Exit dialog".

5. For "Service", click the symbol in the "Actions" column. The page "Destination group" is opened.

6. Enable "Station1" and "Station2". Click "Save".

7. Click "Exit dialog".

Result The communication relations have been created.

Click "Remote connections" > "Communication relations" in the navigation area. The created relations are listed in the content area.

Page 32: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

VPN tunnel between SCALANCE S615 and SINEMA RC Server 2.4 Configure a remote connection on the S615

SCALANCE S615 Getting Started 32 Getting Started, 02/2018, C79000-G8976-C390-03

2.4 Configure a remote connection on the S615

2.4.1 Secure VPN connection with fingerprint

Requirement ● On PC1/2 there are two Web browser windows open.

● Web browser 1 for access to Web Based Management of the SCALANCE S615.

● Web browser 2 for access to SINEMA RC.

● A valid KEY-PLUG is inserted in the S615.

Page 33: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

VPN tunnel between SCALANCE S615 and SINEMA RC Server 2.4 Configure a remote connection on the S615

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 33

Procedure 1. Change to the Web browser for access to Web Based Management of the SCALANCE

S615.

– In the address box of the Web browser, enter the LAN IP address of the S615, see table "Settings used (Page 21)".

– Log in as the "admin" user and with the corresponding password.

– Click "System" > "SINEMA RC" in the navigation area.

– For "Sinema RC Address", enter the WAN IP address of the SINEMA RC Server, see table "Settings used (Page 21)".

2. Change to the Web browser for access to SINEMA RC.

– In the address box of the Web browser, enter the WAN IP address of the SINEMA RC Server, see table "Settings used (Page 21)".

– Log in as the "admin" user and the corresponding password.

– In the navigation area, click "Remote connections" > "Devices".

– Click on the symbol in "Actions" to open the device information.

– Holding down the left mouse button, select the entry for device ID.

– Right-click on the selection and in the shortcut menu, select the copy command.

3. Change to the Web browser for access to Web Based Management of the SCALANCE S615.

– Right click in the input box of "Device ID".

– In the shortcut menu, select the menu command for inserting.

– For "Device Password" enter the password that you configured for access, An:t_010 for S615_1 and An:t_020 for S615_2

– Enable "Auto Firewall/NAT Rules"

When enabled, the suitable NAT and firewall rules are created automatically.

For "Verification Type", select "Fingerprint".

Page 34: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

VPN tunnel between SCALANCE S615 and SINEMA RC Server 2.4 Configure a remote connection on the S615

SCALANCE S615 Getting Started 34 Getting Started, 02/2018, C79000-G8976-C390-03

4. Change to the Web browser for access to SINEMA RC.

– For "Fingerprint" click on the icon .

5. Change to the Web browser for access to Web Based Management of the SCALANCE S615.

– Right click in the input box of "Fingerprint".

– In the shortcut menu, select the menu command for inserting.

– Activate "Enable SINEMA RC" and click on "Set Values".

Result The device establishes an OpenVPN tunnel to the SINEMA RC Server.

You can check in the WBM to see whether the connection was successful.

In the Web browser for access to Web Based Management of SCALANCE S615: In the navigation area, click "Information" > "SINEMA RC".

Page 35: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

VPN tunnel between SCALANCE S615 and SINEMA RC Server 2.4 Configure a remote connection on the S615

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 35

Web browser for access to SINEMA RC: Click "Remote connections" > "Devices" in the navigation area.

Page 36: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

VPN tunnel between SCALANCE S615 and SINEMA RC Server 2.4 Configure a remote connection on the S615

SCALANCE S615 Getting Started 36 Getting Started, 02/2018, C79000-G8976-C390-03

2.4.2 Secure VPN connection with CA certificate

2.4.2.1 Loading a certificate

Requirement ● The correct time is set on the S615 and the SINEMA RC Server.

● On PC1/2 there are two Web browser windows open.

Procedure 1. Change to the Web browser for access to SINEMA RC.

– In the address box of the Web browser, enter the WAN IP address of the SINEMA RC Server, see table "Settings used (Page 21)".

– Log in as the "admin" user and the corresponding password.

– Click "Security" > "Certificates" in the navigation area.

– Click on the symbol in "Actions" to export the certificate.

2. Change to the Web browser for access to Web Based Management of the SCALANCE S615.

– In the address box of the Web browser, enter the LAN IP address of the S615, see table "Settings used (Page 21)".

– Log in as the "admin" user and with the corresponding password.

– Click on "System" > "Load&Save" in the navigation area and on the "Passwords"" tab in the content area.

– Enter the device password in "X509Cert". Enable the entry and click on "Set Values".

– Click on the "HTTP" tab in the content area.

– Click the "Load" button next to "X509Cert". The dialog for loading a file is opened.

– Navigate to the exported server certificate. Click the "Open" button in the dialog.

The file is now loaded on the device. After loading successfully, confirm the next dialog with "OK".

Page 37: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

VPN tunnel between SCALANCE S615 and SINEMA RC Server 2.4 Configure a remote connection on the S615

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 37

Result The certificates are loaded. Certificates are displayed in "Security" > "Certificates". The loaded certificates must have the status "Valid".

Page 38: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

VPN tunnel between SCALANCE S615 and SINEMA RC Server 2.4 Configure a remote connection on the S615

SCALANCE S615 Getting Started 38 Getting Started, 02/2018, C79000-G8976-C390-03

2.4.2.2 Configuring a VPN connection to the SINEMA RC Server

Requirement ● A valid KEY-PLUG is inserted in the S615.

Procedure 1. Change to the Web browser for access to Web Based Management of the SCALANCE

S615.

– Click "System > SINEMA RC" in the navigation area.

– For "Sinema RC Address", enter the WAN IP address of the SINEMA RC Server, see table "Settings used (Page 21)".

2. Change to the Web browser for access to SINEMA RC.

– In the navigation area, click "Remote connections" > "Devices".

– Click on the symbol in "Actions" to open the device information.

– Holding down the left mouse button, select the entry for device ID.

– Right-click on the selection and in the shortcut menu, select the copy command.

Page 39: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

VPN tunnel between SCALANCE S615 and SINEMA RC Server 2.4 Configure a remote connection on the S615

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 39

3. Change to the Web browser for access to Web Based Management of the SCALANCE S615.

– Right click in the input box of "Device ID".

– In the shortcut menu, select the menu command for inserting.

– For "Device Password" enter the password that you configured for access, An:t_010 for S615-1 and An:t_020 for S615-2.

– Enable "Auto Firewall / NAT Rules".

When enabled, the suitable NAT and firewall rules are created automatically.

For "Verification Type" select "CA Certificate".

– In "CA Certificate" select the server certificate. Only loaded certificates can be selected.

– Activate "Enable SINEMA RC" and click on "Set Values".

Page 40: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

VPN tunnel between SCALANCE S615 and SINEMA RC Server 2.4 Configure a remote connection on the S615

SCALANCE S615 Getting Started 40 Getting Started, 02/2018, C79000-G8976-C390-03

Result The device establishes an OpenVPN tunnel to the SINEMA RC Server.

You can check in the WBM to see whether the connection was successful.

Web browser 1: In the navigation area, click "Information" > "SINEMA RC".

Web browser 2: Click "Remote connections" > "Devices" in the navigation area.

Page 41: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 41

NETMAP with SCALANCE S615 3

In these examples, two different IP subnets are connected together via a SCALANCE M-800. Between the two SCALANCE M devices a VPN tunnel is established. The VPN connection is initiated by the M876. Via the established tunnel, the addresses are translated with NETMAP. In this translation, the subnet part of the IP address is changed and the host part remains.

NETMAP can translate both the source IP address and the destination IP address.

Local area network - connection to SCALANCE M-800

● In the test setup, in the local network, a network node is implemented by a PC connected to an Ethernet interface of the SCALANCE M-800.

– PC: represents a node in the local network

– M-800: SCALANCE M module for protection of the internal network

● Connection to the external network:

– Wireless via the antenna of the M87x to the mobile wireless network.

Page 42: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

NETMAP with SCALANCE S615

SCALANCE S615 Getting Started 42 Getting Started, 02/2018, C79000-G8976-C390-03

Remote network - connection to M-800

● In the test setup, in the remote network, the network node is implemented by a PC in each case connected to an Ethernet interface of the SCALANCE M-800.

– PC: represents a node in the remote network

– M-800: SCALANCE M module for protection of the external network

● Connection to the external network

Wired via the RJ-45 jack of the M816 to ADSL.

Required devices/components Use the following components to set up the network:

● Connection to the mobile wireless network

– 1 x M876 (additional option: a suitably installed standard rail with fittings)

– 1 x 24 V power supply with cable connector and terminal block plug

– 1 x suitable antenna

– 1 x SIM card of your mobile wireless provider. Suitable services are enabled, e.g. Internet.

● Connecting to ADSL

– 1 x M816 (additional option: a suitably installed standard rail with fittings)

– 1 x 24 V power supply with cable connector and terminal block plug

– ADSL access is enabled

● 2 x PCs connected to the SCALANCE M-800.

● The required network cable, TP cable (twisted pair) complying with the IE FC RJ-45 standard for Industrial Ethernet

Note

You can also use other SCALANCE M-800 devices. The configuration described below relates explicitly to the components mentioned in the Section "Required devices/components".

Settings used For the configuration example, the devices are given the following IP address settings: Name Interface IP address Station IP subnet 1

M876 LAN interface P1 (vlan1)

192.168.20.1 255.255.255.0

WAN interface (ppp0)

Dynamic IP address from the provider The device is, however, reachable via a dynamic DNS service, e.g. example.no-ip.com

Page 43: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

NETMAP with SCALANCE S615 3.1 NETMAP for the local network

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 43

Name Interface IP address PC1 LAN interface 192.168.20.20

255.255.255.0 Master station IP subnet 2

M816

LAN interface P1 (vlan1)

192.168.10.1 255.255.255.0

WAN interface (ppp0)

Fixed IP address (WAN IP address), e.g. 91.19.6.84

PC2 Ethernet (LAN 2)

192.168.10.10 255.255.255.0

Examples There are the following examples of NETMAP

1. NETMAP for the local network (Page 43)

2. NETMAP for the remote network (Page 48)

3. NETMAP for the local and remote network (Page 53)

3.1 NETMAP for the local network

Page 44: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

NETMAP with SCALANCE S615 3.1 NETMAP for the local network

SCALANCE S615 Getting Started 44 Getting Started, 02/2018, C79000-G8976-C390-03

With NETMAP of the local network, the source address ① e.g. 192.168.20.20 is translated. In this translation, the subnet part of the IP address is changed and the host part remains. In the example, the subnet part is 192.168.20.0. This subnet part is replaced by 192.168.200.0. The source IP address is translated by the M876 ② and forwarded to the destination ③.

With incoming queries ③, the destination IP address 192.168.200.0 is replaced by 192.168.20.0. The destination IP address is translated by the M876 ② and forwarded to the destination ①. Only the NETMAP rules for the direction of the query are necessary. The NETMAP rules for the replies are added implicitly. When PC1 sends a query to PC2, the reply is translated based on it. This, however, does not apply to queries from PC2 to PC1.

For this, the following NETMAP rules are created on the M876 (initiator):

Local network > remote network: The source IP subnet 192.168.20.0/24 is replaced by 192.168.200.0/24.

Remote network > local network: The destination IP subnet 192.168.200.0/24 is replaced by 192.168.20.0/24

The two devices also communicate via a VPN tunnel.

Requirement ● The SCALANCE M-800 is connected to the WAN , refer to "Connecting SCALANCE M-

800 to the WAN".

● The SCALANCE M-800 can be reached via the admin PC and you are logged in to the WBM as a user with the role "admin".

Steps in configuration The following steps are necessary to create NETMAP rules:

1. Creating a VPN connection (Page 44)

2. Creating NETMAP rules (Page 46)

3.1.1 Creating a VPN connection

Procedure 1. Click on "Security" > "IPsec VPN" in the navigation area and on the "General" tab in the

content area.

2. Activate "Enable IPsec VPN" and click "Set Values".

Page 45: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

NETMAP with SCALANCE S615 3.1 NETMAP for the local network

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 45

3. Click on the "Remote End" tab in the content area and create the VPN partner with the following settings:

On the M816 On the M876 Remote End Name M876 M816 Remote Mode Standard Standard Remote Type Manual Manual Remote Address Reachable via a dynamic DNS

service, e.g. example.no-ip.com Fixed IP address (WAN IP address) of the M816, e.g. 91.19.6.84

Remote Subnet 192.168.200.0/24 192.168.10.0/24

4. Click on the "Connections" tab in the content area and create the VPN connection with the following settings:

On the M816 On the M876 Connection Name M816_to_M876 M876_to_M816 Operation Disabled Disabled Keying Protocol IKv2 IKv2 Remote End M876 M816 Local Subnet 192.168.10.0/24 192.168.20.0/24

5. Click on the "Authentication" tab in the content area and configure the VPN authentication with the following settings:

On the M816 On the M876 Authentication PSK PSK Local ID - - Remote ID - - PSK / PSK Confirma-tion

e. g. 12345678 e. g. 12345678

Page 46: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

NETMAP with SCALANCE S615 3.1 NETMAP for the local network

SCALANCE S615 Getting Started 46 Getting Started, 02/2018, C79000-G8976-C390-03

6. Click on the "Phase 1" tab in the content area and configure the following settings:

M816 / M876 DPD enabled Encryption AES256 CBC (M87x)

AES256 (M81x) Authentication SHA512 Key Derivation DH group 14 Lifetime [min]: 1440 DPD Period [sec] 60 Aggressive Mode no

7. Click on the "Phase 2" tab in the content area and configure the following settings:

M816 / M876 Encryption AES256 CBC (M87x)

AES256 (M816) Authentication SHA512 Key Derivation DH group 14 Lifetime [min]: 1440

Result The VPN connection on the devices is configured. To establish the VPN connection, click on the "Connections" tab in the content area.

For "Operation" select the following and click "Set Values" On the M816 On the M876 Operation wait

(Responder) start (Initiator)

The M876 establishes the VPN tunnel to the M816. If the VPN tunnel is established, the LED is lit green on the devices.

3.1.2 Creating NETMAP rules

Requirement ● The VPN connection M876_to_M816 is configured, see Creating a VPN connection

(Page 44).

Page 47: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

NETMAP with SCALANCE S615 3.1 NETMAP for the local network

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 47

Procedure 1. Click on "Layer 3" > "NAT" in the navigation area and on the "NETMAP" tab in the content

area.

2. Specify the NETMAP rule for the outgoing queries with the following settings:

Type Source Source Interface vlan1 Destination Interface IPsec M876_to_M816 Source IP Subnet 192.168.20.0/24 Translated Source IP Subnet 192.168.200.0/24 Destination IP Subnet 192.168.10.0/24

3. Click "Create". A new row is created in the table with the settings.

4. Specify the NETMAP rule for the incoming queries with the following settings:

Type Destination Source Interface IPsec M876_to_M816 Destination Interface vlan1 Source IP Subnet 192.168.10.0/24 Destination IP Subnet 192.168.200.0/24 Translated Destination IP Subnet 192.168.20.0/24

5. Click "Create". A new row is created in the table with the settings.

6. Click on "Set Values".

Result The rules for the outgoing and incoming queries have been created.

Page 48: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

NETMAP with SCALANCE S615 3.2 NETMAP for the remote network

SCALANCE S615 Getting Started 48 Getting Started, 02/2018, C79000-G8976-C390-03

3.2 NETMAP for the remote network

With NETMAP of the remote network, the destination ① e.g. 192.168.100.10 is translated. In the example, the subnet part is 192.168.100.0 and this is replaced by 192.168.10.0. This means that the remote network can also be reached in addition to 192.168.10.0 also via 192.168.100.0. The destination IP address is translated by the M876 ② and forwarded to the destination ③.

With incoming queries ③, the source IP address 192.168.10.0 is replaced by 192.168.100.0. The source IP address is translated by the M876 ② and forwarded to the destination ①.

Only the NETMAP rules for the direction of the query are necessary. The NETMAP rules for the replies are added implicitly. When PC1 sends a query to PC2, the reply is translated based on it. This, however, does not apply to queries from PC2 to PC1.

For this, the following NETMAP rules are created on the M876 (initiator):

Local network > remote network: The destination IP subnet 192.168.100.0/24 is replaced by 192.168.10.0/24.

Remote network > local network: The source IP subnet 192.168.10.0/24 is replaced by 192.168.100.0/24

The two devices should also communicate with each other via a VPN tunnel.

Page 49: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

NETMAP with SCALANCE S615 3.2 NETMAP for the remote network

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 49

Requirement ● The SCALANCE M-800 is connected to the WAN , refer to "Connecting SCALANCE M-

800 to the WAN".

● The SCALANCE M-800 can be reached via the Admin PC and you are logged in to the WBM as "admin".

Steps in configuration The following steps are necessary

1. Creating a VPN connection (Page 49)

2. Creating NETMAP rules (Page 51)

3.2.1 Creating a VPN connection

Procedure 1. Click on "Security" > "IPsec VPN" in the navigation area and on the "General" tab in the

content area.

2. Activate "Enable IPsec VPN" and click "Set Values".

3. Click on the "Remote End" tab in the content area and create the VPN partner with the following settings:

On the M816 On the M876 Remote End Name M876 M816 Remote Mode Standard Standard Remote Type Manual Manual Remote Address Reachable via a dynamic DNS

service, e.g. example.no-ip.com Fixed IP address (WAN IP address) of the M816, e.g. 91.19.6.84

Remote Subnet 192.168.20.0/24 192.168.10.0/24

4. Click on the "Connections" tab in the content area and create the VPN connection with the following settings:

On the M816 On the M876 Connection Name M816_to_M876_2 M876_to_M816_2 Operation Disabled Disabled Keying Protocol IKv2 IKv2 Remote End M876 M816 Local Subnet 192.168.10.0/24 192.168.20.0/24

Page 50: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

NETMAP with SCALANCE S615 3.2 NETMAP for the remote network

SCALANCE S615 Getting Started 50 Getting Started, 02/2018, C79000-G8976-C390-03

5. Click on the "Authentication" tab in the content area and configure the VPN authentication with the following settings:

On the M816 On the M876 Authentication PSK PSK Local ID - - Remote ID - - PSK / PSK Confirma-tion

e. g. 12345678 e. g. 12345678

6. Click on the "Phase 1" tab in the content area and configure the following settings:

M816 / M876 DPD enabled Encryption AES256 CBC (M87x)

AES256 (M81x) Authentication SHA512 Key Derivation DH group 14 Lifetime [min]: 1440 DPD Period [sec] 60 Aggressive Mode no

7. Click on the "Phase 2" tab in the content area and configure the following settings:

M816 / M876 Encryption AES256 CBC (M87x)

AES256 (M81x) Authentication SHA512 Key Derivation DH group 14 Lifetime [min]: 1440

Result The VPN connection on the devices is configured. To establish the VPN connection, click on the "Connections" tab in the content area.

For "Operation" select the following and click "Set Values" On the M816 On the M876 Operation wait

(Responder) start (Initiator)

The M876 establishes the VPN tunnel to the M816. If the VPN tunnel is established, the LED is lit green on the devices.

Page 51: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

NETMAP with SCALANCE S615 3.2 NETMAP for the remote network

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 51

3.2.2 Creating NETMAP rules

Requirement ● The VPN connection M876_to_M816_2 is configured, see Creating a VPN connection

(Page 49).

Procedure 1. Click on "Layer 3" > "NAT" in the navigation area and on the "NETMAP" tab in the content

area.

2. Specify the NETMAP rule for the outgoing queries with the following settings:

Type Destination Source Interface vlan1 Destination Interface IPsec M876_to_M816_2 Source IP Subnet 192.168.20.0/24 Destination IP Subnet 192.168.100.0/24 Translated Destination IP Subnet 192.168.10.0/24

3. Click "Create". A new row is created in the table with the settings.

4. Specify the NETMAP rule for the incoming queries with the following settings:

Type Source Source Interface IPsec M876_to_M816_2 Destination Interface vlan1 Source IP Subnet 192.168.10.0/24 Translated Source IP Subnet 192.168.100.0/24 Destination IP Subnet 192.168.20.0/24

5. Click "Create". A new row is created in the table with the settings.

6. Click on "Set Values".

Page 52: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

NETMAP with SCALANCE S615 3.3 NETMAP for the local and remote network

SCALANCE S615 Getting Started 52 Getting Started, 02/2018, C79000-G8976-C390-03

Result The rules for the outgoing and incoming queries have been created.

Page 53: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

NETMAP with SCALANCE S615 3.3 NETMAP for the local and remote network

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 53

3.3 NETMAP for the local and remote network

In this example, the NETMAP rules from NETMAP for the local network (Page 43)and from NETMAP for the remote network (Page 48) are combined. There is, however, a special feature with the outgoing queries. Outgoing queries, whose source IP address is translated from 192.168.20.0 to 192.168.200.0, must be able to have both the IP address 192.168.10.10 as well as 192.168.100.10 as the destination IP address. For translating the destination IP address a further NETMAP rule is required. The addresses are translated by the M876 ② and forwarded to the destination ③.

With the incoming query both IP addresses are exchanged.

Local network > remote network: The source IP subnet 192.168.20.0/24 is replaced by 192.168.200.0/24.

The destination IP subnet 192.168.100.0/24 is replaced by 192.168.10.0/24.

With queries with the destination IP subnet 192.168.100.0/24 the source IP subnet 192.168.20.0/24 is replaced by 192.168.200.0/24.

Page 54: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

NETMAP with SCALANCE S615 3.3 NETMAP for the local and remote network

SCALANCE S615 Getting Started 54 Getting Started, 02/2018, C79000-G8976-C390-03

Remote network > local network: The destination IP subnet 192.168.200.0/24 is replaced by 192.168.20.0/24

The source IP subnet 192.168.10.0/24 is replaced by 192.168.100.0/24

The two devices should also communicate with each other via a VPN tunnel.

Requirement ● The SCALANCE M-800 is connected to the WAN , refer to "Connecting SCALANCE M-

800 to the WAN".

● The SCALANCE M-800 can be reached via the admin PC and you are logged in to the WBM as a user with the role "admin".

Steps in configuration The following steps are necessary

1. Creating a VPN connection (Page 54)

2. Creating NETMAP rules (Page 56)

3.3.1 Creating a VPN connection

Procedure 1. Click on "Security" > "IPsec VPN" in the navigation area and on the "General" tab in the

content area.

2. Activate "Enable IPsec VPN" and click "Set Values".

3. Click on the "Remote End" tab in the content area and create the VPN partner with the following settings:

On the M816 On the M876 Remote End Name M876 M816 Remote Mode Standard Standard Remote Type Manual Manual Remote Address Reachable via a dynamic DNS

service, e.g. example.no-ip.com Fixed IP address (WAN IP address) of the M816, e.g. 91.19.6.84

Remote Subnet 192.168.200.0/24 192.168.10.0/24

Page 55: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

NETMAP with SCALANCE S615 3.3 NETMAP for the local and remote network

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 55

4. Click on the "Connections" tab in the content area and create the VPN connection with the following settings:

On the M816 On the M876 Connection Name M816_to_M876 M876_to_M816 Operation Disabled Disabled Keying Protocol IKv2 IKv2 Remote End M876 M816 Local Subnet 192.168.10.0/24 192.168.20.0/24

5. Click on the "Authentication" tab in the content area and configure the VPN authentication with the following settings:

On the M816 On the M876 Authentication PSK PSK Local ID - - Remote ID - - PSK / PSK Confirma-tion

e. g. 12345678 e. g. 12345678

6. Click on the "Phase 1" tab in the content area and configure the following settings:

M816 / M876 DPD enabled Encryption AES256 CBC (M87x)

AES256 (M81x) Authentication SHA512 Key Derivation DH group 14 Lifetime [min]: 1440 DPD Period [sec] 60 Aggressive Mode no

7. Click on the "Phase 2" tab in the content area and configure the following settings:

M816 / M876 Encryption AES256 CBC (M87x)

AES256 (M816) Authentication SHA512 Key Derivation DH group 14 Lifetime [min]: 1440

Result The VPN connection on the devices is configured. To establish the VPN connection, click on the "Connections" tab in the content area.

Page 56: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

NETMAP with SCALANCE S615 3.3 NETMAP for the local and remote network

SCALANCE S615 Getting Started 56 Getting Started, 02/2018, C79000-G8976-C390-03

For "Operation" select the following and click "Set Values" On the M816 On the M876 Operation wait

(Responder) start (Initiator)

The M876 establishes the VPN tunnel to the M816. If the VPN tunnel is established, the LED is lit green on the devices.

3.3.2 Creating NETMAP rules

Requirement ● The VPN connection M876_to_M816_2 is configured, see Creating a VPN connection

(Page 54).

● The NETMAP rules for the local network (Page 51)have been created.

● The NETMAP rules for the remote network (Page 46)have been created.

Procedure 1. Click on "Layer 3" > "NAT" in the navigation area and on the "NETMAP" tab in the content

area.

2. Specify the NETMAP rule for the outgoing queries with the following settings:

Type Source Source Interface vlan1 Destination Interface IPSec M876_to_M816_2 Source IP Subnet 192.168.20.0/24 Translated Source IP Subnet 192.168.100.0/16 Destination IP Subnet 192.168.200.0/24

3. Click "Create". A new row is created in the table with the settings.

4. Click on "Set Values".

Page 57: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

NETMAP with SCALANCE S615 3.3 NETMAP for the local and remote network

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 57

Result The rules for the outgoing and incoming queries have been created.

Page 58: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

NETMAP with SCALANCE S615 3.3 NETMAP for the local and remote network

SCALANCE S615 Getting Started 58 Getting Started, 02/2018, C79000-G8976-C390-03

Page 59: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 59

Configuring a VRRPv3 4 4.1 Introduction

This section contains an example configuration that demonstrates the function of the VRRPv3. With the Virtual Router Redundancy Protocol v3 (VRRPv3), the failure of a router in a network can be countered.

To set up router redundancy, multiple devices are combined into a logical group; these devices together form the virtual router. To clearly assign the devices to a logical group, a VRID is configured for each device. The devices of a logical group must have the same VRID.

One device of the group is declared the master router, while the others are backup routers. A virtual IP address and a MAC address is assigned to this master router. The entire data traffic is handled over the master router.

If the master router fails, the virtual IP address and the MAC address are transferred to the backup router that takes on the role of the master router. This means communication is restored within three seconds.

The connected devices are oblivious to the router being adopted, because the virtual IP address that was configured as gateway address in the nodes does not change.

In this example configuration, stations 1 and 2 are to be connected redundantly to ensure data communication to and from these IP subnets even in case of a router failure.

Setup To set up router redundancy, the stations are connected to each other over two SCALANCE S615. To do so, two VRIDs (1 and 2) are configured on both devices. Within these groups (VRID 1 and 2), the "S615_1" is the master router and the "S615_2" is the backup router.

Station 1 (vlan1) is connected over interface P1, and station 2 (vlan2) is connected over the P5 interface of the SCALANCE S615. During normal operation, the entire data traffic is handled over the interfaces of the master router.

When one of these interfaces fails on the master router, data traffic is no longer possible over the master router. The connection over the interfaces P1 and P5 is therefore monitored. When the status of a monitored interface changes on the master router from "up" to "down", the priority of the master router is reduced. The virtual IP address and the MAC address are transferred to the backup router that takes on the tasks of the master router.

Once connection over the "S615_1" is possible again, the original priority of the VRRP router is restored. The "S615_1" once again takes on the role of master router.

The firewall is enabled on the devices by default. For the incoming VRRP packets to be forwarded to the device, you must configure a firewall rule.

Page 60: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Configuring a VRRPv3 4.1 Introduction

SCALANCE S615 Getting Started 60 Getting Started, 02/2018, C79000-G8976-C390-03

Settings used For the configuration example, the devices are given the following IP address settings: VLAN / VRID

Router status

Device name Interface IP address Virtual IP address (Associated IP address)

vlan1 / 1 Master S615_1 P1 192.168.100.1 255.255.255.0

192.168.100.15 (VRID 1)

Backup S615_2 P1 192.168.100.2 255.255.255.0

vlan 2 / 2 Master S615_1 P5 192.168.2.1 255.255.255.0

192.168.2.15 (VRID 2)

Backup S615_2 P5 192.168.2.2 255.255.255.0

You configure the devices with the PC using Web Based Management. To do so, you must assign the IP address to the PC network adapter. In the extended TCP/IP settings of the network adapter configuration you have the option of adding additional IP addresses. PC IP address Gateway PC1 192.168.100.20 VRID 1: Virtual IP address: 192.168.100.15 PC2 192.168.2.20 VRID 2: Virtual IP address: 192.168.2.15

Page 61: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Configuring a VRRPv3 4.2 Creating IP subnet

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 61

Note

The IP settings used in the configuration example were freely chosen.

In a real network, you would need to adapt these IP settings to avoid possible address conflicts.

Requirement ● The SCALANCE S615 is connected to the WAN, refer to "Connecting SCALANCE S615

to the WAN (Page 9)".

● The SCALANCE S615 can be reached via the PC and you are logged in to the WBM as a user with the role "admin".

Steps in configuration The steps always have to be executed on both devices, unless you are expressly instructed to do otherwise.

1. Create IP subnet (Page 61)

2. Configure VRRPv3 (Page 63)

3. Create firewall rules (Page 67)

4. Verify VRRPv3 (Page 68)

4.2 Creating IP subnet The SCALANCE S615 has five ports with the following factory settings:

● P1 to P4: vlan 1 for access from the local network (LAN) to the device.

● P5: vlan 2 for access from the external network (WAN) to the device.

The VLANs are in different IP subnets. To integrate the SCALANCE S615 into the network of the application example, the settings are adapted accordingly.

Procedure 1. Click on "Layer 3 > Subnets" in the navigation area and on the "Configuration" tab in the

content area.

2. Enter the IP address for the internal network ("vlan1") in accordance with the table "Settings used (Page 59)".

3. Click on "Set Values".

The IP address is adjusted automatically in the address bar of the Web browser.

Through multiple IP address assignment, the PC can still access the Web Based Management.

Page 62: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Configuring a VRRPv3 4.2 Creating IP subnet

SCALANCE S615 Getting Started 62 Getting Started, 02/2018, C79000-G8976-C390-03

4. Click on "Layer 3 > Subnets" in the navigation area and on the "Configuration" tab in the content area.

5. For "Interface (Name)" select the entry "vlan2 (EXT)".

6. Enter the IP address for "vlan2 (EXT)" according to the table "Settings used (Page 59)".

7. Click on "Set Values".

Result The IP subnets are created in both SCALANCE S615 and are displayed in the "Overview" tab.

Overview of the configuration on the S615_1:

Overview of the configuration on S615_2:

Page 63: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Configuring a VRRPv3 4.3 Configure VRRPv3

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 63

4.3 Configure VRRPv3

4.3.1 Create VRRPv3 router

Procedure 1. Click on "Layer 3" > "VRRPv3" in the navigation area and on the "Router" tab in the

content area.

2. Select the setting "VRRPv3". Confirm the message with "OK". The procedure is described in the section "Creating firewall rules for VRRP (Page 67)".

3. Select the setting "VRID-Tracking".

4. Click on "Set Values".

5. For "Interface", select the entry "vlan1".

6. Enter 1 for "VRID" and click "Create".

7. For "Interface", select the entry "vlan2".

8. Enter 2 for "VRID" and click "Create".

9. Click on "Set Values".

Result Two logical groups have been created on the devices.

4.3.2 Configure VRRPv3 router This section describes how to configure the VRRPv3 routers. The S615_1 is configured as master router and the S615_2 as backup router in this case.

Page 64: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Configuring a VRRPv3 4.3 Configure VRRPv3

SCALANCE S615 Getting Started 64 Getting Started, 02/2018, C79000-G8976-C390-03

Procedure 1. Click on "Layer 3" > "VRRPv3" in the navigation area and on the "Configuration" tab in

the content area.

2. For "Interface / VRID" select the entry "vlan1 / 1".

3. Configure the virtual router VRID 1 with the following settings:

S615_1 S615_2 Interface / VRID vlan1 / 1 vlan1 / 1 Primary Address 0.0.0.0 0.0.0.0

Because only one subnet is configured on this VLAN, no entry is necessary. The entry is then 0.0.0.0.

Priority 150 100 Reduce Priority 60 60

4. Click on "Set Values".

5. Configure the virtual router VRID 1 with the following settings:

S615_1 S615_2 Interface / VRID vlan2 / 2 vlan2 / 2 Primary Address 0.0.0.0 0.0.0.0

Because only one subnet is configured on this VLAN, no entry is necessary. The entry is then 0.0.0.0.

Priority 150 100 Reduce Priority 60 60

6. Click on "Set Values".

Result The virtual routers have been created. The configuration is identical on both devices.

Overview of the configuration on the S615_1:

Page 65: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Configuring a VRRPv3 4.3 Configure VRRPv3

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 65

Overview of the configuration on S615_2:

4.3.3 Specifying the virtual IP address A virtual IP address is assigned for each VRID so that the connected devices are not aware of the change. This virtual IP address is entered as gateway address in the devices.

Procedure 1. Click on "Layer 3" > "VRRPv3" in the navigation area and on the "Address Configuration"

tab in the content area.

2. For "Interface / VRID" select the entry "vlan1 / 1".

3. In "Associated IP Address", enter the IP address "192.168.100.15".

4. Click "Create".

5. For "Interface / VRID" select the entry "vlan2 / 2".

6. In "Associated IP Address", enter the IP address "192.168.2.15".

7. Click "Create".

8. Click on "Set Values".

Result The corresponding virtual IP addresses are specified.

Page 66: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Configuring a VRRPv3 4.3 Configure VRRPv3

SCALANCE S615 Getting Started 66 Getting Started, 02/2018, C79000-G8976-C390-03

4.3.4 Configuring interface monitoring The interfaces P1 and P5 are to be monitored.

Procedure 1. Click on "Layer 3" > "VRRPv3" in the navigation area and on the "Interface Tracking" tab

in the content area.

2. For "Interface" select the interface "P1".

3. For "Track-ID" enter the ID 1.

4. Click the "Create" button.

5. Repeat steps 2 to 4 for the interface "P5".

6. For "Track-ID", select "1".

7. Enter "1" for "Track Interface Count" and click "Set Values".

Result The interfaces are tracked.

The "Track Interface Count" 1 means that when the connection status at an interface changes from "up" to "down", the priority of the assigned VRRP router is reduced.

You configure the value by which the priority is reduced on the page "Layer 3 > VRRPv3 > Configuration". When the connection status changes back from "down" to "up", the original priority is restored.

See also Configure VRRPv3 router (Page 63)

Page 67: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Configuring a VRRPv3 4.4 Creating firewall rules for VRRPv3

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 67

4.4 Creating firewall rules for VRRPv3 For the incoming VRRP packets to be forwarded to the device, you must configure the following firewall rules.

Procedure Create IP protocol

1. Click on "Layer 3 > Firewall" in the navigation area and on the "IP Protocol" tab in the content area.

2. For "Protocol Name" enter "VRRP".

3. Click on "Set Values". A new entry is generated in the table.

4. Enter "112" in "Protocol Number".

5. Click on "Set Values".

Creating IP Rules

1. Click on "Security" > "Firewall" in the navigation area and on the "IP Rules" tab in the content area.

2. Click "Create". A new entry is created in the table.

3. Configure the firewall rule for VRID1 with the following settings:

Action Accept From vlan1 (INT) To Device Source (Range) 0.0.0.0/0 (all addresses) Destination (Range) 224.0.0.18/32 Service VRRP

4. Click on "Set Values".

5. Click "Create". A new entry is created in the table.

6. Configure the firewall rule for VRID2 with the following settings:

Action Accept From vlan2 (EXT) To Device Source (Range) 0.0.0.0/0 (all addresses) Destination (Range) 224.0.0.18/32 Service VRRP

7. Click on "Set Values".

Page 68: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Configuring a VRRPv3 4.5 Verify VRRPv3

SCALANCE S615 Getting Started 68 Getting Started, 02/2018, C79000-G8976-C390-03

Result The IP rules have been created.

4.5 Verify VRRPv3

Procedure 1. Click on "Layer 3" > "VRRPv3" in the navigation area and on the "Router" tab in the

content area.

Result Overview of the configuration on the S615_1:

Overview of the configuration on S615_2:

For master address, the IP address of the S615_1 is displayed.

Page 69: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Configuring a VRRPv3 4.5 Verify VRRPv3

SCALANCE S615 Getting Started Getting Started, 02/2018, C79000-G8976-C390-03 69

Page 70: SCALANCE S615 Getting Started - Siemens · Connecting SCALANCE S615 to the WAN 1 1.1 Procedure in principle In this example the SCALANCE S615 that is in the factory settings status

Configuring a VRRPv3 4.5 Verify VRRPv3

SCALANCE S615 Getting Started 70 Getting Started, 02/2018, C79000-G8976-C390-03