ifconfig -G broken in 14.2?
- Reply: Michael Proto : "Re: ifconfig -G broken in 14.2?"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 15 Apr 2025 01:10:28 UTC
Trying to see if I have a bug here with interface groups. Per ifconfig(8):
-G groupname
Exclude members of the specified groupname from the output.
...
-g groupname
Limit the output to the members of the specified groupname.
"ifconfig -g" works, "ifconfig -G" doesn't seem to in my environment.
$ ifconfig -l
em0 lo0
$ ifconfig | grep group
groups: lo
$ ifconfig -g lo
lo0
$ ifconfig -G lo
usage: ifconfig [-j jail] [-f type:format] [-g groupname] [-C] [-L]
interface address_family
[address [dest_address]] [parameters]
ifconfig [-j jail] interface create
ifconfig [-j jail] -a [-g groupname] [-C] [-L] [-d] [-m] [-u]
[-v] [address_family]
ifconfig [-j jail] -l [-d] [-u] [address_family]
ifconfig [-j jail] [-g groupname] [-C] [-L] [-d] [-m] [-u] [-v]
$ freebsd-version -rku
14.2-RELEASE-p1
14.2-RELEASE-p1
14.2-RELEASE-p3
$ uname -rUp
14.2-RELEASE-p1 amd64 1402000
On a VM, with additional interfaces/groups:
$ ifconfig -l
vtnet0 lo0 pflog0 wg1
$ ifconfig | grep group
groups: lo
groups: pflog
groups: wg
$ ifconfig -g wg
wg1
$ ifconfig -G wg
usage: ifconfig [-j jail] [-f type:format] [-g groupname] [-C] [-L]
interface address_family
[address [dest_address]] [parameters]
ifconfig [-j jail] interface create
ifconfig [-j jail] -a [-g groupname] [-C] [-L] [-d] [-m] [-u]
[-v] [address_family]
ifconfig [-j jail] -l [-d] [-u] [address_family]
ifconfig [-j jail] [-g groupname] [-C] [-L] [-d] [-m] [-u] [-v]
$ ifconfig -g pflog
pflog0
$ ifconfig -G pflog
usage: ifconfig [-j jail] [-f type:format] [-g groupname] [-C] [-L]
interface address_family
[address [dest_address]] [parameters]
ifconfig [-j jail] interface create
ifconfig [-j jail] -a [-g groupname] [-C] [-L] [-d] [-m] [-u]
[-v] [address_family]
ifconfig [-j jail] -l [-d] [-u] [address_family]
ifconfig [-j jail] [-g groupname] [-C] [-L] [-d] [-m] [-u] [-v]
(same version info as above)
Thanks,
-Michael Proto