centos linux 7 check ip address code example Example 1: how to get server ip address centos $ ip addr show Example 2: centos ip ip addr show