This is slightly off topic. Netflix has transformed the output of netstat to have more immediate visibility. Its good to have something like this. https://imgur.com/a/g8P2Nm2
There are real reasons for Linux to replace ifconfig, netstat, etc
101–110 of 270 posts
Re: There are real reasons for Linux to replace ifconfig, netstat, etc
#102I've never understood the purpose of IP aliases like the "secondary em0" the author is setting up with systemd.networkd. These aliases are practically useless, you cannot bind() to them without knowing the IP, you cannot use them in firewall rules, you cannot setup dhcp for them etc. What are people using them for? I'm not sure what the low level difference is between an alias like in the article, or a "eth0:1" type…
> What are people using them for? In my case, keepalived VRRP floating addresses.
Re: There are real reasons for Linux to replace ifconfig, netstat, etc
#103Re: There are real reasons for Linux to replace ifconfig, netstat, etc
#104Earlier quoted context omitted.
It seems like a missed opportunity not to have a JSON (or other explicitly machine readable format) output option for easy scripting use through jq. Every time I need to craft a grep regex to get some trivial piece of information from one of these tools, I feel there's a bug waiting to happen (and I'm usually right).
ip has a --json flag: https://github.com/CumulusNetworks/iproute2/commit/5df607725...
Re: There are real reasons for Linux to replace ifconfig, netstat, etc
#105Earlier quoted context omitted.
I'm not sure "terse" is the right adjective. It presents basically the same amount of information as ifconfig (minus the packet counters) and actually adds a few more flags. It's all about the formatting really. Simply adding an empty line between each interface would go a long way. Also starting the line with the interface name instead of the index. Adding more punctuation to delimit the fields (, : etc...) would be…
Huh, does "ip" also support "tc" (traffic control) commands - qdisc is a queueing discipline... tc seems to be the an earlier thing from the people who brought us ip. tc must have the worst command line interface and documentation ever - it is very hard and very frustrating to use, like no other command line interface I've ever seen. I once tried to use tc and gave up after more than a day of trying, that is how bad…
http://inai.de/images/nf-packet-flow.png
tc is implemented by packet pacing at either egress or ingress steps.
and this is how iproute2 compares to the old net-tools stuff: https://linoxide.com/wp-content/uploads/2014/05/Linux-Nettoo...
netfilter: https://en.wikipedia.org/wiki/Netfilter#/media/File:Netfilte...
regarding UI/UX/CLI. yes, there's no arguing about it, it's just horrible. no documentation, no discoverability, no sanity. but it works, and it's free :o
Re: There are real reasons for Linux to replace ifconfig, netstat, etc
#106Re: There are real reasons for Linux to replace ifconfig, netstat, etc
#107Earlier quoted context omitted.
I'm not sure "terse" is the right adjective. It presents basically the same amount of information as ifconfig (minus the packet counters) and actually adds a few more flags. It's all about the formatting really. Simply adding an empty line between each interface would go a long way. Also starting the line with the interface name instead of the index. Adding more punctuation to delimit the fields (, : etc...) would be…
I can take "mtu 1500" part, and sort-of "qdisc", but what's up with repeating obscure parameters at their default values, for each and IP address: valid_lft forever preferred_lft forever
RFC 3484 "Default Address Selection for Internet Protocol version 6 (IPv6)".
Re: There are real reasons for Linux to replace ifconfig, netstat, etc
#108So, to summarize, ifconfig has to be replaced because it relies on the /proc filesystem and it doesn't handle aliases? This is easily disproven: ifconfig on FreeBSD doesn't rely on /proc and handles aliases just fine. It sounds a bit like the whole OSS/ALSA discussion – some argued that ALSA was needed to replace OSS because OSS didn't support muxing multiple simultaneous audio streams, but strangely OSS on FreeBSD d…
Isn't ifconfig on BSD just an app that happens to share the name and some syntax with the Linux ifconfig? You could map most ifconfig operations to netlink and away from /proc, but that would have other tradeoffs.
Re: There are real reasons for Linux to replace ifconfig, netstat, etc
#109Earlier quoted context omitted.
I'm not sure "terse" is the right adjective. It presents basically the same amount of information as ifconfig (minus the packet counters) and actually adds a few more flags. It's all about the formatting really. Simply adding an empty line between each interface would go a long way. Also starting the line with the interface name instead of the index. Adding more punctuation to delimit the fields (, : etc...) would be…
So glad I'm not the only one with the same criticisms
Re: There are real reasons for Linux to replace ifconfig, netstat, etc
#110So, to summarize, ifconfig has to be replaced because it relies on the /proc filesystem and it doesn't handle aliases? This is easily disproven: ifconfig on FreeBSD doesn't rely on /proc and handles aliases just fine. It sounds a bit like the whole OSS/ALSA discussion – some argued that ALSA was needed to replace OSS because OSS didn't support muxing multiple simultaneous audio streams, but strangely OSS on FreeBSD d…
Isn't ifconfig on BSD just an app that happens to share the name and some syntax with the Linux ifconfig? You could map most ifconfig operations to netlink and away from /proc, but that would have other tradeoffs.
On FreeBSD (and presumably other BSDs), all of the interface configuration happens with ifconfig still, if something new comes up, it's added to the tool that already exists.
There are some legitimate concerns around interfaces though -- some of the apis are either parse ifconfig's output, or copy its source code, I don't think (but could be wrong) that there's a nice machine readable way to get this information.