<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Making ethernet as primary connectivity]]></title><description><![CDATA[<p dir="auto">Re: <a href="/topic/1914/help-getting-ethernet-configuration-correct-resolved">Help getting Ethernet configuration correct [resolved]</a></p>
<p dir="auto">Hi everyone,<br />
For my project i am using Omega2+ where i need to have Ethernet and WIFI both connectivity, but ethernet as primary.</p>
<p dir="auto">I had used ethernet Jack, soldered on general dot matrix pcb with all resistor and capacitor as described in ethernet expansion schematic. I tested ethernet, its working good.</p>
<p dir="auto">My objective is to run python MQTT publish and subscribe on available network (WIFI-Ethernet) at any point. Where Ethernet need to give 1st preference if both Ethernet and WIFI are available.</p>
<p dir="auto"><strong>Problem</strong> i am facing is auto switching between network( Ethernet - WIFI ) not happening. There are different cases which i came across:</p>
<ol>
<li>If i keep Ethernet during boot, then omega gets IP through DHCP form router and MQTT working fine.</li>
<li>Same if keep only WIFI, omega gets IP and MQTT works fine.</li>
<li>But if omega booted with active wifi network , and then if i had connected ethernet and disconnected WIFI by turning  off SSID. MQTT does not work, even though omega got IP with ethernet.</li>
</ol>
<p dir="auto"><strong>Kindly explain how i can configure network on Omega2 so that both Ethenet and WIFI should work with auto switching between available active network (ethernet and wifi). And giving ethernet as primary network</strong></p>
]]></description><link>http://community.onion.io/topic/3709/making-ethernet-as-primary-connectivity</link><generator>RSS for Node</generator><lastBuildDate>Sun, 09 Aug 2026 13:45:16 GMT</lastBuildDate><atom:link href="http://community.onion.io/topic/3709.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 29 Aug 2019 18:55:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Making ethernet as primary connectivity on Thu, 29 Aug 2019 18:55:33 GMT]]></title><description><![CDATA[<p dir="auto">Re: <a href="/topic/1914/help-getting-ethernet-configuration-correct-resolved">Help getting Ethernet configuration correct [resolved]</a></p>
<p dir="auto">Hi everyone,<br />
For my project i am using Omega2+ where i need to have Ethernet and WIFI both connectivity, but ethernet as primary.</p>
<p dir="auto">I had used ethernet Jack, soldered on general dot matrix pcb with all resistor and capacitor as described in ethernet expansion schematic. I tested ethernet, its working good.</p>
<p dir="auto">My objective is to run python MQTT publish and subscribe on available network (WIFI-Ethernet) at any point. Where Ethernet need to give 1st preference if both Ethernet and WIFI are available.</p>
<p dir="auto"><strong>Problem</strong> i am facing is auto switching between network( Ethernet - WIFI ) not happening. There are different cases which i came across:</p>
<ol>
<li>If i keep Ethernet during boot, then omega gets IP through DHCP form router and MQTT working fine.</li>
<li>Same if keep only WIFI, omega gets IP and MQTT works fine.</li>
<li>But if omega booted with active wifi network , and then if i had connected ethernet and disconnected WIFI by turning  off SSID. MQTT does not work, even though omega got IP with ethernet.</li>
</ol>
<p dir="auto"><strong>Kindly explain how i can configure network on Omega2 so that both Ethenet and WIFI should work with auto switching between available active network (ethernet and wifi). And giving ethernet as primary network</strong></p>
]]></description><link>http://community.onion.io/post/20072</link><guid isPermaLink="true">http://community.onion.io/post/20072</guid><dc:creator><![CDATA[Suman kumar Jha]]></dc:creator><pubDate>Thu, 29 Aug 2019 18:55:33 GMT</pubDate></item><item><title><![CDATA[Reply to Making ethernet as primary connectivity on Thu, 29 Aug 2019 19:07:01 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/6569">@Suman-kumar-Jha</a> Take a look at hotplug system,  if I want to prioritise one interface over another,  you can customise those scripts to achieve your goals.</p>
<p dir="auto">Scripts are in /etc/hotplug.d/</p>
]]></description><link>http://community.onion.io/post/20074</link><guid isPermaLink="true">http://community.onion.io/post/20074</guid><dc:creator><![CDATA[crispyoz]]></dc:creator><pubDate>Thu, 29 Aug 2019 19:07:01 GMT</pubDate></item><item><title><![CDATA[Reply to Making ethernet as primary connectivity on Fri, 30 Aug 2019 10:48:46 GMT]]></title><description><![CDATA[<p dir="auto">Thanks crispyoz, for the response. Can you guide me in detail. I am new to this.</p>
<p dir="auto">My ethernet and WIFI both working, but switching of network between Ethernet and WIFI does not work. <strong>I feel always omega is looking for WIFI network only</strong>.</p>
<p dir="auto"><strong>Most of the time i feel ethernet does not getting registered. Please look below image</strong></p>
<p dir="auto"><img src="/assets/uploads/files/1567161935717-omega2_ethernet_error-resized.jpeg" alt="0_1567161990832_omega2_ethernet_error.jpeg" class="img-responsive img-markdown" /></p>
<p dir="auto">Sometime , if ethernet got registered (checked in ifconfig) but omega does not takes that network. It keeps looking for WIFI</p>
<p dir="auto">Please response soon<br />
Regards<br />
Suman</p>
]]></description><link>http://community.onion.io/post/20088</link><guid isPermaLink="true">http://community.onion.io/post/20088</guid><dc:creator><![CDATA[Suman kumar Jha]]></dc:creator><pubDate>Fri, 30 Aug 2019 10:48:46 GMT</pubDate></item><item><title><![CDATA[Reply to Making ethernet as primary connectivity on Fri, 30 Aug 2019 16:48:26 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/6569">@Suman-kumar-Jha</a> I'm not entirely clear on what you are trying to achieve.</p>
]]></description><link>http://community.onion.io/post/20091</link><guid isPermaLink="true">http://community.onion.io/post/20091</guid><dc:creator><![CDATA[crispyoz]]></dc:creator><pubDate>Fri, 30 Aug 2019 16:48:26 GMT</pubDate></item><item><title><![CDATA[Reply to Making ethernet as primary connectivity on Fri, 30 Aug 2019 16:54:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/6569">@Suman-kumar-Jha</a> said in <a href="/post/20072">Making ethernet as primary connectivity</a>:</p>
<blockquote>
<p dir="auto">Kindly explain how i can configure network on Omega2 so that both Ethenet and WIFI should work with auto switching between available active network (ethernet and wifi). And giving ethernet as primary network</p>
</blockquote>
<p dir="auto"><strong>I want to achieve auto selection of available active network between WIFI and Ethernet, with Ethernet on 1st priority if both network available.</strong></p>
<p dir="auto">I was trying to get Ethernet working, but facing issue. Above picture shows that Omega2+ keep trying to setup Ethernet but fails and keep repeating it</p>
<p dir="auto">I think now it is clear, kindly support.</p>
<p dir="auto">As i said i am new to the linux environment, so please explain in detail how i can make out.</p>
<p dir="auto">Thanks</p>
]]></description><link>http://community.onion.io/post/20092</link><guid isPermaLink="true">http://community.onion.io/post/20092</guid><dc:creator><![CDATA[Suman kumar Jha]]></dc:creator><pubDate>Fri, 30 Aug 2019 16:54:13 GMT</pubDate></item><item><title><![CDATA[Reply to Making ethernet as primary connectivity on Fri, 30 Aug 2019 17:43:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/6569">@Suman-kumar-Jha</a> As with any issue it is best to break it down into small parts:</p>
<p dir="auto">Step 1, if you disable wifi, does the ethernet device reliably connect, remain connected and function correctly.</p>
<p dir="auto">Step 2) if you enable wifi does this have an impact upon the functionalty of the ethernet.</p>
<p dir="auto">Depending on the answer to these two questions you will decide how best to proceed.</p>
]]></description><link>http://community.onion.io/post/20093</link><guid isPermaLink="true">http://community.onion.io/post/20093</guid><dc:creator><![CDATA[crispyoz]]></dc:creator><pubDate>Fri, 30 Aug 2019 17:43:57 GMT</pubDate></item><item><title><![CDATA[Reply to Making ethernet as primary connectivity on Sat, 31 Aug 2019 07:37:11 GMT]]></title><description><![CDATA[<p dir="auto">Thanks, I did as you said. Disabled wireless station mode by going into /etc/config/wireless and rebooted.</p>
<p dir="auto">After that i tested ethernet plugging and un-plugging many times. Its work and getting identified by omega and registered. Also ping test work. you can see below image</p>
<p dir="auto"><img src="/assets/uploads/files/1567234662659-f6c4cf1f-caad-4b45-86eb-e2788d5eebe0-image-resized.png" alt="0_1567234714546_f6c4cf1f-caad-4b45-86eb-e2788d5eebe0-image.png" class="img-responsive img-markdown" /></p>
<p dir="auto">But after enabling WIFI :</p>
<ol>
<li>I rebooted Omega with Ethernet connected, then did ping test it was good working.</li>
<li>After this connected Omega with WIFI also, at this point omega was having both ethernet and WIFI network. Then did ping test again i saw response time got increased. From here i discovered that omega is talking through WIFI not ethernet.</li>
<li>Then i disconnected WIFI and keeping ethernet as it is,  and found ping test not working.<br />
which i feel because Omega is searching WIFI only.</li>
</ol>
<p dir="auto"><strong>How i can change network priority between Ethernet and WIFI. Ethernet need to be at 1st priority. WIFI needed just as fallback network, If ethernet not working then search for WIFI</strong></p>
<p dir="auto">Please response soon, what i should do next<br />
Thanks</p>
]]></description><link>http://community.onion.io/post/20099</link><guid isPermaLink="true">http://community.onion.io/post/20099</guid><dc:creator><![CDATA[Suman kumar Jha]]></dc:creator><pubDate>Sat, 31 Aug 2019 07:37:11 GMT</pubDate></item><item><title><![CDATA[Reply to Making ethernet as primary connectivity on Sat, 31 Aug 2019 15:51:36 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/6569">@Suman-kumar-Jha</a> I think the easiest option will be to set a static ip on eth0, then allow the other interface (probabably apcli0) use dhcp.</p>
<p dir="auto">I don't know any way to set a priority on an interface on OpenWrt, but you could achieve something like this via a hotplug script on interface up and down etc, but a static ip is a much easier method if that will work for your specific task.</p>
<p dir="auto">If you look in /etc/config/network you can set the options on your interface eth0, you can see which options to set by looking at wlan setup.</p>
]]></description><link>http://community.onion.io/post/20100</link><guid isPermaLink="true">http://community.onion.io/post/20100</guid><dc:creator><![CDATA[crispyoz]]></dc:creator><pubDate>Sat, 31 Aug 2019 15:51:36 GMT</pubDate></item><item><title><![CDATA[Reply to Making ethernet as primary connectivity on Sat, 31 Aug 2019 17:30:24 GMT]]></title><description><![CDATA[<p dir="auto">But static IP i can't use it.</p>
<p dir="auto"><strong>ok crispyoz can you tell me if ethernet is active (got IP, pinging works), why omega2 does not go back to ethernet when wifi is disconnected ?</strong></p>
]]></description><link>http://community.onion.io/post/20101</link><guid isPermaLink="true">http://community.onion.io/post/20101</guid><dc:creator><![CDATA[Suman kumar Jha]]></dc:creator><pubDate>Sat, 31 Aug 2019 17:30:24 GMT</pubDate></item><item><title><![CDATA[Reply to Making ethernet as primary connectivity on Sat, 31 Aug 2019 18:41:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/6569">@Suman-kumar-Jha</a> My sense is you are quite inexperienced in this field so I will give you advice and some guidance.</p>
<ol>
<li>
<p dir="auto">My advice<br />
If you always ask someone else to give you a solution, then you might solve your problem more quickly but you'll always have a lot of problems. If you ask for guidance on how to come to a solution then your solution will be arrived at with a whole lot of learning along the way.</p>
</li>
<li>
<p dir="auto">My guidance</p>
</li>
</ol>
<p dir="auto">When an interface comes up or goes down, this hotplug script is executed:</p>
<p dir="auto">/etc/hotplug.d/iface/00-netstate</p>
<p dir="auto">Spend some time reading up on the hotplug infrastructure and you can find your solution. It's just a scripting system that is triggered whenever an interface (or other device) comes up of goes down (or other relevant action). So think of it as a see-saw, if if1 comes up, execute if2 down, if if2 comes up execute if1 down.</p>
<p dir="auto">Don't be daunted by the fact that someone more experienced wrote the exiting script, it was designed to be generic. You need something a bit different, so just write it.</p>
]]></description><link>http://community.onion.io/post/20103</link><guid isPermaLink="true">http://community.onion.io/post/20103</guid><dc:creator><![CDATA[crispyoz]]></dc:creator><pubDate>Sat, 31 Aug 2019 18:41:31 GMT</pubDate></item><item><title><![CDATA[Reply to Making ethernet as primary connectivity on Sat, 31 Aug 2019 21:03:02 GMT]]></title><description><![CDATA[<p dir="auto">crispyoz  Thank you for the response.</p>
<p dir="auto">Yes i am new to this field accepted. Does Omega is for only experienced person ? please tell me.</p>
<p dir="auto">Don't judge me just because i asked you for the help, and listen one more thing till now what ever solution i got from Omega community it was never end to end or complete guideline.<br />
But then also i made good progress on Omega2 by just getting suggestions. I had done mosquitto MQTT and SSL, python based MQTT and SSL.  Made SSL with AWS in python and lot more. This all i created. No body from Omega community given ready made code.</p>
<p dir="auto">I have read almost all post related to my problem on Omega community. From last 3 months i am reading and trying everything. I tried Linkit 7688 then dragino YUN and then started on Omega2.<br />
<strong>Don't ever think that i am sitting and asking everything from Omega team.</strong></p>
<p dir="auto">If you don't want to give response, its ok.   But don't say this things</p>
]]></description><link>http://community.onion.io/post/20106</link><guid isPermaLink="true">http://community.onion.io/post/20106</guid><dc:creator><![CDATA[Suman kumar Jha]]></dc:creator><pubDate>Sat, 31 Aug 2019 21:03:02 GMT</pubDate></item><item><title><![CDATA[Reply to Making ethernet as primary connectivity on Wed, 18 Sep 2019 15:13:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="http://community.onion.io/uid/6569">@Suman-kumar-Jha</a> This thread on the OpenWRT forums seems to cover this same topic - setting the ethernet interface as the default route:<br />
<a href="https://forum.openwrt.org/t/default-route-is-always-wlan0/10548" rel="nofollow">https://forum.openwrt.org/t/default-route-is-always-wlan0/10548</a></p>
<p dir="auto">Try it out and let us know how it goes</p>
]]></description><link>http://community.onion.io/post/20226</link><guid isPermaLink="true">http://community.onion.io/post/20226</guid><dc:creator><![CDATA[Lazar Demin]]></dc:creator><pubDate>Wed, 18 Sep 2019 15:13:34 GMT</pubDate></item><item><title><![CDATA[Reply to Making ethernet as primary connectivity on Fri, 27 Sep 2019 17:20:56 GMT]]></title><description><![CDATA[<p dir="auto"><img src="/assets/uploads/files/1569604657406-e96753b4-50e7-465a-a5a5-ae438d5039ad-image-resized.png" alt="0_1569604720619_e96753b4-50e7-465a-a5a5-ae438d5039ad-image.png" class="img-responsive img-markdown" /></p>
<p dir="auto">Are you saying about this, under eth0 or wan interface of Omega i need to put above two settings ?</p>
]]></description><link>http://community.onion.io/post/20294</link><guid isPermaLink="true">http://community.onion.io/post/20294</guid><dc:creator><![CDATA[Suman kumar Jha]]></dc:creator><pubDate>Fri, 27 Sep 2019 17:20:56 GMT</pubDate></item></channel></rss>