Show IP address in Centos 7

Your Centos 7 system will not come with ifconfig by default so you must use the “ip” command to list ip addresses

# ip addr
1: lo:  mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever

Be the first to comment

Leave a Reply