[Webinar] Streamline your web hosting managementRegister Today


How to find out the IP address of a system?

Posted on 2006-11-17
Medium Priority
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
  • 3
  • 2
LVL 11

Assisted Solution

elbereth21 earned 600 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.
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

LVL 11

Expert Comment

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

Accepted Solution

ravenpl earned 1400 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses
Course of the Month10 days, 9 hours left to enroll

612 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