linux 系统ip地址的查询方式命令:ifconfig
[ysq@localhost Desktop]$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:1C:42:14:2C:D1
inet addr:10.0.0.36 Bcast:10.0.0.255 Mask:255.255.255.0
inet6 addr: fe80::21c:42ff:fe14:2cd1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:12322281 errors:0 dropped:0 overruns:0 frame:0
TX packets:733936 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2051559609 (1.9 GiB) TX bytes:976015681 (930.8 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2439 errors:0 dropped:0 overruns:0 frame:0
TX packets:2439 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:298411 (291.4 KiB) TX bytes:298411 (291.4 KiB)
[ysq@localhost Desktop]$
此命令的ip地址为:10.0.0.36