PINE64
Multiple Pine64s on Network Fail - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: General Discussion on PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=3)
+--- Thread: Multiple Pine64s on Network Fail (/showthread.php?tid=3218)



Multiple Pine64s on Network Fail - JCMPine64 - 02-05-2017

I have been having a heck of a time trying to get 2 Pine64s to work on the same LAN. 

Router - Verizon ActionTec - I know, I know.  It sucks.

Pine64 1
Hostname: Pine64Server2
Static IP: 192.168.1.100
OS: Ubuntu headless

This works fine.  When I first plug it in after flashing the OS, it comes up as just an address (like 192.168.1.8) or I think it used to come up as "Pine64." I change the hostname (and hosts) and set the static IP and it works great. 

Here's where things get wonky.  When I try to add a second Pine64, flashed with the same OS, two things happen (or don't happen):
Pine 64 2
Hostname: Pine64 (default)
IP: DHCP
OS: Ubuntu headless

When I look on the router, suddenly my original Pine64 at 192.168.1.100 is named "Pine64" and I can't see the new Pine64 listed on the router and I can't Putty into it.

Am I doing something wrong?

Thanks


RE: Multiple Pine64s on Network Fail - MarkHaysHarris777 - 02-05-2017

(02-05-2017, 08:08 PM)JCMPine64 Wrote: I have been having a heck of a time trying to get 2 Pine64s to work on the same LAN. 

Thanks

You may find that both PineA64 units have the same mach address.  rats

... so make the mac address of each machine unique.  Try this in a terminal:

cat  /boot/uEnv.txt

The mach address should begin  with  00:06:dc: xx:xx:xx

Make sure that each mach address is unique : the last three xx:xx:xx can be anything you want, but they must be unique for your network.

The script :  /usr/local/sbin/pine64_eth0-mackeeper.sh

... handles keeping the mach address unique.  You can edit the mach address in /boot/uEnv.txt, or you can delete the address line from /boot/uEnv.txt and the pine64_eth0-mackeeper.sh script will set it.   I prefer to setup the mach address myself and make sure they are unique.


RE: Multiple Pine64s on Network Fail - JCMPine64 - 02-06-2017

How interesting!  I'll give that a try, thanks.