HowTo: Determine an IP Address My Linux Server

by on January 17, 2003 · 0 comments· LAST UPDATED January 17, 2014

in , ,

I am a new Linux system user. How do I find out the IP address of Linux server? How do I determine the IP address of Linux server using command line options?

You can use any one of the following command to find the IP address on Linux operating systems using command line based options:

Tutorial details
DifficultyEasy (rss)
Root privilegesNo
RequirementsNone
Estimated completion time1m
a) ip command - show / manipulate routing, devices, policy routing and tunnels.

b) ifconfig command - configure a network interface.

Determine ip address using ifconfig command

In this example, find the ip address of the server using the following ifconfig command:
$ ifconfig
$ ifconfig eth0

Sample outputs:

Fig.01: ifconfig in action

Fig.01: ifconfig in action

Determine ip address using ip command

In this example, find the ip address of the server using the following ifconfig command:
$ ip a list
$ ip a list eth0

Sample outputs:

Fig.02 ip command in action

Fig.02 ip command in action

TwitterFacebookGoogle+PDF versionFound an error/typo on this page? Help us!

{ 0 comments… add one now }

Leave a Comment

Tagged as: , ,

Previous Faq:

Next Faq: