John L. Ries wrote: > Henrique de Moraes Holschuh wrote: > > In Linux, you should never use ifconfig for anything... > > I wouldn't go that far. I think ifconfig is just fine for quickie > diagnostics; but I would never use it as a network interface configuration > tool if I could help it. The problem is that the Linux kernel has changed internally how it does networking. Some of these changes have been incompatible with the old ifconfig program. That can cause people using only ifconfig to be blind to various kernel network state. Hey if an old school dog like me can learn to deal with 'ip' instead of 'ifconfig' then you can too. Most useful information is provided with these commands: ip addr show ip route show Some people like keyboard golf as reasons to change. Shortest abbreviations: ip a ip r The counters are not printed with those but since I think those should be accessed using /proc (or /sys) I am not going to contribute to pulling those from a command. Bob
Attachment:
signature.asc
Description: Digital signature