本文主要是介绍ifconfig查看本机网络配置命令,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
直接执行ifconfig可以看到类似这样的信息:
[root@vm_linux_jre ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:FC:C2:E3
inet addr:10.13.69.50 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:199425 errors:0 dropped:0 overruns:0 frame:0
TX packets:209 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:12645426 (12.0 MiB) TX bytes:24829 (24.2 KiB)
Interrupt:67 Base address:0x2000
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:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)
这篇关于ifconfig查看本机网络配置命令的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!