首页 > 代码库 > 查看网卡IP地址
查看网卡IP地址
[root@lnmp ~]# ifconfig eth0 Link encap:Ethernet HWaddr 00:0C:29:02:DF:96 inet addr:192.168.1.7 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fe02:df96/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:2871295 errors:0 dropped:0 overruns:0 frame:0 TX packets:1255426 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:548009625 (522.6 MiB) TX bytes:335889745 (320.3 MiB) eth1 Link encap:Ethernet HWaddr 00:0C:29:02:DF:A0 inet addr:10.0.0.7 Bcast:10.0.0.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fe02:dfa0/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1876 errors:0 dropped:0 overruns:0 frame:0 TX packets:325 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:343255 (335.2 KiB) TX bytes:23226 (22.6 KiB) 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:15562 errors:0 dropped:0 overruns:0 frame:0 TX packets:15562 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:3001426 (2.8 MiB) TX bytes:3001426 (2.8 MiB)
查看网卡IP地址
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。