Solved

How to find out the IP address of a system?

Posted on 2006-11-17
6
226 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

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Fine Tune your automatic Updates for Ubuntu / Debian
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

830 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