How to check IP address in CentOS 7 minimal Server -Ifconfig not working.

Introduction

CentOS 7 Minimal Server doesn’t include ifconfig by default. If you try to check your network settings and get “command not found”, this guide shows the modern replacement command.


Implementation

I. Prerequisites

  • A CentOS 7 server (Minimal install)

II. Why ifconfig Doesn’t Work

ifconfig comes from the older net-tools package, which isn’t installed by default on CentOS 7 Minimal. CentOS 7 replaced it with the newer ip command, part of the iproute2 package, which is installed by default.

III. Check Your IP Address

ip addr

This shows all network interfaces along with their IP addresses.

ip link

This shows whether each network interface is up or down.

V. Conclusion

If ifconfig isn’t working on CentOS 7 Minimal, use ip addr to check IP addresses and ip link to check interface status — both come pre-installed and do the same job.


Frequently Asked Questions

Can I still install ifconfig if I prefer it? Yes — run yum install net-tools to install it.

What’s the difference between ip addr and ifconfig? They show similar information, but ip addr is the current standard tool and supports more networking features that ifconfig doesn’t.


Talk to Our Technology Experts

Need help managing your CentOS or Linux servers? Our team can help with server setup, networking, and ongoing support.

Connect with our technology experts.

How to add Proxy pass rule to access PHPMyAdmin without port number in URL -Plesk

How to Install phpMyAdmin on Ubuntu

admin

Writes about Web & Architecture at Pheonix Solutions.

Leave a Reply

Scroll to Top