Hello
I have maybe a trivial question of network prioritization under linux :
I have my Rpi which is in Wifi (sufficient connection for streaming), and I connected my PC to my Rpi (to have a correct transfer rate between the 2; like 30 mo/s, for transferring files of several GB easily). It works perfectly, except that I have a prioritization conflict between the 2 connections if I restart the Rpi.
Let me explain in detail:
What I did to make my PC/Rpi connection via ethernet "reliable", is to make the 'ethernet' address of the Rpi static (see https://www.ask-sheldon.com/static-ip-on-libreelec/).
And it works perfectly.
The only problem is that if I restart the Rpi, I no longer have access to the Internet.
The only way to solve it is to temporarily disable the wired connection via the libreelec menu. And there, it works = I have internet. And I can reactivate the wired connection right after, which also works.
It seems that when I restart, the 2 connections of the Rpi (wifi for internet, and ethernet for the connection to my PC) are interfering with each other, and that I have to deactivate the ethernet, so that the conflict is resolved.
Looking around, I found a post that I think describes my problem well:
SOLVED: Raspberry Pi2 - wifi and wired connection - Can't get both working at same time.
I have both connections setup with static IP addresses.
After a reboot, only the wired connection works. In order to get everything working, I need to disable both network interfaces through the Libreelec Addon and then re-enable them.
This is the only way I can get both network connections working at the same time.
Is there a…
But the proposed solution (which is simple and that I manage to implement), does not change anything.
- Is there an alternative command that could work better? (based on systemd, or other tricks)
- Is there anything else I need to check? I thought about the idea of having to fix my ip for wifi on my Rpi, but I don't know if that would change anything (and more importantly, I think it does, since this IP address has been fixed for years)
Any idea ?
Thanks !
Arthur