How to Find Out IP Address on CentOS 7

New to Linux CentOS 7? We are as well. We’ve been running FreeBSD 10 and CentOS 6 all this while. Just recently, we are trying to catch up with the latest CentOS and we have decided to install new VM with CentOS 7. There are a lot of changes in CentOS 7, we are yet to explore what is inside CentOS 7.

The very first thing we trying to do was lookup the IP Address for the CentOS 7 machine, before we launch our terminal and ssh into the minimal installed CentOS 7.

It came to our surprise that doing “ifconfig” and it given us the error message “ifconfig: command not found”. Initially we thought it’s super minimal installation and it doesn’t came with ifconfig. After reading through the docs, we found out the minimal installation of CentOS 7 came with really minimal stuff.

In order to find out IP Address on CentOS with minimal installation. Here is the command


To find out what is the Gateway IP Address


Does it looks like a router command to you? It does for us 😉 Still wanted the ifconfig command? Next we will guide you through how to bring back ifconfig command in CentOS 7.

Video: How to Find Out IP Address on CentOS 7