Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #235987

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

From Andy Smith <andy@strugglers.net>
Newsgroups linux.debian.user
Subject Re: ifconfig <interface_name> stats ??? Wrong behavior OR BUG ?
Date 2021-06-11 16:30 +0200
Message-ID <CoQkx-2gK-3@gated-at.bofh.it> (permalink)
References <CoQ1b-2a1-3@gated-at.bofh.it> <CoQ1b-2a1-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Kanto,

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

You just resolved "stats" in DNS and set the IP address of interface
enp0s31f6 to that IP.

>         inet 54.36..162.17  netmask 255.0.0.0  broadcast 54.255.255.255

I'm guessing that due to your DNS configuration, partiocularly
search list, or any default answer your ISP provides, 54.36.162.17
came back as the answer to looking up "stats".

> So the main question: Why the stats did not generate error like no such options ?

There is no way to tell that you didn't mean to look up a name in
DNS.

> Why the IP is reset to a public IP here belonging to OVH?

That's what it resolved to.

This is not a bug.

The bigger issue here is that ifconfig has been deprecated for 10+
years and whatever you are trying to do with it you should be doing
with more modern commands, usually something out of the "iproute"
package, e.g. "ip".

What stats are you trying to view? Maybe "ip -s link"?

    https://access.redhat.com/sites/default/files/attachments/rh_ip_command_cheatsheet_1214_jcs_print.pdf

may help.

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

ifconfig <interface_name> stats ??? Wrong behavior OR BUG ? Kanto Andria <avrkca@yahoo.ca> - 2021-06-11 16:10 +0200
  Re: ifconfig <interface_name> stats ??? Wrong behavior OR BUG ? Reco <recoverym4n@enotuniq.net> - 2021-06-11 16:20 +0200
  Re: ifconfig <interface_name> stats ??? Wrong behavior OR BUG ? Andy Smith <andy@strugglers.net> - 2021-06-11 16:30 +0200
  Re: ifconfig <interface_name> stats ??? Wrong behavior OR BUG ? David Wright <deblis@lionunicorn.co.uk> - 2021-06-22 18:00 +0200

csiph-web