cvs commit: src/sbin/ifconfig ifconfig.8 ifconfig.c

Brooks Davis brooks at
Tue Feb 3 19:03:27 PST 2004

On Tue, Feb 03, 2004 at 06:55:46PM -0800, Brooks Davis wrote:
> brooks      2004/02/03 18:55:46 PST
>   FreeBSD src repository
>   Modified files:
>     sbin/ifconfig        ifconfig.8 ifconfig.c 
>   Log:
>   Add ifconfig support for network interface renaming.  In the process,
>   reorganize the printing of the interface name when using wildcard
>   cloning so it is not printed if it we either immediately rename or
>   destroy the interface.

This means you can give an interface any name up to 15 characters
(IFNAMSIZ-1) with a command like:

ifconfig xl0 name wired

I've been using this one in /etc/rc.early on my laptop to test the
renaming code.  You can rename an interface at any time, but there
are likely to be edge cases in userland programs that don't like the
interface name changing under them.  In most cases, this is a bug in the

There are also programs that assume interface names are fairly short
(4-5 characters including the unit).  Nothing has been done to address
this issue.

Please report edge cases to me and the -net list.

-- Brooks

Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url :

More information about the cvs-src mailing list