linux 查看ip地址
root@iZ25shgkij6Z:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:00:2d:64
inet addr:10.170.212.195 Bcast:10.170.215.255 Mask:255.255.248.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:60214522681 errors:0 dropped:0 overruns:0 frame:0
TX packets:53737375750 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5779982507286 (5.7 TB) TX bytes:36430786551394 (36.4 TB)
Interrupt:91
eth1 Link encap:Ethernet HWaddr 00:16:3e:00:3b:ba
inet addr:123.56.102.52 Bcast:123.56.103.255 Mask:255.255.252.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9105282207 errors:0 dropped:0 overruns:0 frame:0
TX packets:465092076 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:413462383239 (413.4 GB) TX bytes:1572468220507 (1.5 TB)
Interrupt:92
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:193734856 errors:0 dropped:0 overruns:0 frame:0
TX packets:193734856 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:50274868954 (50.2 GB) TX bytes:50274868954 (50.2 GB)