Solved

How to find out the IP address of a system?

Posted on 2006-11-17
6
227 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
[X]
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
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
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
LogmeIn using Linux Ubuntu 16.04 6 184
CLI command keep running after close 7 73
Apache LDAP Authentication 20 72
Linux 3 59
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
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,…
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.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

734 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