"renameX" interface / MAC address conflict

60 views
Skip to first unread message

Sven K.

unread,
Jun 12, 2020, 8:15:33 AM6/12/20
to ClusterHAT
Hi,

Looks like I have some MAC address conflicts ... I tried switching hardware and different images, but I am not able to fix it. 

Pi 1 is working fine!
 
I am using a Pi 4 Model B 4 GB with 4x Pi Zero v1.3 and the "2020-02-13/ClusterCTRL-2020-02-13-full-1-CBRIDGE" image. 

Attached you can find my kern.log file.
Hope you got some ideas.

Thanks,
Sven.

pi@cbridge:~ $ clusterhat status

clusterhat:1

clusterctrl:False

maxpi:4

hat_version:2.3

hat_version_major:2

hat_version_minor:3

hat_size:4

hat_uuid:7a840d46-de0a-44e0-9057-f949d0d5e848

hat_vendor:8086 Consultancy

hat_product_id:0x0004

throttled:0x0

hat_alert:0

hat_hub:1

hat_wp:1

hat_led:1

hat_wplink:0

hat_xra1200p:True

p1:1

p2:1

p3:1

p4:1


pi@cbridge:~ $ ifconfig

br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet 192.168.0.201  netmask 255.255.255.0  broadcast 192.168.0.255

        inet6 2a02:8108:48c0:2e60:7cbf:308e:83ad:975c  prefixlen 64  scopeid 0x0<global>

        inet6 fe80::2b26:823f:6ba7:f476  prefixlen 64  scopeid 0x20<link>

        ether dc:a6:32:99:b9:cd  txqueuelen 1000  (Ethernet)

        RX packets 212552  bytes 312649866 (298.1 MiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 32423  bytes 2247044 (2.1 MiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


brint: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet 172.19.180.254  netmask 255.255.255.0  broadcast 172.19.180.255

        inet6 fe80::1002:17ff:fe06:b185  prefixlen 64  scopeid 0x20<link>

        ether 00:22:82:ff:fe:01  txqueuelen 1000  (Ethernet)

        RX packets 76692  bytes 72506840 (69.1 MiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 159078  bytes 174049006 (165.9 MiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        ether dc:a6:32:99:b9:cd  txqueuelen 1000  (Ethernet)

        RX packets 221394  bytes 316517684 (301.8 MiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 32518  bytes 2259830 (2.1 MiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


ethupi1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet6 fe80::222:82ff:feff:fe01  prefixlen 64  scopeid 0x20<link>

        ether 00:22:82:ff:fe:01  txqueuelen 1000  (Ethernet)

        RX packets 76725  bytes 72820208 (69.4 MiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 159925  bytes 181859742 (173.4 MiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


ethupi252: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet6 fe80::222:82ff:feff:fefc  prefixlen 64  scopeid 0x20<link>

        ether 00:22:82:ff:fe:fc  txqueuelen 1000  (Ethernet)

        RX packets 70  bytes 5424 (5.2 KiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 545  bytes 102803 (100.3 KiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


ethupi1.10: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet6 fe80::222:82ff:feff:fe01  prefixlen 64  scopeid 0x20<link>

        ether 00:22:82:ff:fe:01  txqueuelen 1000  (Ethernet)

        RX packets 76635  bytes 72502584 (69.1 MiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 159034  bytes 174043802 (165.9 MiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


ethupi252.10: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet6 fe80::222:82ff:feff:fefc  prefixlen 64  scopeid 0x20<link>

        ether 00:22:82:ff:fe:fc  txqueuelen 1000  (Ethernet)

        RX packets 57  bytes 4256 (4.1 KiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 75  bytes 9060 (8.8 KiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536

        inet 127.0.0.1  netmask 255.0.0.0

        inet6 ::1  prefixlen 128  scopeid 0x10<host>

        loop  txqueuelen 1000  (Local Loopback)

        RX packets 8  bytes 312 (312.0 B)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 8  bytes 312 (312.0 B)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


rename10: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet 169.254.226.102  netmask 255.255.0.0  broadcast 169.254.255.255

        inet6 fe80::a10c:4ff:2848:1d1  prefixlen 64  scopeid 0x20<link>

        ether 00:22:82:ff:fe:fc  txqueuelen 1000  (Ethernet)

        RX packets 141  bytes 5276 (5.1 KiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 32  bytes 6556 (6.4 KiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


rename11: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet 169.254.114.61  netmask 255.255.0.0  broadcast 169.254.255.255

        inet6 fe80::a10c:4ff:2848:1d1  prefixlen 64  scopeid 0x20<link>

        ether 00:22:82:ff:fe:fc  txqueuelen 1000  (Ethernet)

        RX packets 138  bytes 5180 (5.0 KiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 29  bytes 6160 (6.0 KiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

kern.log.rtf

Chris Burton

unread,
Jun 12, 2020, 8:33:06 AM6/12/20
to ClusterHAT
Hi, 
Looks like I have some MAC address conflicts ... I tried switching hardware and different images, but I am not able to fix it. 

When you're using usbboot you need to configure them to set the hostname/MAC address/etc. using "usbboot-init X" where X is the pX number, it looks like you've done p1 but the others are still using the default MAC 00:22:82:ff:fe:fc, so you'll need to power them off and run "usbboot-init 2;usbboot-init 3;usbboot-init 4" and then p2-p4 should be OK too - I'll update the instructions to make this clearer.

Chris.

Sven K.

unread,
Jun 26, 2020, 4:50:31 PM6/26/20
to ClusterHAT
Thanks, my first HAT is working perfectly.

I like to add a second ClusterHAT to my network but again I am running into some issues using cbridge image and no SD cards.

The first HAT is configured as p1-p4 the second is p5-p8, but it's not working.
I tried the second HAT with p1-p4 configuration (first HAT off) and it was working fine.

What am I missing?
Do I have to change something else?

Attached you can find my 2nd HATs kern.log file.

Thanks,
Sven.


1. HAT:

pi@pi01:~ $ clusterhat status

clusterhat:1

clusterctrl:False

maxpi:4

hat_version:2.3

hat_version_major:2

hat_version_minor:3

hat_size:4

hat_uuid:7a840d46-de0a-44e0-9057-f949d0d5e848

hat_vendor:8086 Consultancy

hat_product_id:0x0004

throttled:0x0

hat_alert:0

hat_hub:1

hat_wp:1

hat_led:0

hat_wplink:0

hat_xra1200p:True

p1:1

p2:1

p3:1

p4:1

pi@pi01:~ $ ifconfig

br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet 192.168.0.220  netmask 255.255.255.0  broadcast 192.168.0.255

        inet6 2a02:8108:48c0:2e60:cb39:a27e:5267:e92d  prefixlen 64  scopeid 0x0<global>

        inet6 fe80::6f16:7c81:8b45:d2f9  prefixlen 64  scopeid 0x20<link>

        ether dc:a6:32:99:b9:cd  txqueuelen 1000  (Ethernet)

        RX packets 10791768  bytes 1213507534 (1.1 GiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 9803889  bytes 1295913416 (1.2 GiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


brint: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet 172.19.180.254  netmask 255.255.255.0  broadcast 172.19.180.255

        inet6 fe80::f8de:18ff:fea6:51f7  prefixlen 64  scopeid 0x20<link>

        ether 00:22:82:ff:fe:01  txqueuelen 1000  (Ethernet)

        RX packets 45029105  bytes 33413760860 (31.1 GiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 27236928  bytes 4676052406 (4.3 GiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        ether dc:a6:32:99:b9:cd  txqueuelen 1000  (Ethernet)

        RX packets 30043917  bytes 2938439864 (2.7 GiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 29155027  bytes 622936084 (594.0 MiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


ethupi1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet6 fe80::222:82ff:feff:fe01  prefixlen 64  scopeid 0x20<link>

        ether 00:22:82:ff:fe:01  txqueuelen 1000  (Ethernet)

        RX packets 9902411  bytes 1408115429 (1.3 GiB)

        RX errors 1  dropped 0  overruns 0  frame 1

        TX packets 9110722  bytes 3267735080 (3.0 GiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


ethupi2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet6 fe80::222:82ff:feff:fe02  prefixlen 64  scopeid 0x20<link>

        ether 00:22:82:ff:fe:02  txqueuelen 1000  (Ethernet)

        RX packets 10789175  bytes 5899117329 (5.4 GiB)

        RX errors 16  dropped 0  overruns 0  frame 16

        TX packets 9883798  bytes 3384011039 (3.1 GiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


ethupi3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet6 fe80::222:82ff:feff:fe03  prefixlen 64  scopeid 0x20<link>

        ether 00:22:82:ff:fe:03  txqueuelen 1000  (Ethernet)

        RX packets 11628371  bytes 6240603719 (5.8 GiB)

        RX errors 14  dropped 0  overruns 0  frame 14

        TX packets 10416265  bytes 3635441065 (3.3 GiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


ethupi4: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet6 fe80::222:82ff:feff:fe04  prefixlen 64  scopeid 0x20<link>

        ether 00:22:82:ff:fe:04  txqueuelen 1000  (Ethernet)

        RX packets 408694  bytes 84642104 (80.7 MiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 1753009  bytes 468171143 (446.4 MiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


ethupi1.10: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet6 fe80::222:82ff:feff:fe01  prefixlen 64  scopeid 0x20<link>

        ether 00:22:82:ff:fe:01  txqueuelen 1000  (Ethernet)

        RX packets 4046019  bytes 616184104 (587.6 MiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 2638690  bytes 592625826 (565.1 MiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


ethupi2.10: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet6 fe80::222:82ff:feff:fe02  prefixlen 64  scopeid 0x20<link>

        ether 00:22:82:ff:fe:02  txqueuelen 1000  (Ethernet)

        RX packets 6216272  bytes 5256446900 (4.8 GiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 3701372  bytes 595238838 (567.6 MiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


ethupi3.10: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet6 fe80::222:82ff:feff:fe03  prefixlen 64  scopeid 0x20<link>

        ether 00:22:82:ff:fe:03  txqueuelen 1000  (Ethernet)

        RX packets 6673076  bytes 5538457770 (5.1 GiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 3950755  bytes 631412794 (602.1 MiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


ethupi4.10: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet6 fe80::222:82ff:feff:fe04  prefixlen 64  scopeid 0x20<link>

        ether 00:22:82:ff:fe:04  txqueuelen 1000  (Ethernet)

        RX packets 388174  bytes 81549412 (77.7 MiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 420497  bytes 165689948 (158.0 MiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536

        inet 127.0.0.1  netmask 255.0.0.0

        inet6 ::1  prefixlen 128  scopeid 0x10<host>

        loop  txqueuelen 1000  (Local Loopback)

        RX packets 89  bytes 6212 (6.0 KiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 89  bytes 6212 (6.0 KiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


2. HAT


pi@LEGOpi06:~ $ clusterhat status

clusterhat:1

clusterctrl:False

maxpi:4

hat_version:2.4

hat_version_major:2

hat_version_minor:4

hat_size:4

hat_uuid:de91a4ce-ac7f-11e9-a2a3-2a2ae2dbcce4

hat_vendor:8086 Consultancy

hat_product_id:0x0004

throttled:0x0

hat_alert:0

hat_hub:1

hat_wp:1

hat_led:1

hat_wplink:0

hat_xra1200p:True

p1:1

p2:1

p3:1

p4:1

pi@LEGOpi06:~ $ ifconfig

br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet 192.168.0.232  netmask 255.255.255.0  broadcast 192.168.0.255

        inet6 fe80::f213:de5d:1082:156a  prefixlen 64  scopeid 0x20<link>

        inet6 2a02:8108:48c0:2e60:e0d8:4db8:d203:8ca  prefixlen 64  scopeid 0x0<global>

        ether dc:a6:32:31:d4:bc  txqueuelen 1000  (Ethernet)

        RX packets 221267  bytes 313885256 (299.3 MiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 35033  bytes 2619561 (2.4 MiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


brint: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet 172.19.180.254  netmask 255.255.255.0  broadcast 172.19.180.255

        inet6 fe80::fce4:21ff:feb2:1a0d  prefixlen 64  scopeid 0x20<link>

        ether fe:e4:21:b2:1a:0d  txqueuelen 1000  (Ethernet)

        RX packets 0  bytes 0 (0.0 B)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 41  bytes 4948 (4.8 KiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        ether dc:a6:32:31:d4:bc  txqueuelen 1000  (Ethernet)

        RX packets 234233  bytes 318256072 (303.5 MiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 35033  bytes 2619561 (2.4 MiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536

        inet 127.0.0.1  netmask 255.0.0.0

        inet6 ::1  prefixlen 128  scopeid 0x10<host>

        loop  txqueuelen 1000  (Local Loopback)

        RX packets 0  bytes 0 (0.0 B)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 0  bytes 0 (0.0 B)

kern.log.txt

Chris Burton

unread,
Jun 26, 2020, 5:20:22 PM6/26/20
to ClusterHAT
Hi, 
I like to add a second ClusterHAT to my network but again I am running into some issues using cbridge image and no SD cards.

The first HAT is configured as p1-p4 the second is p5-p8, but it's not working.
I tried the second HAT with p1-p4 configuration (first HAT off) and it was working fine.

What am I missing?

This isn't as simple as it should be yet to "rename" a usbboot node.

If you're not planning on moving the USB cable to the Cluster HAT around I'd try this.

Boot with the Cluster HAT USB cable connected where you want it to be.

Run this so it doesn't remove the USB path changes below when it next runs init on boot (it normally detects which USB port the Cluster HAT is plugged into and sets the symlinks up again).

sudo sed -i "s/LINK=1/LINK=0/" /etc/default/clusterctrl

Move (if you already have an install) or extract the usbboot tar.xz file into the /var/lib/clusterctrl/nfs/p5 to p8 directories and run "usbboot-init 5" and 6 to 8 as normal.

Look at the current USB path <> directory links.

ls -l /var/lib/clusterctrl/boot/

And you should see something like this.

lrwxrwxrwx 1 root root    33 May 27 08:38 1-1.1.1 -> /var/lib/clusterctrl/nfs/p4/boot/
lrwxrwxrwx 1 root root    33 May 27 08:38 1-1.1.2 -> /var/lib/clusterctrl/nfs/p3/boot/
lrwxrwxrwx 1 root root    33 May 27 08:38 1-1.1.3 -> /var/lib/clusterctrl/nfs/p2/boot/
lrwxrwxrwx 1 root root    33 May 27 08:38 1-1.1.4 -> /var/lib/clusterctrl/nfs/p1/boot/

You'll need to move these to point to the p5-p8 directories

So for p1 -> p5

sudo rm /var/lib/clusterctrl/boot/1-1.1.4
sudo ln -s /var/lib/clusterctrl/nfs/p5/boot/ /var/lib/clusterctrl/boot/1-1.1.4

And repeat for p2 -> p6, p3 -> p7, p4 -> p8.

Let me know if you have any problems.

Chris.





Reply all
Reply to author
Forward
0 new messages