HostOnNet Blog

ip

Looking for Linux Server Admin or WordPress Expert? We can help.

To list all IP address in your server, run

ip addr | grep inet | awk '{ print $2; }' | sed 's/\/.*$//'

Example

[root@3blogger ~]# ip addr | grep inet | awk '{ print $2; }' | sed 's/\/.*$//'
127.0.0.1
::1
173.208.216.106
173.208.216.107
fe80::223:8bff:fee0:2adc
[root@3blogger ~]# 

Sites where you can check your IP

Posted in CentOS. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.