With the servers that mount Infiniband cards, when I use the ifconfig command, I get this warning:
Ifconfig uses the ioctl access method to get the full address
information, which limits hardware addresses to 8 bytes.
Because Infiniband address has 20 bytes, only the first 8 bytes
are displayed correctly.
Ifconfig is obsolete! For replacement check ip.
Should I quit using ifconfig? Is it deprecated in favor of the ip command? Or will it be updated in the near future?
Note: This question and answers are in regards to GNU/Linux's "major" distributions. It should not be assumed that the information applies to all distributions, and especially not other OSes.
ifconfig. It does make operations on Windows even more fun though. "ip add-no, wait, that's not it,ifcon-NO, arghipconfig" – Charles Dec 17 '12 at 10:09alias ipconfig='echo ipconfig is deprecated, use ip instead'. Of course you set up more senseful aliases. – ott-- Dec 17 '12 at 10:13ifconfigis deprecated? I must have been living in a cave – wim Dec 17 '12 at 14:00ifconfig,netstatetc. are no longer shipped with the OS by default. Among other things, this means that RHEL 7 probably won't have them. They can still be installed from thenet-toolspackage if you really need them (though you probably don't). – Michael Hampton Dec 19 '12 at 05:40.bashrcfile:alias ifconfig='echo -e "\nifconfig is deprecated, use \033[31;1mip -brief addr show\033[0m instead\n" && ip -brief addr show'. – Luke Sheppard Oct 20 '19 at 00:10