How to find out the IP address of a system?

Posted on 2006-11-17
Last Modified: 2013-12-16

I'd like to find out the IP address of our Linux system. On Windows, we've the command "ipconfig /all" and it list all the info about the IP addresses that are assigned to a system. Which command should we use to get the same info on a Linux terminal?

Thanks a lot,

Question by:somits
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 11

Assisted Solution

elbereth21 earned 150 total points
ID: 17965856
Hi somits,
the command is similar: ifconfig


Author Comment

ID: 17965876

Thanks a lot for the info. And how about the MAC address?  Which command to get the MAC address of the NIC card eth0.


LVL 11

Expert Comment

ID: 17965897
Ifconfig also shows your MAC (HWAddress)
Other useful command are ifup or ifdown to, respectively start and stop an interface.
Your current configuration is saved in a file which in RedHat based distributions is under /etc/sysconfig/network-scripts/ifcfg-eth0.
It also contains your MAC and default gateway.
WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

LVL 11

Expert Comment

ID: 17965905
What linux distro are you currently using?
LVL 43

Accepted Solution

ravenpl earned 350 total points
ID: 17965966
/sbin/ip addr
/sbin/ip link
LVL 43

Expert Comment

ID: 17965973
The latter shows You HW info (like MAC) even the link is down/unused.

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question