I did discover the solution to this problem a long time ago, but never
posted the solution. The issue is that udev remembers attached network
devices based on their MAC address. Whoever created the SD image at
Technologic didn't delete the udev line that defines their network
device as eth0, so when udev picks up the adapter on a different 7800
board, it adds it as eth1 rather than eth0.
If you want to switch the device back to eth0, remove the undesired
entry in /etc/udev/rules.d/70-persistent-net.rules
This is the stale line left in by TS:
# Unknown net device (/class/net/eth0) (mv643xx_eth_port)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*",
ATTR{address}=="00:d0:69:42:71:45", ATTR{type}=="1", KERNEL=="eth*",
NAME="eth0"
Then you can then either change the line with your network adapter to
eth0, or just delete the line entirely and let udev add it to the file
again.
Robert
> -----Original Message-----
> From: On
> Behalf Of foobarbecue
> Sent: Tuesday, November 08, 2011 8:15 PM
> To:
> Subject: [ts-7000] Re: Losing eth0 Interface on 7800
>
> Just ran into this problem myself. It seems that the network interface
> is now eth1, so I just changed eth0 to eth1 in /etc/network/interfaces
> . No idea why this would happen, but it definitely happened after I
set
> up booting straight to SD card rather than via the busybox thing.
>
> Aaron
>
> --- In "Robert Joslyn" <> wrote:
> >
> > After playing with it more, it seems that it's not related to
editing
> > /etc/network/interfaces. If I boot into the fresh image, networking
> > works. As soon as I reboot the board, it'll lose eth0 as mentioned
> > below. What could cause it to work on the first boot, but not
> > subsequent boots?
> >
> >
> >
> > Robert
> >
> >
> >
> >
> >
> > From: On
> > Behalf Of Robert Joslyn
> > Sent: Tuesday, February 08, 2011 10:57 AM
> > To:
> > Subject: [ts-7000] Losing eth0 Interface on 7800
> >
> >
> >
> >
> >
> >
> >
> >
> > I thought I'd try out the new dd image for the TS-7800 on the FTP
> site
> > (2G-mSD-7800-10-10-10.dd.gz), but have been having some trouble with
> > the network. Booting the new image works great, but if I modify
> > /etc/network/interfaces in any way, eth0 will disappear when
> > restarting the network or rebooting. For example, this is what the
> > board says on boot now:
> >
> >
> >
> > Setting up networking....
> >
> > Configuring network interfaces...Internet Systems Consortium DHCP
> > Client
> > V3.1.1
> >
> > Copyright 2004-2008 Internet Systems Consortium.
> >
> > All rights reserved.
> >
> > For info, please visit http://www.isc.org/sw/dhcp/
> >
> >
> >
> > SIOCSIFADDR: No such device
> >
> > eth0: E RROR while getting interface flags: No such device
> >
> > eth0: ERROR while getting interface flags: No such device
> >
> > Bind socket to interface: No such device
> >
> > Failed to bring up eth0.
> >
> > done.
> >
> >
> >
> > It seems that eth0 has disappeared, and ifconfig only shows the
> > loopback device. Putting the config file back to the default
> settings
> > (192.168.0.50, etc) does not fix the problem. Any ideas?
> >
> >
> >
> > Robert
> >
>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|