How To Find All IP Addresses on Linux

By Angsuman Chakraborty, Gaea News Network
Sunday, September 9, 2007

Run the command:
ip address show
In the output you will find lines like these:
inet 127.0.0.1/8 scope host lo
inet 192.168.1.10/24 brd 192.168.1.255 scope global eth1

The highlighted portions are your (ipv4) ip addresses.

The /8 or /24 represents your network. /8 means your subnet mask is 255.0.0.0 and /24 means your subnet mask is 255.255.255.0. You will not have a subnet typically for a point-to-point connection.

Note: The lines containing inet6 provides the ipv6 addresses.

Discussion
September 30, 2008: 12:10 am

what do I type that in?


bala
October 4, 2007: 9:30 pm

I want to know the IP address of the LINUX SERVER for practicing the linux commnads. We have a network system in our office.

YOUR VIEW POINT
NAME : (REQUIRED)
MAIL : (REQUIRED)
will not be displayed
WEBSITE : (OPTIONAL)
YOUR
COMMENT :