tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ifconfig v2

Le 14/06/2013 10:20, Lars Schotte a écrit :
On Thu, 13 Jun 2013 21:00:02 +0200
Christoph Badura <> wrote:

On Tue, Jun 11, 2013 at 09:50:24PM -0500, David Young wrote:
> I was just reminded what improvements can be made to ifconfig output > when I read this ifconfig output that appeared on current-users today:

I gather there are two crucial points to your proposal:

- you want to display interface configuration information in a more
  format more friendly to humans.
- you don't want to remember to have to use a special command line flag.

Others have pointed out that changing ifconfig's default output format
is problematic.

But there is an easy alternative.  Produce the new format under a
different name. You could call it "ifinfo". It's even shorter to type.


I do not know what you are arguing all the time about.
Some of you seen the GNU/Linux "ip" command? Maybe a good improvement
of ifconfig
could look like a combination of the Linux "ip" and "iw" commands.

I don't think so. Today "ip" is used for just about anything and not just "IP configuration", but also device options and SR-IOV virtual functions. Beware of one size fits all commands, they tend to become ugly as time goes by. IMHO "ip" is a mess nowadays.

In the case of "ip addr show", the output is indeed synthetic and convenient, but "ip" syntax is just cumbersome. Please, no, don't turn ifconfig into "ip+iw". I would rather favor an explicit flag to give a more useful output, or have a _careful_ look at what others OS did. Just look at the horrid mess created by "ip" when you configure an IP alias, and then try to manipulate it through ifconfig. And that's one example among many (route/source routing, virtual functions, ...)

Jean-Yves Migeon

Home | Main Index | Thread Index | Old Index