HostOnNet Blog

ip

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.