Re: [gentoo-user] Problems with udev and network cards changing device name
On 3/22/07, Jonathan Gill [EMAIL PROTECTED] wrote: Hi. Ive got a weird problem here and hoping someone can give me a solution, or point me to some docs that show how to resolve this. I have a system that I have built that I use as a base for all my other boxes. (think stage 4) I tar it up, boot the new box on a livecd, and untar it after mounting up the drive on /mnt/gentoo To tar it up, I boot on a live cd, mount the partitions as needed (root and boot) and then tar with cjpf the whole thing. Once ive set the bootloader up and rebooted, it moves the network cards from eth0 and eth1 to eth2 and eth3 (and its just moved them to eth4 and eth5 on a new installation!) What can I do to make sure it comes up as eth0 and eth1 each time? I use a similar procedure to install many computers with same hardware (just use dd instead of tar), and had the same problem. Then I find that setting RC_COLDPLUG=no in /etc/conf.d/rc.conf disables the use of /etc/udev/rules.d/70-persistent-???-rules so the hardware is detected again on boot. Then you can enable COLDPLUG safely. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Problems with udev and network cards changing device name
On Thursday 22 March 2007, Neil Bothwick [EMAIL PROTECTED] wrote about 'Re: [gentoo-user] Problems with udev and network cards changing device name': Delete /etc/udev/rules.d/70-persistent-net.rules It won't come back next time udev is installed? This associated network interfaces with MAC addresses, so the cards come up the same way each time. your problem is caused by the file on the new box containing the MAC addresses of the cards on the original box, so it creates two more. A similar thing happens if you replace a network card. Delete the file and it starts again at zero. A little off-topic, but the recent addition of this file, along with the matching persistent-net-generator rules caused me some grief. I know that MAC addresses are supposed to be suitable as a way to identify network cards, but everyone also knows that they can be changed easily. In fact, I'm lucky enough that both the built-in interfaces on my MB have invalid MACs (FF:FF:FF:FF:FF:FF and FF:FF:FF:FF:00:00) so the kernel assigns them random MAC addresses. I assign them fixed MACs (vendor:FA:CA:DE) and (vendor:EF:FA:CE) using the macchanger features of Gentoo's net init script. This had worked since I got the MB, and wasn't something I really wanted to change. With the new udev scripts in place, the pair of interfaces gradually increased their number to eth10 and eth11 (rebooting due to unrelated issues), which made my init scripts so longer run and left me manually starting the interfaces (not fun). I didn't want to delete the files, although I didn't need them, under the fear that they'd just keep coming back. The persistent-net rules script looked quite editable, so I (finally) learned how to write my own, useful udev rules, so force the identification I've always known and loved (ethX by PCI device number). -- Boyd Stephen Smith Jr. ,= ,-_-. =. [EMAIL PROTECTED] ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.org/ \_/ New GPG Key! Old key expires 2007-03-25. Upgrade NOW! pgpVtew5gE31y.pgp Description: PGP signature
Re: [gentoo-user] Problems with udev and network cards changing device name
On Thu, 22 Mar 2007 16:04:16 -0500, Boyd Stephen Smith Jr. wrote: Delete /etc/udev/rules.d/70-persistent-net.rules It won't come back next time udev is installed? Yes it will, but with the correct information. the problem is that the old file had allocated eth0 and eth1 to MAC addresses not present in that machine. It will be recreated with correct MAC addresses for eth0 and eth1, so that the two cards will always be named the same way on each boot. I can see the reason for doing this, if you have two network cards it means they never get swapped over, without having to mess around with module loading order (which is an unreliable hack anyway). -- Neil Bothwick She's fine, upstanding, and wonderful laying down. signature.asc Description: PGP signature
[gentoo-user] Problems with udev and network cards changing device name
Hi. Ive got a weird problem here and hoping someone can give me a solution, or point me to some docs that show how to resolve this. I have a system that I have built that I use as a base for all my other boxes. (think stage 4) I tar it up, boot the new box on a livecd, and untar it after mounting up the drive on /mnt/gentoo To tar it up, I boot on a live cd, mount the partitions as needed (root and boot) and then tar with cjpf the whole thing. Once ive set the bootloader up and rebooted, it moves the network cards from eth0 and eth1 to eth2 and eth3 (and its just moved them to eth4 and eth5 on a new installation!) What can I do to make sure it comes up as eth0 and eth1 each time? Im guessing its a udev problem, but could be anything else. udev version is - 104-r12 baselayout is version - 1.12.9 kernel is gentoo-sources 2.6.19-gentoo-r5 Many thanks for any help Jonathan -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Problems with udev and network cards changing device name
On Thu, 22 Mar 2007 22:56:43 +0800, Jonathan Gill wrote: To tar it up, I boot on a live cd, mount the partitions as needed (root and boot) and then tar with cjpf the whole thing. Once ive set the bootloader up and rebooted, it moves the network cards from eth0 and eth1 to eth2 and eth3 (and its just moved them to eth4 and eth5 on a new installation!) Delete /etc/udev/rules.d/70-persistent-net.rules This associated network interfaces with MAC addresses, so the cards come up the same way each time. your problem is caused by the file on the new box containing the MAC addresses of the cards on the original box, so it creates two more. A similar thing happens if you replace a network card. Delete the file and it starts again at zero. -- Neil Bothwick Windows Error #05: Nonexisent error. This cannot really be happening signature.asc Description: PGP signature
Re: [gentoo-user] Problems with udev and network cards changing device name
Jonathan Gill wrote: Once ive set the bootloader up and rebooted, it moves the network cards from eth0 and eth1 to eth2 and eth3 (and its just moved them to eth4 and eth5 on a new installation!) What can I do to make sure it comes up as eth0 and eth1 each time? Delete /etc/udev/rules.d/70-persistent-net.rules. It increments the eth* device number whenever the mac address changes. I got stung by this on a VDS. ;) Be lucky, Neil -- gentoo-user@gentoo.org mailing list