From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id ADDD013825F for ; Wed, 2 Jan 2013 21:14:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1418021C061; Wed, 2 Jan 2013 21:14:02 +0000 (UTC) Received: from mail-qa0-f49.google.com (mail-qa0-f49.google.com [209.85.216.49]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9F1C221C061 for ; Wed, 2 Jan 2013 21:12:53 +0000 (UTC) Received: by mail-qa0-f49.google.com with SMTP id r4so9151455qaq.8 for ; Wed, 02 Jan 2013 13:12:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=gbe7tlHh2Lf5rC5u3UuQ2E++l/4X31sEIIfHbC0f6lY=; b=Rm3UAj9y4Icr6mLUoi4S4uRIvKtmK+XHbYsNY9/2jQxARMrqJ3Ca1uUolje2pDzI0O NyomdYcclKjPBxlEuMGjRhPUDP7PYalt00xWi4DCBTJ9pXlKtvgKFzMU7DWf1OSQOPao o5Kjn+6Ip8ZSDlgLiAEpY6myBw3Skq8h6ZXgmzeuUgCdgmW0qiBMQyYfTeFBd3eyTFDA WQVB+5mio6an5//WkKmeKpmQaRQzzlK7WVXIuX4YaI3wPlKlFXxpZ5+pn9TIvFdwiIDr Pkoff6FqVUCLjb9JD4+9A3f3+yP1jZoOFAbjEtOS6n/KFjQFlme8tBikqm7qIJ3CGr2s xbhQ== Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Received: by 10.229.106.131 with SMTP id x3mr5634111qco.50.1357161172825; Wed, 02 Jan 2013 13:12:52 -0800 (PST) Received: by 10.229.186.132 with HTTP; Wed, 2 Jan 2013 13:12:52 -0800 (PST) In-Reply-To: References: Date: Wed, 2 Jan 2013 13:12:52 -0800 Message-ID: Subject: Re: [gentoo-user] Re: Ethernet Machination From: Mark Knecht To: Gentoo User Content-Type: text/plain; charset=UTF-8 X-Archives-Salt: 00a76c07-b917-4c53-b74c-e9f2aec5aa24 X-Archives-Hash: 63196b2d2bccaaca3b3920ae57e73fb4 On Wed, Jan 2, 2013 at 12:57 PM, james wrote: > Mark Knecht gmail.com> writes: > > >> > So now that only one ethernet shows up, how do I prevent >> > udev from renaming eth0 to eth3? > >> Probably remove any net-persistent rules that are hanging around. That >> should free up udev to do more of what you suspect. > > > After deleting the 70-persistent-net.rule file > > udev does not re-create it. All is now fine with rc-status > only showing net.eth0 which is set up how I like it > per /etc/conf.d/net. All services are fine > > > Move on, or hand edit the '70-persistent-net.rules' file? > > TIA, > James > > > Well, I think I'd hand edit myself. That's what I've done in the past. As Bruce say, dispatch-conf (or etc-update is what I use) might pick something up if it's waiting, but looking at the comments in my file I don't think so: mark@c2stable ~ $ cat /etc/udev/rules.d/70-persistent-net.rules # This file was automatically generated by the /lib64/udev/write_net_rules # program, run by the persistent-net-generator.rules rules file. # # You can modify it, as long as you keep each rule on a single # line, and change only the value of the NAME= key. # PCI device 0x11ab:0x4364 (sky2) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="e0:cb:4e:97:80:fd", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" # PCI device 0x11ab:0x4364 (sky2) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="e0:cb:4e:97:7a:09", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" mark@c2stable ~ $ Really, as long as you don't mess up the format it's really just a matter of matching the macID. Save your old file in a copy somewhere and then edit and make it work. ifconfig will show you the macID. I, like so many others I think, really don't understand how udev manages all this stuff. I'm really not sure udev knows how udev works... HTH, Mark