Benjamin Budts wrote: > Gregory Haskins wrote: >> On Tue, 2007-07-03 at 11:43 +0200, Benjamin Budts wrote: >> >>> 3* When I specify a mac address for my debian virtual machine eth0 >>> changes to eth3 ... very very weird... it's not that bad, i just changed >>> my interfaces config file from eth0 to eth3, but it's a bit weird >>> >> Many linux distros support persistent naming these days. Therefore, >> there is some record that in the past eth0 had mac X. Now it that sees >> an interface with mac Y, it assumes its a new interface and renames it >> something unique. >> >> I am assuming this is the behavior you are seeing. >> >> > Aah that would explain why i'm having eth3... I started it up 2 or 3 > times with another mac as well, so he cached it probably like you said... > > thx for that !
udev manages this.
each time you start udev, it executes
/etc/udev/rules.d/z45_persistent-net-generator.rules that generates eth(X)
definitions according MAC address. A new MAC address creates a new eth(X+1)
interface.
I don't know if it is clean, but to avoid this behaviour, I remove
/etc/udev/rules.d/z45_persistent-net-generator.rules (which is a link).
If you only want to clean this, you can remove only the file
/etc/udev/rules.d/z25_persistent-net.rules which will be re-generated by
z45_persistent-net-generator.rules at next reboot (or udev restart):
rm /etc/udev/rules.d/z25_persistent-net.rules
invoke-rc.d udev stop
invoke-rc.d udev start
Regards,
Laurent
--
------------- [EMAIL PROTECTED] --------------
"Any sufficiently advanced technology is
indistinguishable from magic." - Arthur C. Clarke
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ kvm-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/kvm-devel
