Re: LANANA: To Pending Device Number Registrants

From: Jonathan Lundell (jlundell@pobox.com)
Date: Wed May 16 2001 - 01:56:41 EST


At 12:31 PM +1000 2001-05-16, Andrew Morton wrote:
> > When I ifconfig one of a collection of interfaces, I'm very much
>> talking about the specific physical interface connected via a
> > specific physical cable to a specific physical switch port.
>>
>
>Yes, it can be a security trap as well - physically move a card and
>your firewall rules end up being applied to the wrong connection.
>
>The 2.4 kernel allows you to rename an interface. So you can build
>a little database of (MAC address/name) pairs. Apply this after booting
>and before bringing up the interfaces and everything has the name
>you wanted, based on MAC address.
>
>Andi Kleen has an app which does this:
>
> ftp://ftp.firstfloor.org/pub/ak/smallsrc/nameif.c
>
>but apparently some additional kernel work is needed to make
>this work 100% correctly. I do not know what the specific
>problem is.

There's a bit of a catch 22, though, if you don't have unique MAC
addresses in the system (across multiple interfaces). It's common
practice in the SPARC world (Solaris, anyway) for all the interfaces
to default to a single system-wide MAC address. The fact that MAC
addresses are at least semi-volatile is also bothersome.

It's also true that some buses simply don't yield up physical
locations (ISA springs to mind, and I gather that FC is squishy that
way), but it's desirable to be able to make the connection all ways
(eth# <-> bus location <-> physical location <-> MAC address) in a
uniform manner. (Where MAC address might be something else in a
non-Ethernet domain.)

-- 
/Jonathan Lundell.
-
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 : Wed May 23 2001 - 21:00:15 EST