Hi,
all is in the title : I'm trying to build an network of pcp, each
running on a RPI zero.

These RPIs have no WiFi, so they have a USB to Ethernet adapter.

The issue is that, each adapter has the same MAC address (!). After
searching in forums this seems to be rather common with cheap adapters.
This disturbs of course the Ethernet switch that connects all the RPIs.

I managed to get the system to work, by adding on each RPI a command
executed at boot time (in /opt/bootlocal.sh) which sets the adapter MAC
address :
sudo ifconfig eth0 hw ether NEW_MAC_ADDRESS

The NEW_MAC_ADDRESS is different for each RPI.
I've also put this command in the user commands (pcp menu, Tweaks/User
commands).

These tricks are not fully stable : sometimes I have to start a RPI
twice, because at first boot the adapter gets its original MAC address
and not the new one.
I've also tried to set the MAC address from the 'Squeezelite Settings'
in the pcp menu, but this doesn't change the address (maybe it's only
for WiFi connection ?).

I consider 2 options :
- replace my adapters with standard compliant ones (so with a different
MAC address for each adapter),
- replace my Ethernet switch by a managed switch (seems that with a
managed switch I could set the IP address of each connected device, from
it's port number on the switch).
But a software solution is preferred.

Maybe my command (added in /opt/bootlocal.sh) is too late in the boot
process.
Any suggestion is welcome.

Claude


------------------------------------------------------------------------
ClaudeBoulard's Profile: http://forums.slimdevices.com/member.php?userid=68413
View this thread: http://forums.slimdevices.com/showthread.php?t=114648

_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/discuss

Reply via email to