ophub / amlogic-s9xxx-armbian

Support for Armbian in Amlogic, Rockchip and Allwinner boxes. Support a311d, s922x, s905x3, s905x2, s912, s905d, s905x, s905w, s905, s905l, rk3588, rk3568, rk3399, rk3328, h6, etc.
GNU General Public License v2.0
5.8k stars 1.86k forks source link

Having two Amlogic boxes on same network causes network collision type issues #1800

Closed Black6spdZ closed 10 months ago

Black6spdZ commented 10 months ago

have an existing S912 Amlogic box running Armbian and when I start up a second S905x box both have sporadic network connectivity issues similar to an IP conflict even though that is not the issue here. As soon as I unplug the s905x box the network is restored.

ophub commented 10 months ago

Turn off the dhcp allocation function of one of them. If there are multiple devices in a LAN competing for IP allocation, there will be conflicts.

Black6spdZ commented 10 months ago

I thought the network interfaces were client by default? It gets an IP just fine from my DHCP server. Also, if I use a USB ethernet adapter on the second Amlogic box that is fine too.

ophub commented 10 months ago

run: armbian-fix

Black6spdZ commented 10 months ago

doesn't help.. I forgot that I do have a third amlogic s912 box on my network, but it is running LibreElec and doesn't cause any issues.. only when I bring up two running Armbian at a time

Black6spdZ commented 10 months ago

problem is simple.. all armbian flashed amlogic devices are sharing the same MAC.. how is this even possible? This looks promising https://patchwork.kernel.org/project/linux-arm-kernel/patch/20190727194647.15355-3-martin.blumenstingl@googlemail.com/ found this work-around https://forum.libreelec.tv/thread/2139-how-to-change-duplicate-mac-address/?postID=62287#post62287

Black6spdZ commented 10 months ago

attempting to set new u-boot env MAC but:

root@Armbian:~# apt-get reinstall u-boot-tools Reading package lists... Done Building dependency tree... Done Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded. Need to get 171 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 https://deb.debian.org/debian bullseye/main arm64 u-boot-tools arm64 2021.01+dfsg-5 [171 kB] Fetched 171 kB in 0s (543 kB/s)
debconf: delaying package configuration, since apt-utils is not installed (Reading database ... 16082 files and directories currently installed.) Preparing to unpack .../u-boot-tools_2021.01+dfsg-5_arm64.deb ... Unpacking u-boot-tools (2021.01+dfsg-5) over (2021.01+dfsg-5) ... Setting up u-boot-tools (2021.01+dfsg-5) ... root@Armbian:~# fw_printenv -bash: fw_printenv: command not found

Black6spdZ commented 10 months ago

so will we need to manually change the MAC in the future?