CentOS Symbol

So if you do a fresh “minimal” installation of CentOS 7 you might run into this issue when trying to run ifconfig.

bash$: ifconfig: command not found

The problem is that ifconfig is part of the net-tools package which is no longer installed by default on the minimal install.

sudo yum install net-tools
ifconfig

And you’re up and running again!

 Tagged with: ,

2 thoughts on “CentOS 7: ifconfig command not found

  • Ok – so what is used to bring up the network interfaces at boot?

     Reply

    • You would need to edit the interface configuration file for Centos it would be /etc/sysconfig/network-scripts/ifcfg-"interface-name". For a static IP you would probably want something like DEVICE=eth0 BOOTPROTO=none ONBOOT=yes NETWORK=10.0.1.0 NETMASK=255.255.255.0 IPADDR=10.0.1.27 USERCTL=no.

      If you’ve just configured the network you can simply start your network service using sudo systemctl start network

       Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Mojowill Avatar

Who the Hell am I?

I'm Will, a full time web developer, geek and musician. I develop using PHP and MySQL and spend most of my time working with WordPress or CakePHP. When I'm not buried in code I'm gaming, cooking or writing and recording music in my studio. I like sci-fi, pancakes and coffee and am totally prepared for the zombie apocalypse...

Stalk me on these other sites...

Why not be super creepy and check me out on all these other sites, I think they call it social media?

%d bloggers like this: