Bug 233554 - ifconfig - Add feature to list interfaces summary.
Summary: ifconfig - Add feature to list interfaces summary.
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2018-11-27 06:36 UTC by Santiago Martinez
Modified: 2018-11-27 18:26 UTC (History)
2 users (show)

See Also:

File contains output of ifconfig -s on a system used multiple interfaces. (1.57 KB, text/plain)
2018-11-27 06:36 UTC, Santiago Martinez
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Santiago Martinez 2018-11-27 06:36:23 UTC
Created attachment 199594 [details]
File contains output of ifconfig -s on a system used multiple interfaces.

Hi FreeBSD team,


This is an enhancement request. Just wondering what is your view on adding a new flag/feature to ifconfig to provide a summary of the network interfaces including admin state, media status, description and maybe something else in a table based format ( Yes like a cisco "show interface status" or any of those..). 

If I'm not wrong at the moment there is not such feature and when working with many interfaces (like 10's of jails using Vimage) it becomes quite difficult to track interface and bridges status.


I been playing around with ifconfig and put together a status_summary() function that generates the following, but is too poor in code quality and features. So just wondering if somebody is interested on coding it or maybe point me in the right direction to code it.

I've included a file with the current output of the -s (summary) function I added. It can be used with the existing flags ( -d -u $ifname).


Santiago Martinez
Comment 1 Conrad Meyer freebsd_committer 2018-11-27 18:26:29 UTC
Maybe you can write a small program to do what you want using libifconfig?  https://github.com/freebsd/freebsd/tree/master/lib/libifconfig