XU4 Big Data Cluster - none of my nodes have eth0

Moderators: odroid, mdrjr

XU4 Big Data Cluster - none of my nodes have eth0

Unread postby mrmur » Sun Nov 12, 2017 3:14 pm

First time posting here, and I'm new to this. Quick background: I'm making a four node XU4 cluster running Ubuntu 14.04.1 LTS (per DIY Big Data's series: http://diybigdata.net/2016/06/configuring-the-odroid-xu4-operating-system/). When configuring the operating system on the master node and calling ifconfig -a, I found it odd that eth0 didn't show up:

Code: Select all
odroid@master:~$ ifconfig -a
eth1      Link encap:Ethernet  HWaddr 00:1e:06:30:bd:43 
          inet addr:192.168.1.188  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:15170 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1621 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2405439 (2.4 MB)  TX bytes:163025 (163.0 KB)

eth2      Link encap:Ethernet  HWaddr 00:0e:c6:d9:d3:72 
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

ip6tnl0   Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 
          NOARP  MTU:1452  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:300 errors:0 dropped:0 overruns:0 frame:0
          TX packets:300 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:25488 (25.4 KB)  TX bytes:25488 (25.4 KB)

sit0      Link encap:IPv6-in-IPv4 
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


Even after running through creating and editing the file contents for eth0, I still can't get it to show up. If it helps, I've made it to the shutdown portion of the series: http://diybigdata.net/2016/06/configuring-dhcp-and-nat-for-odroid-xu4-cluster/

I've Googled this quite endlessly and can't seem to get an answer that I think would satisfy my problem. Any help's greatly appreciated.
mrmur
 
Posts: 4
Joined: Wed Nov 01, 2017 11:51 am
languages_spoken: english
ODROIDs: XU4 x 4

Re: XU4 Big Data Cluster - none of my nodes have eth0

Unread postby mad_ady » Sun Nov 12, 2017 4:24 pm

You should switch to a more recent image (16.04) with kernel 4.9. 14.04 is no longer supported.
User avatar
mad_ady
 
Posts: 3842
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2

Re: XU4 Big Data Cluster - none of my nodes have eth0

Unread postby mrmur » Sun Nov 12, 2017 11:31 pm

mad_ady wrote:You should switch to a more recent image (16.04) with kernel 4.9. 14.04 is no longer supported.


Thanks, I'll give that a shot.
mrmur
 
Posts: 4
Joined: Wed Nov 01, 2017 11:51 am
languages_spoken: english
ODROIDs: XU4 x 4

Re: XU4 Big Data Cluster - none of my nodes have eth0

Unread postby adeuring » Sun Nov 12, 2017 11:57 pm

mrmur, does your XU4 perhaps have a file /etc/udev/rules.d/70-persistent-net.rules? If so, it assigns fixed network interface names (i.e., eth0, eth1... or wlan0, wlan1...) to each newly found interface. The interfaces are identified by their MAC address.

And: Did you use the SD card / emmc module from your master node in another XU4 before?

If so, the interface of the other XU4 should be assigned to the name eth0 in 70-persistent-net.rules.

This mechanism is intended to ensure that each interface on machines with two or more network interfaces is assigned to the same name, regard of the detection sequence. That's very convenient when on a machine with two or more USB/WLAN or USB/ethernet adapters, but it also avoids a mess should a new kernel version detect PCI ethernet interfaces in another sequence than before.

But it can be a bit confusing on machines with only one interface: The mainboard of my main work laptop, running Ubuntu 14.04 at that time, died at some time, so I moved the SSD into another laptop. On the dead laptop, the ethernet interface was eth0, on the spare laptop it was eth1. When I got the first laptop back from repair with a new mainboard and put the SSD back into it, its ethernet interface appeared as eth2.
adeuring
 
Posts: 46
Joined: Sun Jul 09, 2017 9:50 pm
languages_spoken: english

Re: XU4 Big Data Cluster - none of my nodes have eth0

Unread postby mrmur » Mon Nov 13, 2017 1:29 am

mrmur, does your XU4 perhaps have a file /etc/udev/rules.d/70-persistent-net.rules? If so, it assigns fixed network interface names (i.e., eth0, eth1... or wlan0, wlan1...) to each newly found interface. The interfaces are identified by their MAC address.


Thanks for the reply. Yes. I took a look at it and eth0 is present with a MAC address. I'm more confused as to why it doesn't show up on the ifconfig -a return. The reason for me bring interested in this USB port is because I have an ethernet dongle attached to it that's connecting the cluster to my home router.

And: Did you use the SD card / emmc module from your master node in another XU4 before?

Nope. My emmc module has been with this node only.
mrmur
 
Posts: 4
Joined: Wed Nov 01, 2017 11:51 am
languages_spoken: english
ODROIDs: XU4 x 4

Re: XU4 Big Data Cluster - none of my nodes have eth0

Unread postby adeuring » Mon Nov 13, 2017 3:58 am

mrmur wrote:Thanks for the reply. Yes. I took a look at it and eth0 is present with a MAC address. I'm more confused as to why it doesn't show up on the ifconfig -a return. The reason for me bring interested in this USB port is because I have an ethernet dongle attached to it that's connecting the cluster to my home router.


Oh, I missed that you are using an ethernet dongle, and that actually two interfaces appear in "ifconfig -a". Anyway, is the interface with the MAC address that is assigned to eth0 in 70-persistent-net.rules currently connected to the board? (that would mean that three interfaces are connected to your XU4, the two listed in "ifconfig -a", and the missing eth0. If so, it would really be a bug that the interface does not appear in "ifconfig -a", but if you had it previously connected to the board, this just means that the interface was the first one seen by the Ubuntu installation on the emmc card.

If the latter happened and if the numbering is really annoying or if it makes some kind of scripting too cumbersome, simply edit the file 70-persistent-net.rules: delete the line that assigns eth0 to a no longer attached dongle, and change the names for the still attached interfaces to eth0 and eth1. (BTW, eth1 in your installation seems to be the on-board interface of the XU4 – the first three MAC bytes (vendor ID) ar the same as on my XU4.)
adeuring
 
Posts: 46
Joined: Sun Jul 09, 2017 9:50 pm
languages_spoken: english


Return to Projects

Who is online

Users browsing this forum: No registered users and 6 guests