1.ifconfig查看ip信息,root用户下
[root@edgzrip2 ~]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:50:56:2B:27:67
inet addr:192.168.23.30 Bcast:192.168.23.255 Mask:255.255.255.0
inet6 addr: fe80::250:56ff:fe2b:2767/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1419 errors:0 dropped:0 overruns:0 frame:0
TX packets:660 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:92880 (90.7 KiB) TX bytes:27936 (27.2 KiB)
Interrupt:59 Base address:0x2024
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0