Gateway for IP equipment - Support

Gateway for IP
equipment
TN 17
ver 1.1
26/08/2005
For all eWON types
1 Purpose
This document describes step by step how to set up a connection with an IP equipment, using an eWON
as a gateway.
The remote connection can be done in two ways:
• With a direct phone connection to the eWON. In this case, the eWON is configured to be a PPP server,
it takes up the phone and establishes a connection.
• Through Internet. In this case, we use the callback mechanism.
The document describes the configuration of the PC, the eWON and the P(L)C for those two types of connection.
We assume the reader starts this tutorial with an eWON out of the box.
1.1 Elements
To follow this Technical Note, you need:
• An eWON® 4000, 2001 or 4001 equipped with a modem.
• A PC with an Internet connection
• An equipment that can be reached through an IP connection. This equipment can be a PC,
a PLC that uses the XIP protocol and so on.
• An Internet connection for the eWON.
1.2 Document Structure
The first will be to set the eWON IP address by using the eBuddy utility. Once the IP address is set,
we will show how to configure the eWON by using its integrated web server.
A section will describe the direct phone connection configuration and the last section will describe the configuration
that is required for connections through Internet.
page 1 of 14
Gateway for IP
equipment
TN 17
ver 1.1
26/08/2005
For all eWON types
2 eWON Configuration
In this section, we will show how to configure the eWON to access the PLC registers through an IO server
configuration. The forwarding will be treated later.
2.1 Setting the eWON IP Address
The eWON is configured through its web server*. Right out of the box, the eWON has “10.0.0.53” as IP address.
You can find the eBuddy utility on the eWON web site (http://www.ewon.biz (Support/Download Software)). This
utility allows to find an eWON on the network and to change its IP address to match your LAN IP adresses range.
* It is also possible to configure the eWON by dropping into it a file using an FTP client, but this is a more complex process
that is explained in the eWON User Guide.
• Finding an eWON on the network with eBuddy
Launch eBuddy.exe and click CTRL+L to switch in list mode if not the case.
The list of the eWONs that are connected on the network then appears:
• Setting the IP address from an eWON
If the eWON you want to set the IP address is in the list, just right-click on it, and select Set IP Address in the
contextual menu (if the eWON is not in the list, then right-click in the blank area under the list):
page 2 of 14
Gateway for IP
equipment
TN 17
ver 1.1
26/08/2005
For all eWON types
Enter the eWON serial number in the Serial Number field if not yet done, or click on the Browse button.
In this case, the dialog box below then displays:
Select the eWON of which IP address you want to modify and click OK.
You then come back to the previous wizard page, in which you must then enter the Username and Password fields
that are required to connect to the eWON:
page 3 of 14
Gateway for IP
equipment
For all eWON types
Then click on Next and set the IP Address and Subnet Mask:
Then click on Next again to launch the update and wait for the eWON to reboot:
When done, click on Finish to exit from the IP Address Wizard.
Now your eWON should appear in the eBuddy list with the new informations you have entered.
page 4 of 14
TN 17
ver 1.1
26/08/2005
Gateway for IP
equipment
TN 17
ver 1.1
26/08/2005
For all eWON types
2.2 Testing the eWON IP Address
To test that the IP address has been assigned successfully, open a command prompt and ping the eWON.
• Open a DOS command prompt and enter “ping <address>
where <address> must be replaced by the newly assigned address.
If the address has been correctly assigned, you should see the Ethernet led of the eWON blinking
and the following screen:
Figure 1: Pinging the eWON
If, instead of a response time, you get a “request timeout” message, there is a problem and the steps must be
reviewed.
page 5 of 14
Gateway for IP
equipment
TN 17
ver 1.1
26/08/2005
For all eWON types
2.3 eWON Web Site
We have assigned an IP address to the eWON so we can reach its HTTP server to configure it.
Open a Web browser and type the address you assigned to the eWON in the address bar (10.0.0.24 in that case).
The following login page appears:
Figure 2: eWON login page
A preconfigured adm user exists to allow the first configuration*.
User nameÅ adm
Password
Å adm
• Click on Enter
The following page appears:
Figure 3: eWON main page
* The default password of the adm login MUST be changed for obvious security reason. Refer to the user manual for
explanation of how to change a user password.
page 6 of 14
Gateway for IP
equipment
TN 17
ver 1.1
26/08/2005
For all eWON types
3 Direct Phone Connection
The “Direct Phone Connection” method consists in calling the eWON using a standard modem to set up
a point to point connection. For this, we need to configure the eWON as a PPP server, so that it will pick up the
phone, authenticate the caller and assign it an IP address.
The following figure summarizes the network topology we will configure:
Figure 4: Network topology
There are three different networks used in the above configuration:
• 10.0.0.0 is the network your “working” PC (we’ll call it the laptop) is connected to.
• 202.0.0.0 is temporary network used for the PPP link. This network is configured at connection time
by the eWON.
• 10.0.1.0 is the network the PLC or PC you want to access remotely is connected to.
The routing configuration consists in:
• Configuring the eWON to forward the IP packets coming from the address 202.0.0.240
to address 10.0.1.10.
• Configuring the Laptop to send every packet to the network 10.0.1.0 via its PPP link.
• The PLC must be configured to reply to any packet coming from an another network than 10.0.1.0
through the eWON.
page 7 of 14
Gateway for IP
equipment
TN 17
ver 1.1
26/08/2005
For all eWON types
3.1 The eWON direct phone connection configuration
3.1.1 Direct phone connection - the eWon PPP configuration
The Dial Up (PPP) setup page appears. So far, we are only interested
into the Global Dialup and the Incoming Calls Config parts (the next ones will be treated later).
Figure 5: Dial Up (PPP) configuration
• Set the Call direction allowed to Incoming and Outgoing
• Set the eWON PPP server IP address to “202.0.0.240”
• Set the eWON PPP server IP mask to “255.255.255.0”
• Let the eWON PPP server gateway to “0.0.0.0”
• Set the eWON PPP client allocated IP address to “202.0.0.1”
• Click on Update Dialup Setup
Configure the modem connected to your laptop to call the eWON.
The user name and password must both be set to adm.
3.1.2 Checking the phone connection
• Configure a PC modem to call the eWON, the user name is adm, the password is also adm.
• Call the eWON
• Wait a short moment for the number to be dialed and the modems to interact
• Open a command prompt
• Ping the eWON by typing ping 202.0.0.240
You should get the same messages then earlier, when you tested the Ethernet connection to the eWON
(See “Pinging the eWON” on page 5.)
page 8 of 14
Gateway for IP
equipment
TN 17
ver 1.1
26/08/2005
For all eWON types
3.1.3 Forwarding Configuration
The eWON must be instructed to route any packets coming from its PPP connection and which is not for it to its
Ethernet network, so you have to open the Router (Filter) configuration page:
Figure 6: Router Configuration
• Check Enable IP Forwarding
• Validate by clicking on Update Router Setup
3.2 Laptop Configuration
At connection time, the Laptop is automatically configured to have the eWON as the default gateway,
which is exactly what we need to send the packet to the PLC.
3.3 PLC Configuration
The PLC must have the eWON as a gateway for the 10.0.0.0 network or to the “default” (0.0.0.0) network.
The way to configure the PLC depends of the kind of the PLC and will therefore not be shown in this document.
3.4 Testing the Connection
Follow the same steps as described in one of the chapters above (See “Testing the Connection” on page 9.)
page 9 of 14
Gateway for IP
equipment
TN 17
ver 1.1
26/08/2005
For all eWON types
4 Connection through Internet
It is also possible to establish a remote collaboration using Internet to access the eWON. To achieve this, we need
the eWON to call an Internet Service Provider (ISP) and to tell us the IP address it has been assigned by the ISP.
We will here describe the easiest way to ask the eWON to call the ISP: the callback. By callback, we mean that we
call the eWON with a normal phone, let ring few times and hang up. After a defined number of seconds, the eWON
will call the ISP and establish the connection. The eWON will then send an Email containing its PPP IP address.
4.1 eWON Internet connextion configuration
4.1.1 eWON Intenet connection - eWON PPP configuration
The first step is to update the Dial up (PPP) configuration:
• Set the Call direction allowed to Incoming and Outgoing
• Set the Server Phone Number, User Name and Password as instructed by your ISP
• Click on Update Dialup Setup
Figure 7: Dial Up outgoing configuration
A message tells the configuration has been updated.
We will now configure the callback mechanism.
• Now open the Callback configuration page.
• Check the Enabled check-box
• Check the Callback on RING radio-button
page 10 of 14
Gateway for IP
equipment
TN 17
ver 1.1
26/08/2005
For all eWON types
• Set the Publish IP address EMail to Your own email address, then Click on Update Callback Setup
Figure 8: Callback configuration
A message tells the configuration has been updated.
A SMTP server has to be configued in order for the eWON to send an Email. This is done in the Main/General
eWON’s configuration page:
Figure 9: eWON Email configuration
• Enter the STMP Server Address (can be an URL or an IP address)
• Enter the SMTP Server Port
• Enter the “From” address, compatible with your ISP (for example: user@provider.net)
• Click on Update Config (a message appears telling your configuration has been saved successfully)
page 11 of 14
Gateway for IP
equipment
TN 17
ver 1.1
26/08/2005
For all eWON types
4.2 Callback Testing
• Take a standard phone and call the eWON
• Let the phone ring four times (See “Callback configuration” on page 11. above), then hang up.
• Wait for the eWON to connect to the ISP and to get its IP address. (This can take a moment)
• Check your email. You should have received an Email like the one below:
Figure 10: Address publishing email
You can test this address by clicking on the http link, or opening a browser and typing the address. You should see
the eWON login web page appearing:
Figure 11: Setting Transparent Forwarding to eLink IP Address
page 12 of 14
Gateway for IP
equipment
TN 17
ver 1.1
26/08/2005
For all eWON types
4.2.1 NAT and Transparent Forwarding
Two problems must be solved when connecting through Internet:
• We cannot access anymore the PLC directly with its IP address like we could do it with a direct phone
connection.
• The sender address of IP packets sent on Internet by the PLC must be set to the eWON PPP IP address
The first problem is solved by a mechanism called transparent forwarding and is a built-in facility of the eWON.
The second problem is solved by another eWON built-in service: the NAT (Network Address Translation)
Thos two services are enabled from the Router (Filter) configuration page:
Figure 12: Router Configuration
• Check the Enable IP Forwarding box
• Check the Enable NAT box
• Check the Enable Transparent Forwarding box.
• Click on the Update Router Setup button
page 13 of 14
Gateway for IP
equipment
TN 17
ver 1.1
26/08/2005
For all eWON types
4.3 Starting the Remote Collaboration
• Call the eWON as we have done to test the callback mechanism (See “Callback Testing” on page 12.)
• Enter the address that has been transmitted in the Email in your Internet browser
• Enter “adm” as Login and Password
The main page has changed and now looks as follows:
Figure 13: eWON login page with the Transparent Forwarding field
• Set the Connect To field to the PLC IP address
• Click on Connect
From now on, every packet sent to the eWON will be forwarded to the PLC but for the port 81 which leads to the
eWON web page. Indeed, we must be able to connect to the eWON web page to close the PPP connection or
change the Transparent forwarding address.
To reconnect to the eWON web page:
• Open you browser and type http://<eWON_IP>:81 in the address bar, <eWON_IP> being the address you
received in the mail.
page 14 of 14
Download PDF
Similar pages