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


Groups > linux.debian.user > #236303

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

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: ifconfig <interface_name> stats ??? Wrong behavior OR BUG ?
Date 2021-06-22 18:00 +0200
Message-ID <CsQYG-2Yz-1@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


On Fri 11 Jun 2021 at 14:01:02 (+0000), Kanto Andria wrote:

> First post here on this lists. I know about the the IP set of  commands, BUT my concern is about the ifconfig one.I have 2 Debian 10 Buster systems and I have the same behavior - reading the man page did not give the specific options 
> 
>       dada@Jradebian:~$ sudo ifconfig enp0s31f6
> 
> So the main question: Why the stats did not generate error like no such options ? Why the IP is reset to a public IP here belonging to OVH?

Others have answered the technical issues.

If you just want to run ifconfig because its output pleases the eye
(perfectly reasonable if you been using it for years), you can just
run it as a user, not root. Type, say,

$ /sbin/ifconfig -a

to display all interfaces. That way, you shouldn't be able to disturb
your networking by reconfiguring it accidentally.

If you *want* to configure it, use ip instead. Most people will not be
willing to help with ifconfig any more. It's obsolescent, and doesn't
handle a lot of modern configuration options.

Cheers,
David.

Back to linux.debian.user | Previous | Next — Previous 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