Linux下得到本機的IP地址

ifconfignginx

[root@localhost  nginx-1.5.6]# ifconfigoop

eth0      Link encap:Ethernet  HWaddr 00:0C:29:8D:57:B1  spa

          inet addr:192.168.7.235  Bcast:192.168.7.255  Mask:255.255.255.0.net

          inet6 addr: fe80::20c:29ff:fe8d:57b1/64 Scope:Linkget

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1io

          RX packets:438891 errors:2 dropped:2 overruns:0 frame:0ast

          TX packets:62862 errors:0 dropped:0 overruns:0 carrier:0queue

          collisions:0 txqueuelen:1000 error

          RX bytes:284040359 (270.8 MiB)  TX bytes:4354194 (4.1 MiB)co

          Interrupt:19 Base address:0x2000 


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:26 errors:0 dropped:0 overruns:0 frame:0

          TX packets:26 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0 

          RX bytes:1538 (1.5 KiB)  TX bytes:1538 (1.5 KiB)

相關文章
相關標籤/搜索