From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1HNoiV-0007Wq-1T for garchives@archives.gentoo.org; Sun, 04 Mar 2007 11:17:27 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l24BFdX1028624; Sun, 4 Mar 2007 11:15:39 GMT Received: from stud3.tuwien.ac.at (stud3.tuwien.ac.at [193.170.75.13]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l24BFdvg028619 for ; Sun, 4 Mar 2007 11:15:39 GMT Received: from myeth0 (chello062178207208.8.15.tuwien.teleweb.at [62.178.207.208]) by stud3.tuwien.ac.at (8.9.3 (PHNE_29774)/8.9.3) with ESMTP id MAA18618 for ; Sun, 4 Mar 2007 12:15:39 +0100 (MET) From: Bernhard Auzinger To: gentoo-amd64@lists.gentoo.org Subject: [gentoo-amd64] Re: persistent-net.rules Date: Sun, 4 Mar 2007 12:15:42 +0100 User-Agent: KMail/1.9.6 References: <200703040045.31686.e0026053@student.tuwien.ac.at> In-Reply-To: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200703041215.43076.e0026053@student.tuwien.ac.at> X-Archives-Salt: db49cd35-1e80-4a24-87e3-b6e50a1c5b9e X-Archives-Hash: f99c5b88ac9cb57a0a8d1afaf2768426 > Interesting. I have different hardware, but use the macchanger module to > change my MAC at every eth0 up, and don't have the problem here. udev > must see the original MAC address on my hardware before macchanger gets > to it, and thus set it up correctly. But if it's rewritten @ shutdown, > why wouldn't it see the macchanger-randomized one then and thus get it > wrong? > I've tried macchanger but the thing is that at boottime the address of my network interface is always FF:FF:FF:FF:FF:FF and therefore it gets a random mac-address from the kernel. And because of the persistent-net.rules that are saved at shutdown, my network interface is named something unpredictable. Only if I delete the udev rule by plugging it to another computer to be able to boot without persistent-net.rules I get a interface eth0. Otherwise it increments every boot (eth0, eth1, . . . ). The funny thing is, that no matter which mac address I apply to the interface with macchanger, the mac address which will be written to the udev rules at shutdown is always the one randomly generated by the kernel and not the one I apply to it. rgds Bernhard -- gentoo-amd64@gentoo.org mailing list