<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Codesys Linux SL - Setup of EoE</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/eb5f5b9928/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Runtime/thread/eb5f5b9928/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Runtime/thread/eb5f5b9928/</id><updated>2022-08-31T12:47:50.844000Z</updated><subtitle>Recent posts to Codesys Linux SL - Setup of EoE</subtitle><entry><title>Codesys Linux SL - Setup of EoE</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/eb5f5b9928/?limit=25#2fc4" rel="alternate"/><published>2022-08-31T12:47:50.844000Z</published><updated>2022-08-31T12:47:50.844000Z</updated><author><name>mauri</name><uri>https://forge.codesys.com/u/mauri/</uri></author><id>https://forge.codesys.comc83f53282054f079cd8025440ab8fe1d55c1d499</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello everybody,&lt;br/&gt;
I did many tests, and it seems that something is wrong.&lt;br/&gt;
I tested on Ubuntu 22.04, where the network management is different.&lt;br/&gt;
So I moved to a DEBIAN 11 but it is still not working.&lt;br/&gt;
At the end I can ping the ethernet port (in this note the eth1: 192.168.0.50), I can ping the bridge (br0: 192.168.0.51 or 192.168.0.99) but I cannot ping the ethercat device.&lt;br/&gt;
Could someone explain to me which are the interfaces involved and how to place the right IP addresses.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;Maurizio&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys Linux SL - Setup of EoE</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/eb5f5b9928/?limit=25#32a9" rel="alternate"/><published>2021-12-06T14:37:55.009000Z</published><updated>2021-12-06T14:37:55.009000Z</updated><author><name>mrupf</name><uri>https://forge.codesys.com/u/mrupf/</uri></author><id>https://forge.codesys.comf6e16b589789408637a4d7845115ea5b44924bd0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;That clears a lot! Thanks.&lt;/p&gt;
&lt;p&gt;I used 192.168.0.51/24 in the enablebr0.sh.&lt;br/&gt;
This to have a difference between the origin eth1 ip address and the /24 to have the same subnet (255.255.255.0).&lt;br/&gt;
With /16 (255.255.0.0) I had issue on reaching 192.168.0.50. Guess due to missmatch in subnet settings.&lt;/p&gt;
&lt;p&gt;Anyway with this it no runs smooth!&lt;br/&gt;
Two different device EoE parallel and EtherCat (48Byte PDO's to the two slaves) with 4ms.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys Linux SL - Setup of EoE</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/eb5f5b9928/?limit=25#10af" rel="alternate"/><published>2021-12-05T18:25:41.548000Z</published><updated>2021-12-05T18:25:41.548000Z</updated><author><name>shaunvdm</name><uri>https://forge.codesys.com/u/shaunvdm/</uri></author><id>https://forge.codesys.com1c33fa9cdd4a52f787f56d530416b30e5ec69720</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes you got this totally mixed up.&lt;/p&gt;
&lt;p&gt;Your EoE address range must be the same as the programming port NOT Ethercat as this uses alias and not IP addresses. &lt;/p&gt;
&lt;p&gt;So in short &lt;/p&gt;
&lt;p&gt;Change the Enablebr0.sh to the programming port address ie 192.168.0.50/16. (In the Network interfaces set the eth1 to manual similar to the tap port (auto eth1  iface eth1 inet manual)&lt;br/&gt;
(This bridge connection replaces your normal Eth1 definition to enable a bridge between Tap and physical interface to Ethercat)&lt;/p&gt;
&lt;p&gt;In Codesys make sure you use the EoE on the 192.168.0.XXX range for the drives or whatever you want to talk to over Ethercat with ethernet protocol.&lt;/p&gt;
&lt;p&gt;No routing required besides the information i provided in my post.&lt;/p&gt;
&lt;p&gt;Let me know....&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys Linux SL - Setup of EoE</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/eb5f5b9928/?limit=25#9f66" rel="alternate"/><published>2021-11-29T13:21:59.271000Z</published><updated>2021-11-29T13:21:59.271000Z</updated><author><name>mrupf</name><uri>https://forge.codesys.com/u/mrupf/</uri></author><id>https://forge.codesys.com02bf0200cd8fa408280db156e997fa8f38f5a192</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Got lost on this explanation on which IP and adapter goes where. &lt;/p&gt;
&lt;p&gt;In my setting the:&lt;br/&gt;
- EoE device has the IP 192.168.10.10 -&amp;gt; this is what I put into the enablebr0.sh (192.168.10.10/24)&lt;br/&gt;
- EtherCat runs on eth0 -&amp;gt; this is the adapter for enp1s0?&lt;br/&gt;
- eth0 has a IP configured to be 192.168.10.1&lt;br/&gt;
- eth1 has a IP configured to be 192.168.0.50. This is where the PC is connected to the raspberry PI.&lt;br/&gt;
- on my PC I have a route to 192.168.10.0 MASK 255.255.255.0&lt;/p&gt;
&lt;p&gt;With this I'm able to ping 192.168.10.1. &lt;/p&gt;
&lt;p&gt;If I add the tun/tap (accodring to shaunvdm) I'm able to ping 192.168.10.10, but even with EtherCat not running. So I guess I've gone wrong somewhere, as I just ping the br0 bridge.&lt;/p&gt;
&lt;p&gt;Any hints on where I'm going wrong?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys Linux SL - Setup of EoE</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/eb5f5b9928/?limit=25#c7cf" rel="alternate"/><published>2021-11-05T14:44:30.638000Z</published><updated>2021-11-05T14:44:30.638000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com909decb639d6695df0cac70ca5c91680211ceba0</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;many thanks for this.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys Linux SL - Setup of EoE</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/eb5f5b9928/?limit=25#44f4" rel="alternate"/><published>2021-11-04T21:13:37.754000Z</published><updated>2021-11-04T21:13:37.754000Z</updated><author><name>shaunvdm</name><uri>https://forge.codesys.com/u/shaunvdm/</uri></author><id>https://forge.codesys.comeaabd5e5c92a1df96681c88a4bfa6b7a55d175b2</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi Edwin,&lt;/p&gt;
&lt;p&gt;Herewith a solution that works to enable the EoE on debian linux. &lt;/p&gt;
&lt;p&gt;Step 1 &lt;br/&gt;
Edit the network settings&lt;br/&gt;
nano /etc/network/interfaces&lt;/p&gt;
&lt;p&gt;add the following:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;code&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;auto tap0&lt;br/&gt;
iface tap0 inet manual&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;  pre-up ip tuntap add tap0 mode tap user root  # or use a different user profile.&lt;/span&gt;
&lt;span class="err"&gt;  up ip link set dev tap0 up&lt;/span&gt;
&lt;span class="err"&gt;  post-up /usr/local/sbin/enablebr0.sh          # script to enable the br0 bridge&lt;/span&gt;
&lt;span class="err"&gt;  post-down ip link set dev tap0 down&lt;/span&gt;
&lt;span class="err"&gt;  down ip link set dev tap0 down&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;code&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Save the file then&lt;/p&gt;
&lt;p&gt;Make the enablebr0.sh script&lt;/p&gt;
&lt;p&gt;nano /usr/local/sbin/enablebr0.sh&lt;br/&gt;
Contents of script---- Where enp1s0 put your network adaptor name / where the 192.168.0.99/16 put your desired ip address.&lt;/p&gt;
&lt;p&gt;add the following:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;code&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;ip link add br0 type bridge&lt;/span&gt;
&lt;span class="err"&gt;ip link set tap0 master br0&lt;/span&gt;
&lt;span class="err"&gt;ip link set enp1s0 master br0&lt;/span&gt;
&lt;span class="err"&gt;ip link set dev br0 up&lt;/span&gt;
&lt;span class="err"&gt;ip addr add 192.168.0.99/16 dev br0&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;span class="err"&gt;code&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;Save the script. Remember to make it executable (chmod +x /usr/local/sbin/enablebr0.sh)&lt;/p&gt;
&lt;p&gt;Hope this helps someone.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys Linux SL - Setup of EoE</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/eb5f5b9928/?limit=25#ddb4" rel="alternate"/><published>2021-08-27T09:25:25.424000Z</published><updated>2021-08-27T09:25:25.424000Z</updated><author><name>eschwellinger</name><uri>https://forge.codesys.com/u/eschwellinger/</uri></author><id>https://forge.codesys.com24dbaafeb1d97c6eed96aa4bd0a2bca25e46ad9f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
basically you need to use a tap device to do it:&lt;/p&gt;
&lt;p&gt;set up tap0 device &lt;/p&gt;
&lt;p&gt;/sbin/ip tuntap add tap0 mode tap&lt;br/&gt;
/sbin/ip link set tap0 up&lt;br/&gt;
/sbin/ip addr add 192.168.2.1/24 dev tap0&lt;/p&gt;
&lt;p&gt;maybe you need to add a route additional&lt;br/&gt;
echo 1 &amp;gt;/proc/sys/net/ipv4/ip_forward' ...&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Codesys Linux SL - Setup of EoE</title><link href="https://forge.codesys.com/forge/talk/Runtime/thread/eb5f5b9928/?limit=25#b8bb" rel="alternate"/><published>2021-08-26T21:42:34.265000Z</published><updated>2021-08-26T21:42:34.265000Z</updated><author><name>shaunvdm</name><uri>https://forge.codesys.com/u/shaunvdm/</uri></author><id>https://forge.codesys.comdd86f607aa7da5ee6c6b145980925d9d97965f1d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;Where can i find information related to setup of ethernet over ethercat.&lt;br/&gt;
Anything special to setup on Linux?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>