Re: How to tell if a network interface was renamed (and from what)

From: Mina_Galić <freebsd_at_igalic.co>
Date: Mon, 20 Nov 2023 20:32:35 UTC

> I have a proof of concept that makes the presumed original name
> (driver name + unit number) available to ifconfig, which prints
> the string with everything else in the standard output format.
> I don't think that is the right solution, but the other details
> should be easy. I'm tempted to print the driver name and unit
> number separately, although possibly as two words using the same
> option. It should probably be an option rather than a keyword,
> so something like this:
> 
> # ifconfig -N interface-name
> igb 1
> #
> 
> Or the unit number could be on a separate option.
> 
> Comments?

I like it!

> Mike

Mina