lkml.org 
[lkml]   [2003]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: The magical mystical changing ethernet interface order
Date
Ray Lee <ray-lk@madrabbit.org> wrote:
| Debian already supports this, integrated into the normal scheme for
| dealing with interfaces. Anyone running Debian can take a look at
| /usr/share/doc/ifupdown/examples directory, the network-interfaces.gz
| file contains sample /etc/network/interfaces stanzas for configuring
| your interfaces via MAC address:
|
| auto eth0 eth1
| mapping eth0 eth1
| script /path/to/get-mac-addr.sh
| map 11:22:33:44:55:66 lan
| map AA:BB:CC:DD:EE:FF internet
| iface lan inet static
| address 192.168.42.1
| netmask 255.255.255.0
| pre-up /usr/local/sbin/enable-masq $IFACE
| iface internet inet dhcp
| pre-up /usr/local/sbin/firewall $IFACE

I just do:

auto net
iface net inet static
pre-up nameif net 00:00:C0:4F:8B:F6
...

auto lan
iface lan inet static
pre-up nameif lan 00:60:B0:EC:92:F9
...

--
Dick Streefland //// Altium BV
dick.streefland@altium.nl (@ @) http://www.altium.com
--------------------------------oOO--(_)--OOo---------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.033 / U:0.864 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site