Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to find out the IP address of a system?

Posted on 2006-11-17
6
Medium Priority
?
230 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 600 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 11

Expert Comment

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

Accepted Solution

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month8 days, 15 hours left to enroll

877 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