Solved

How to find out the IP address of a system?

Posted on 2006-11-17
6
225 Views
Last Modified: 2013-12-16
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
0
Comment
Question by:somits
  • 3
  • 2
6 Comments
 
LVL 11

Assisted Solution

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

Elbereth.
0
 

Author Comment

by:somits
ID: 17965876
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
 
LVL 11

Expert Comment

by:elbereth21
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.
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 11

Expert Comment

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

Accepted Solution

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

Expert Comment

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

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

803 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