Greetings UMLers;

I am booting a custom 2.6.24.4 UML kernel, running a debian etch guest
created using debootstrap.  I am booting using the kernel command
line:

root=/dev/ubda ubd0=./etch.rootfs ubd1=./etch.swapfs mem=128M
eth0=tuntap,,,192.168.23.5

However, the network interface that gets created isn't eth0 - it's
ethN, where N increments every time I boot the guest (I'm now on
eth19).  This prevents the normal boot-time network config from
running properly.  Now I can bugger about with a custom script that
uses something like ifconfig `ifconfig -a | grep eth | awk '{print
$1}'` ... but it seems there must be a better way, and in any case I
want to use more than one network device on some of my guests.

I'm not sure what's causing this, but I notice this line in dmesg:

[42949373.660000] Choosing a random ethernet address for device eth0

If it's picking a different mac address each boot, does this result in
the kernel thinking it's a different device and hence assigning it a
different name?  How do I stop it doing this?

Cheers,

W

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to