On 2005-12-29 19:13:26 -0500, Stefhen Hovland wrote: > i think ifrename will do what you are asking, you can specify that > eth0 always be bound to x, and eth1 always bound to y, etc.. > > http://packages.debian.org/unstable/net/ifrename
Otherwise this can be done with a simple mapping, e.g. auto eth0 eth1 mapping eth* script /usr/local/sbin/map-scheme and in the map-scheme script, mac=$(/sbin/ifconfig "$1" | \ sed -n '/^.*HWaddr \([:[:xdigit:]]*\).*/{s//\1/;y/abcdef/ABCDEF/;p;q;}') which contains the MAC address. The advantage is that one can put other things, such as netenv-related ones. -- Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/> Work: CR INRIA - computer arithmetic / SPACES project at LORIA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]