08-18-2016, 11:33 PM
(This post was last modified: 08-19-2016, 02:32 AM by MarkHaysHarris777.)
I ran into a very frustrating yet interesting problem last night when I tried to place two of my PineA64 boards on the same ethernet switch in preparation for the GbE testing I plan to do tomorrow.
Both of my machines had a VERY persistently stubborn mac address ( which belongs to longsleep ):
36:c9:e3:f1:b8:05
I am wondering now how many folks having ethernet problems don't really have an ethernet problem, they just don't have unique mac addresses on their network from the Pine Boards ?? (arp cache nightmare)
Anyway, I tried repeatedly to change the mac addresses of both machines... and they would NOT change... neither of them... for almost four hours.
I changed the mac address in /boot/uEnv.txt , powered off and then did a cold boot. (this on both machines) but when the boot finished both machines still had address 36:c9:e3:f1:b8:05
Believe it or not what I did to correct this was just be persistent... I started waiting longer between poweroff and cold boot... eventually the new address finally 'took' on both machines. When the address finally 'took' on both machines, both machines finally had the correct address in all four primary places:
/boot/uEnv.txt
/proc/cmdline
/sys/class/net/eth0/address
ifconfig
I really feel strongly that this needs to be changed. All Pine Boards need to have an automatic persistent unique mac address on the ethernet port; like any other IP machine interface. Or, there needs to be a very consistent way to set the persistent mac address easily so that multiple Pine Boards on the same switch are guaranteed to have unique mac addys; essential for Pine-Nut clusters !
edit: PS. I suspect that the mac address of choice has something to do with this as well... it may be that I just happened upon a prefix that would work... but took some trial and guessing. But, its looking like the mac address can not be fully ransomized.
Both of my machines had a VERY persistently stubborn mac address ( which belongs to longsleep ):
36:c9:e3:f1:b8:05
I am wondering now how many folks having ethernet problems don't really have an ethernet problem, they just don't have unique mac addresses on their network from the Pine Boards ?? (arp cache nightmare)
Anyway, I tried repeatedly to change the mac addresses of both machines... and they would NOT change... neither of them... for almost four hours.
I changed the mac address in /boot/uEnv.txt , powered off and then did a cold boot. (this on both machines) but when the boot finished both machines still had address 36:c9:e3:f1:b8:05
Believe it or not what I did to correct this was just be persistent... I started waiting longer between poweroff and cold boot... eventually the new address finally 'took' on both machines. When the address finally 'took' on both machines, both machines finally had the correct address in all four primary places:
/boot/uEnv.txt
/proc/cmdline
/sys/class/net/eth0/address
ifconfig
I really feel strongly that this needs to be changed. All Pine Boards need to have an automatic persistent unique mac address on the ethernet port; like any other IP machine interface. Or, there needs to be a very consistent way to set the persistent mac address easily so that multiple Pine Boards on the same switch are guaranteed to have unique mac addys; essential for Pine-Nut clusters !
edit: PS. I suspect that the mac address of choice has something to do with this as well... it may be that I just happened upon a prefix that would work... but took some trial and guessing. But, its looking like the mac address can not be fully ransomized.
marcushh777
please join us for a chat @ irc.pine64.xyz:6667 or ssl irc.pine64.xyz:6697
( I regret that I am not able to respond to personal messages; let's meet on irc! )
please join us for a chat @ irc.pine64.xyz:6667 or ssl irc.pine64.xyz:6697
( I regret that I am not able to respond to personal messages; let's meet on irc! )