command to get ip address in centos 7 code example Example: how to get server ip address centos $ ip addr show