Centos7查看IP
查看IP
ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1 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 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:1c:42:e6:31:fb brd ff:ff:ff:ff:ff:ff inet 10.211.55.21/24 brd 10.211.55.255 scope global dynamic eth0 valid_lft 1330sec preferred_lft 1330sec inet6 fdb2:2c26:f4e4:0:21c:42ff:fee6:31fb/64 scope global noprefixroute dynamic valid_lft 2591964sec preferred_lft 604764sec inet6 fe80::21c:42ff:fee6:31fb/64 scope link valid_lft forever preferred_lft forever
本博客内容全部经过本人亲自测试,转载请说明转载地址