[RFC] ifconfig: match by link-level address

Alex Semenyaka flist at jabberwock.rinet.ru
Mon May 24 03:41:56 GMT 2004


On Sun, May 23, 2004 at 07:37:37PM -0400, Louis A. Mamakos wrote:
> >>> This could be the first step towards teaching rc.conf about something like
> >>> network_interfaces_rename="hw-00:03:0d:08:dc:a7 sis0int"
> >> I don't really like the idea of adding magic values to the interface
> >> namespace that only work with ifconfig.  If you want ifconfig to match
>> I agree, but there is another option: make such things not ifconfig-specific.
>> I mean that it could be done though renaming the interface into the some
>> lladdr-dependent name with fixed format. For example,
> This is all pretty interesting, though it seems like you'd only
> need to cobble together a shell script to do what you're after.

You've absolutely right and I wanted to propose it just on the base of
currently existing functionality (independently of this thread). However if
there will be automatic renaming things would be easier. Thus I decided to
combine both approaches since it leads to simple solution.

I would post my current changes (those giving the discussing functionality) to
the startup scripts as PR and send here the number. I'll do it if anybody will
express any interest in that. Actually those scripts could be changed in future
if ``ifconfig'' will provide such possibility out-of-box, and changes will be
seamless for users.

-- 
Sincerely,
Alex Semenyaka



More information about the freebsd-net mailing list