{"id":4110,"date":"2015-01-20T20:55:30","date_gmt":"2015-01-20T12:55:30","guid":{"rendered":"http:\/\/rmohan.com\/?p=4110"},"modified":"2015-01-20T21:13:55","modified_gmt":"2015-01-20T13:13:55","slug":"ifconfig-command-not-found-on-centos-7","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=4110","title":{"rendered":"ifconfig command not found on CentOS 7"},"content":{"rendered":"<header class=\"entry-header\">\n<h1 class=\"entry-title\">ifconfig command not found on CentOS 7<\/h1>\n<p class=\"entry-meta\">As we know recently CentOS 7 is released ,studded with many new features. On the part of exploring the CentOS 7, I encountered with first change. In my last post on <a title=\"How to find CentOS Linux release version on CentOS 7 series\" href=\"http:\/\/sharadchhetri.com\/2014\/07\/24\/how-to-find-centos-linux-release-version-on-centos-7-series\/\" target=\"_blank\">finding the CentOS release version on CentOS 7<\/a>, I gave a brief info that networking related changes is also found.<\/p>\n<\/header>\n<div class=\"entry-content\">\n<p>A few days back I <strong>minimal installed CentOS 7<\/strong> (x86_64) on my local system. On and Before CentOS 6.x releases,I was habitual to use the command called <code>ifconfig<\/code> . The <code>ifconfing<\/code> command helps to provide information about the ethernet devices on your system.<\/p>\n<p>On CentOS 6.x and before, ifconfig command by default used to shipped. Whereas in minimal installed CentOS 7 , I have not found ifconfig command.<\/p>\n<p>This will give you the error , <strong>ifconfig command not found<\/strong>.<\/p>\n<p>To get the ifconfig command into our system , run the below given command<\/p>\n<pre class=\"wp-code-highlight prettyprint prettyprinted\"><span class=\"pln\">yum install net<\/span><span class=\"pun\">-<\/span><span class=\"pln\">tools<\/span><\/pre>\n<p>Now check the ifconfig command and its path in system (<code>which<\/code> and <code>whereis<\/code> command will help)<\/p>\n<pre class=\"wp-code-highlight prettyprint prettyprinted\"><span class=\"pln\">ifconfig\r\nifconfig <\/span><span class=\"pun\">-<\/span><span class=\"pln\">a\r\nwhich ifconfig\r\nwhereis ifconfig<\/span><\/pre>\n<h3>How I got to know net-tools package need to be installed<\/h3>\n<p>Using yum command with <code>provides<\/code> or <code>whatprovides<\/code> options help to give you list of package which is required for that particular command.<\/p>\n<p>As per man page of yum :<\/p>\n<blockquote><p><strong>provides or whatprovides<\/strong><br \/>\nIs used to find out which package provides some feature or file. Just use a specific name or a file-glob-syntax wildcards to list the packages available or installed that provide that feature or file.<\/p><\/blockquote>\n<p>We have used the below given command to find which package provides the ifconfig command.<\/p>\n<pre class=\"wp-code-highlight prettyprint prettyprinted\"><span class=\"pln\">yum provides ifconfig\r\n\r\n\r\n<\/span><\/pre>\n<p>[root@testserver7 ~]# yum install net-tools<br \/>\nLoaded plugins: fastestmirror<br \/>\nLoading mirror speeds from cached hostfile<br \/>\n* base: mirror.vodien.com<br \/>\n* extras: mirror.vodien.com<br \/>\n* updates: mirror.vodien.com<br \/>\nResolving Dependencies<br \/>\n&#8211;&gt; Running transaction check<br \/>\n&#8212;&gt; Package net-tools.x86_64 0:2.0-0.17.20131004git.el7 will be installed<br \/>\n&#8211;&gt; Finished Dependency Resolution<\/p>\n<p>Dependencies Resolved<\/p>\n<p>===============================================================================================================================================================================================<br \/>\nPackage\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Arch\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Version\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Repository\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Size<br \/>\n===============================================================================================================================================================================================<br \/>\nInstalling:<br \/>\nnet-tools\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 x86_64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2.0-0.17.20131004git.el7\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 base\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 304 k<\/p>\n<p>Transaction Summary<br \/>\n===============================================================================================================================================================================================<br \/>\nInstall\u00a0 1 Package<\/p>\n<p>Total download size: 304 k<br \/>\nInstalled size: 917 k<br \/>\nIs this ok [y\/d\/N]: y<br \/>\nDownloading packages:<br \/>\nnet-tools-2.0-0.17.20131004git.el7.x86_64.rpm\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 | 304 kB\u00a0 00:00:01<br \/>\nRunning transaction check<br \/>\nRunning transaction test<br \/>\nTransaction test succeeded<br \/>\nRunning transaction<br \/>\nInstalling : net-tools-2.0-0.17.20131004git.el7.x86_64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\/1<br \/>\nVerifying\u00a0 : net-tools-2.0-0.17.20131004git.el7.x86_64\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\/1<\/p>\n<p>Installed:<br \/>\nnet-tools.x86_64 0:2.0-0.17.20131004git.el7<\/p>\n<p>Complete!<br \/>\n[root@testserver7 ~]#<\/p>\n<pre class=\"wp-code-highlight prettyprint prettyprinted\"><span class=\"pln\">\u00a0<\/span><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p> ifconfig command not found on CentOS 7 <\/p>\n<p class=\"entry-meta\">As we know recently CentOS 7 is released ,studded with many new features. On the part of exploring the CentOS 7, I encountered with first change. In my last post on finding the CentOS release version on CentOS 7, I gave a brief info that networking [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4110"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4110"}],"version-history":[{"count":2,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4110\/revisions"}],"predecessor-version":[{"id":4112,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4110\/revisions\/4112"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}