Did my Server get hacked? Why can’t I find ifconfig or netstat on my RHEL 7.X or CentOS 7.X Server?

If you got the following. No need to panic.   ( You will get the following if you did a minimal install of rhel or centOS)
# ifconfig
-bash:  ifconfig: command not found
As early as RHEL5 and 6 ( CentOS 5 & 6 also).2009..nearly a decade. Wow!. RedHat made the 
decision to no longer install the net-tools package by default on RHEL7. "Only on the Minimal Install" 

iconfig did not support InfiniBand addresses (commonly used interconnect in high-performance computing 
applications). InfiniBand addresses were too big for ifconfig to display; therefore, it was necessary to 
deprecate ifconfig and to find a tool that could display long InfiniBand addresses.

- And ifconfig does not show all the details of ip addresses assigned to interfaces anyway 

RedHat came up with replacement utilities which are ss and ip.

If you can't live without ifconfig and netstat like me. install net-tools with yum.
# yum install net-tools

Use command #ip addr to see the IP addresses of your networking devices:


Use the command #nmcli d show (NetworkManager Command Line Interface, device, show) to see more in-depth 
information about your networking devices:


The Planet remains safe with Jedi Linux.

Komorebi 2 is an Animated Wallpaper App for Ubuntu. A bit creepy…if you ask me.

Ron Jagannathan has written 54 articles

Ronan is a Caffeine dependent life-form from Planet Earth who wants to be a Jedi Knight of cloud computing. A man of mystery and power, whose power is exceeded only by his mystery. Quantum Physicist, TransHumanist, Systems Architect, Unix Administrator, Artificial Intelligence, Machine Learning and DIY Gadget enthusiast. Believes that the Universe has a high probability of being a simulation.
But he's real and hopefully some of his readers are too.
email: Ron.Jagannathan@gmail.com ph: 202 355 5205
https://www.linkedin.com/in/ronjagan/
My Famous Quotes:
“In a Unix Universe, God is known by a four letter word called root. To err is human...to really foul requires you to be root.. err.. god.” ― Ron Jagannathan

Github: github.com/ronjag
Linkedin: linkedin.com/in/ronjagan/

“Quotes found on the Internet are not always accurate.” ― Abraham Lincoln

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>