linux下查询内网ip命令
解决方法:
执行命令 ifconfig
结果:inet addr:后面的ip就是内网ip
eth0 Link encap:Ethernet HWaddr FE:FC:FE:6B:80:49
inet addr:192.168.1.113 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::fcfc:feff:fe6b:8049/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:126203931362 errors:0 dropped:0 overruns:0 frame:0
TX packets:36194929416 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:195324864138813 (177.6 TiB) TX bytes:3557164987538 (3.2 TiB)
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:65536 Metric:1
RX packets:2638902641 errors:0 dropped:0 overruns:0 frame:0
TX packets:2638902641 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:435839102204 (405.9 GiB) TX bytes:435839102204 (405.9 GiB)