I'm trying hard to fight my old muscle memory to use ip instead of ifconfig on Linux. I have a few issues though: * "ip" is useless as a keyword if you're looking for help online. It's extremely frustrating and probably my main issue actually learning how to use the damn thing. * ifconfig's output is simply more readable IMO: https://svkt.org/~simias/up/20180525-113825_ip-vs-ifconfig.p... . It's pretty weird that a b…
> "ip" is useless as a keyword Most docs will mention iproute2. You can use that for googling.
There are real reasons for Linux to replace ifconfig, netstat, etc
81–90 of 270 posts
Re: There are real reasons for Linux to replace ifconfig, netstat, etc
#82I'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…
In my case, keepalived VRRP floating addresses.
Re: There are real reasons for Linux to replace ifconfig, netstat, etc
#83Re: There are real reasons for Linux to replace ifconfig, netstat, etc
#84Earlier quoted context omitted.
I'm not sure having everything crammed into a single line makes it better (at least if a human is supposed to parse it and not a machine): https://svkt.org/~simias/up/20180525-125636_ip-vs-ifconfig-2...
I have used ip -oneline to parse configuration of servers, and it's really practical. The only real gripe I have with IP is their long argument/switch format. Unlike everyone else, ip is a minority, which accepts long options with single dash "-". This prevents someone from combining many short parameters under a single dash, also it's confusing to use. Yes, it unofficially supports the old double dash format, but if…
Re: There are real reasons for Linux to replace ifconfig, netstat, etc
#85Re: There are real reasons for Linux to replace ifconfig, netstat, etc
#86Earlier quoted context omitted.
to get the gateway: ip route show default > > ifconfig's output is simply more readable IMO I prefer iproute2's terseness.
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…
valid_lft forever preferred_lft foreverRe: There are real reasons for Linux to replace ifconfig, netstat, etc
#87When I started learning Linux when it was, I think, 0.99, I appreciated that so many commands where cross-Unix. It was a Unix lookalike. I could watch how something is done on one Unix, type this stuff into my Linux terminal, and get an equivalent result in Linux, and this helped a lot and created a sense of community. Now I see that Linux tears the standards apart, there are more and more obstacles with porting comp…
Consistency is great, but there’s a trade off between consistency and innovation. In a sense, what you’re describing is stagnation.
No, the issue is that no one at GNU or Linux cares about correct, simple tools (2 APIs for networking in the kernel?! What happened to manpages?! WTF info?). And thanks to that it runs on anything.
Pick your poison
Re: There are real reasons for Linux to replace ifconfig, netstat, etc
#88Earlier quoted context omitted.
> ifconfig's output is simply more readable IMO Yes, this is key, and why ip is so terrible for the way I currently work. No doubt I'll have to get used to it, like those stupid biosdevname interfaces. 90% of my machines don't have more than 1 IP per physical interface, the rest are aliases ifconfig outputs clear whitespace, so picking out the specific details of - interface name - ip address Is far easier. I do pref…
to get the gateway: ip route show default > > ifconfig's output is simply more readable IMO I prefer iproute2's terseness.
ip route get XRe: There are real reasons for Linux to replace ifconfig, netstat, etc
#89When I started learning Linux when it was, I think, 0.99, I appreciated that so many commands where cross-Unix. It was a Unix lookalike. I could watch how something is done on one Unix, type this stuff into my Linux terminal, and get an equivalent result in Linux, and this helped a lot and created a sense of community. Now I see that Linux tears the standards apart, there are more and more obstacles with porting comp…
Consistency is great, but there’s a trade off between consistency and innovation. In a sense, what you’re describing is stagnation.
Re: There are real reasons for Linux to replace ifconfig, netstat, etc
#90Earlier quoted context omitted.
to get the gateway: ip route show default > > ifconfig's output is simply more readable IMO I prefer iproute2's terseness.
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 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.