How To Find All IP Addresses on Linux
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.
Filed under Fedora 7, Fedora Core 6, Headline News, How To, Linux, Linux Migration, Web, Web Hosting |
|
RSS 2.0 |
Trackback this Article
|
Email this Article
You may also like to read |






































October 4th, 2007 at 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.