On 03/26/2010 03:28 PM, Scott Howard wrote:
> This is driving me crazy.  I install Ubuntu Server on a portable drive
> at home.  Fire it up on a wired network and check ifconfig.  It
> dutifully gives me the internal ip address from my router and is able to
> access the internet.  I then dutifully reboot the machine turning it off
> after everything is killed but before the reboot starts.
>
> The scene changes to my office where I turn on a different machine with
> no drives but the portable drive on the USB port.  Ubuntu server boots
> up and works just fine until I sudo ifconfig.  The internal loop shows
> 127.0.0.0 shows but the wired network ip address does not.
> Init.d/networking restart gets an eth0 no such device message.
>
> Ubuntu LiveCd on the office machine get the network and internet just
> fine.

Hi Scott,

I feel your pain, and have run into this before moving a CF disk between 
different embedded devices.

The problem is with udev. When your Linux system boots, the udev 
subsystem enumerates your hardware and sets up some dynamic rules files. 
What it's doing is noticing that the MAC address of your ethernet device 
has changed, and rather than overwriting it, it is creating a new ethX 
device. Your networking scripts, on the other hand, are trying to bring 
up eth0 specifically.

Look in your /etc/udev/rules.d/ directory for a file named 
"persistent-net.rules" or thereabouts. If inside that file you see 
entries for multiple ethernet interfaces (e.g, eth0, eth1, eth2, etc), 
and you only have one wired NIC in each of your machines, then you have 
confirmed that this is the source of the problem.

The solution I've used (which may not be the Right Way to do it) is to 
delete this rules file and reboot. The file will get regenerated again 
and will use your current NIC as eth0 again.

If you're only moving this disk between two different computers, you 
could also go ahead and create a DHCP connection for eth1. However, if 
you're moving the disk between N computers, the deletion route is 
probably simpler.

Let me know if this works for you.

Scott

-- 
Scott Garman
sgarman at zenlinux dot com
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to