perrpello
Posts: 2
Joined: Thu Aug 20, 2015 9:46 pm

Raspberry Pi switched ethernet interfaces

Thu Aug 20, 2015 9:52 pm

So on my raspberry pi the network interface was set as eth0. I created an image, put the new image on a new pi and the networking port got set up as eth7. I switched the image to a different pi and the networking port got set up as eth3.

Does anyone have any ideas as to what is going on?

perrpello
Posts: 2
Joined: Thu Aug 20, 2015 9:46 pm

Re: Raspberry Pi switched ethernet interfaces

Thu Aug 20, 2015 11:33 pm

I believe I found the core of the problem and it exists in /etc/udev/rules.d/7-persistent-net.rules.

I am still unsure of a permanent fix though,
removing the file gives a temporary one

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: Raspberry Pi switched ethernet interfaces

Fri Aug 21, 2015 12:01 am

i read http://unix.stackexchange.com/questions ... -net-rules that it happens after cloning systems like with having 2 times the same MAC on a network??

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Raspberry Pi switched ethernet interfaces

Fri Aug 21, 2015 5:53 am

I guess you're not using Raspbian? In Debian the default is to assign a new interface name for every new bit of hardware or MAC address found.

In the RFP Raspbian image that has been disabled because it is very likely that SD cards will be used on many different Raspis in the classroom and they do want them to work "out of the box".

Return to “Troubleshooting”