On Thu, 2004-12-02 at 19:24 +0100, Michael Tautschnig wrote:
> >
> > Trying to "fai-sysinfo" a box that is connected to two networks. Both
> > nets are provided with DHCP service, but (of course) only one of them is
> > under my (and FAI's) control.
> > (This is an Alpha DS10, with two tulip interfaces. But the same would
> > apply to Intel machines, too.)
> >
> > (BTW, is there a way to control the order of interfaces?)
> Does it really matter? At least, the order should never change.

Actually it might change, depending on the order modules are loaded, the
kernel version...

Check out ifrename for changing the order of the interfaces after they
are loaded, depending on for instance their MAC-addresses. You probably
need the following patch to /etc/init.d/networking:

--- /etc/init.d/networking.standard     2004-02-13 12:35:29.000000000
+0100
+++ /etc/init.d/networking      2004-08-16 13:09:45.000000000 +0200
@@ -66,6 +66,15 @@
         doopt syncookies no
         doopt ip_forward no
 
+       # Optionally remap interface names based on MAC address.
+       # '/sbin/ifrename' is part of wireless-tools package.
+       # /etc/iftab is currently not created by default. Jean II
+       if [ -x /sbin/ifrename ] && [ -r /etc/iftab ]; then
+               echo -n "Remapping network interfaces name: "
+               ifrename -p -t
+               echo "done."
+       fi
+
         echo -n "Configuring network interfaces..."
         ifup -a
        echo "done."

/torkel

Reply via email to