{"id":12403,"date":"2019-03-26T22:57:30","date_gmt":"2019-03-26T22:57:30","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=12403"},"modified":"2019-03-26T22:57:30","modified_gmt":"2019-03-26T22:57:30","slug":"deprecated-linux-networking-commands-and-their-replacements","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/26\/deprecated-linux-networking-commands-and-their-replacements\/","title":{"rendered":"Deprecated Linux Networking Commands and Their Replacements"},"content":{"rendered":"<p>In our previous article, we have covered some useful command line\u00a0<a href=\"https:\/\/www.tecmint.com\/linux-networking-commands\/\" target=\"_blank\" rel=\"noopener\">networking utilities for Sysadmin\u2019s<\/a>\u00a0for network management, troubleshooting and debugging on Linux. We mentioned some networking commands that are still included and supported in many Linux distributions, but are now, in reality, deprecated or obsoleted and therefore should be carry out in favor of more present-day replacements.<\/p>\n<p>Although these networking tools\/utilities are still available in official repositories of mainstream Linux distributions, but they do not actually come pre-installed by default.<\/p>\n<p>This is evident in\u00a0<strong>Enterprise Linux<\/strong>\u00a0distributions, a number of popular networking commands no longer work on\u00a0<strong>RHEL\/CentOS 7<\/strong>, while they actually work on\u00a0<strong>RHEL\/CentOS 6<\/strong>. Latest\u00a0<strong>Debian<\/strong>\u00a0and\u00a0<strong>Ubuntu<\/strong>\u00a0releases don\u2019t include them as well.<\/p>\n<p>In this article, we will share deprecated Linux networking commands and their replacements. These commands include\u00a0<a href=\"https:\/\/www.tecmint.com\/ifconfig-command-examples\/\" target=\"_blank\" rel=\"noopener\">ifconfig<\/a>,\u00a0<a href=\"https:\/\/www.tecmint.com\/20-netstat-commands-for-linux-network-management\/\" target=\"_blank\" rel=\"noopener\">netstat<\/a>,\u00a0<strong>arp<\/strong>,\u00a0<strong>iwconfig<\/strong>,\u00a0<strong>iptunnel<\/strong>,\u00a0<strong>nameif<\/strong>, as well as\u00a0<strong>route<\/strong>.<\/p>\n<p>All the listed programs with exception of\u00a0<strong>iwconfig<\/strong>\u00a0are found in the\u00a0<strong>net-tools<\/strong>\u00a0package which has not been under active maintenance for so many years.<\/p>\n<p>Importantly, you should keep in mind that \u201c<strong>unmaintained software is dangerous<\/strong>\u201d, it poses a great security risk to your Linux system. The modern replacement for\u00a0<strong>net-tools<\/strong>\u00a0is\u00a0<strong>iproute2<\/strong>\u00a0\u2013 an assortment of utilities for controlling TCP\/IP networking in Linux.<\/p>\n<p>The following table shows the summary of the exact deprecated commands and their replacements, that you should take note of.<\/p>\n<table>\n<tbody>\n<tr>\n<th>Linux Deprecated Commands<\/th>\n<th>Linux Replacement Commands<\/th>\n<\/tr>\n<tr class=\"alt\">\n<td>arp<\/td>\n<td>ip n (ip neighbor)<\/td>\n<\/tr>\n<tr>\n<td>ifconfig<\/td>\n<td>ip a (ip addr), ip link, ip -s (ip -stats)<\/td>\n<\/tr>\n<tr class=\"alt\">\n<td>iptunnel<\/td>\n<td>ip tunnel<\/td>\n<\/tr>\n<tr>\n<td>iwconfig<\/td>\n<td>iw<\/td>\n<\/tr>\n<tr class=\"alt\">\n<td>nameif<\/td>\n<td>ip link, ifrename<\/td>\n<\/tr>\n<tr>\n<td>netstat<\/td>\n<td>ss, ip route (for netstat -r), ip -s link (for netstat -i), ip maddr (for netstat -g)<\/td>\n<\/tr>\n<tr class=\"alt\">\n<td>route<\/td>\n<td>ip r (ip route)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>You will find more details about some of the replacements in these following guides.<\/p>\n<ol>\n<li><a href=\"https:\/\/www.tecmint.com\/ifconfig-vs-ip-command-comparing-network-configuration\/\" target=\"_blank\" rel=\"noopener\">ifconfig vs ip: What\u2019s Difference and Comparing Network Configuration<\/a><\/li>\n<li><a href=\"https:\/\/www.tecmint.com\/ip-command-examples\/\" target=\"_blank\" rel=\"noopener\">10 Useful \u201cIP\u201d Commands to Configure Network Interfaces<\/a><\/li>\n<\/ol>\n<p><strong>Reference<\/strong>:\u00a0<a href=\"https:\/\/dougvitale.wordpress.com\/2011\/12\/21\/deprecated-linux-networking-commands-and-their-replacements\/\" target=\"_blank\" rel=\"nofollow noopener\">Doug Vitale Tech Blog post<\/a>.<br \/>\n<strong>Net-tools Project Home<\/strong>:\u00a0<a href=\"https:\/\/sourceforge.net\/projects\/net-tools\/\" target=\"_blank\" rel=\"nofollow noopener\">https:\/\/sourceforge.net\/projects\/net-tools\/<\/a><br \/>\n<strong>iproutre2 Description Page:<\/strong>\u00a0<a href=\"https:\/\/wiki.linuxfoundation.org\/networking\/iproute2\" target=\"_blank\" rel=\"nofollow noopener\">https:\/\/wiki.linuxfoundation.org\/networking\/iproute2<\/a><\/p>\n<p>All in all, it\u2019s good to keep these changes in mind, as most of these obsolete tools will totally be replaced sometime in the future. Old habits die hard but you have to move on. In addition, installing and using unmaintained packages on your Linux system is an insecure and dangerous practice.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/deprecated-linux-networking-commands-and-their-replacements\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In our previous article, we have covered some useful command line\u00a0networking utilities for Sysadmin\u2019s\u00a0for network management, troubleshooting and debugging on Linux. We mentioned some networking commands that are still included and supported in many Linux distributions, but are now, in reality, deprecated or obsoleted and therefore should be carry out in favor of more present-day &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/26\/deprecated-linux-networking-commands-and-their-replacements\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Deprecated Linux Networking Commands and Their Replacements&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-12403","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12403","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=12403"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12403\/revisions"}],"predecessor-version":[{"id":12404,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12403\/revisions\/12404"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=12403"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=12403"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=12403"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}