how to config ip address in centos 7 code example Example 1: how to get server ip address centos $ ip addr show Example 2: set static ip centos BOOTPROTO=static