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

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



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.


Reply to: