On Jul 27, 2007, at 17:05:30, Jeff Garzik wrote:I was doing that for a while, but now Debian and RedHat and most other modern distros have a udev rules file called something like: / etc/udev/rules.d/z30-persistent-net-generator.rules Under Debian it generates a file /etc/udev/rules.d/z25-persistent-net.rules which automatically renames net devices based on their mac address. The persistent-net-generator takes the current name and MAC and stuffs them in an appropriate file. So really once you've booted with the network card in, all you have to do is modify the persistent- net.rules file to change the name of your NIC and rerun udevtrigger. I've gotten into the habit of using descriptive names lately (7 chars is the most that ifconfig will show without truncating, and it seems to be unable to properly sort/display/operate-on longer ones). For example, my Debian firewall box has: world: Connection to the cable modem switch: Connection to my VLAN-capable switch main0: "Primary" VLAN on my switch. main1: A local gigabit switch for connections to a couple other systems main: A bridge of main0 and main1 which is used as the primary LAN interface hbeat: Dedicated NIC for Linux-HA (HeartBeat) debian: A Debian netinst net-boot VLAN with support for PXE and OpenFirmware radius: A VLAN used by my wireless AP for radius traffic wifi: A VLAN used for private wireless traffic Most of those interfaces are virtual and created by custom "/etc/ network/if-pre-up.d/*" scripts, but you can see the "world", "switch", "main1", and "hbeat" interfaces are actual physical interfaces. Such naming (with appropriate comments in /etc/network/ interfaces) vastly eases the management of a box with a shitton of interfaces. The fact that ifconfig has some outstanding bugs with big interface names is mostly irrelevant since I use the iproute2 tool ("ip") to do almost all administration. Cheers, Kyle Moffett -
| Greg KH | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Heiko Carstens | Re: -mm merge plans for 2.6.23 -- sys_fallocate |
| Tony Lindgren | [PATCH 37/90] ARM: OMAP: MPUIO wake updates |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | [GIT]: Networking |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Benjamin Herrenschmidt | Re: powerpc allmodconfig |
