How to find out the IP address of a system?

Hi:

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,

Somits
somitsAsked:
Who is Participating?
 
ravenplConnect With a Mentor Commented:
/sbin/ip addr
/sbin/ip link
0
 
elbereth21Connect With a Mentor Commented:
Hi somits,
the command is similar: ifconfig

Elbereth.
0
 
somitsAuthor Commented:
Hi:

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

Thanks

Somits
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
elbereth21Commented:
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.
0
 
elbereth21Commented:
What linux distro are you currently using?
0
 
ravenplCommented:
The latter shows You HW info (like MAC) even the link is down/unused.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.