Re: The magical mystical changing ethernet interface order

From: Dick Streefland (spam@altium.nl)
Date: Fri May 09 2003 - 07:41:31 EST


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/



This archive was generated by hypermail 2b29 : Thu May 15 2003 - 22:00:31 EST