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

Re: ifconfig <interface_name> stats ??? Wrong behavior OR BUG ?



	Hi.

On Fri, Jun 11, 2021 at 02:01:02PM +0000, Kanto Andria wrote:
> dada@Jradebian:~$ sudo ifconfig enp0s31f6 stats    

There's no "stats" option to ifconfig, at least according to the source
of version 1.60+git20180626.aebd88e.


But what a quick test does show me, is that in my environment "stats"
apparently interpreted as a hostname, which cannot be resolved:

$ /sbin/ifconfig eth0 stats
stats: Unknown host
ifconfig: `--help' gives usage information.


So what actually happened to you is that on your host "stats" was
resolved to 54.36.162.17, and then the resolved IP was set to your
interface with /8 netmask. Since the setting was successful (and why
would not it be, since you ran ifconfig as root) - you've got no error.


> I have experienced the same issue on a FreeBSD based product close to the 10.x release 

I'm unfamiliar with FreeBSD's ifconfig, and too lazy to dig their
sources. Probably the explanation is the same.

Reco


Reply to: