> > ifconfig's output is simply more readable IMO
I prefer iproute2's terseness.
> > ifconfig's output is simply more readable IMO
I prefer iproute2's terseness.
Adding more punctuation to delimit the fields (, : etc...) would be nice too. I mean what the hell:
mtu 1500 qdisc pfifo_fast qlen 1000 valid_lft forever preferred_lft foreverRFC 3484 "Default Address Selection for Internet Protocol version 6 (IPv6)".
I once tried to use tc and gave up after more than a day of trying, that is how bad it is. The syntax is a word soup and the semantics are very poorly explained.
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
I'm with you on tc having the worst interface and documentation that I have seen from a command before. I spent maybe a few days total on it then gave up because I figured if there isn't much documentation on it, it isn't worth figuring out.
tc fit the bill nicely.
https://stackoverflow.com/questions/22988824/why-swap-needs-...
> ip route | column -t
(With iproute2 4.3.0, I get the same output between "route", "route show", and "route show default"; no idea if it's changed since.)
Alas it doesn't work quite so well for "ip addr". It would have been great if they'd just decided on CSV or JSON or whatever and then relied on secondary utilities to go to "pretty-printed".
ip --oneline addr | column -t ip route get XI do use ip route a fair bit - if I have a machine connected to two (or more) network segments and want to ensure traffic gets routed back the way it came
However my main criticism for "ip route" is that it's inconsistent and a change route "route"
"route" does reverse dns lookups - e.g "my.server.tld rather than "1.2.3.4", or "default" rather than "0.0.0.0"
"route -n" shows 1.2.3.4
"ip route" doesn't do reverse lookup, however it does say "default" rather than "0.0.0.0".