摘要:
下文讲述Linux操作系统下查看网卡详细信息的方法分享,如下所示;
实现环境:
CentOS
实现思路:
使用ifconfig命令即可查看网卡信息,如下所示:
[root@localhost ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3E:11:F3:DB
inet addr:172.16.8.225 Bcast:172.16.15.255 Mask:255.255.240.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:115744215 errors:0 dropped:0 overruns:0 frame:0
TX packets:122514994 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:15627527860 (14.5 GiB) TX bytes:145541905308 (135.5 GiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:99163826 errors:0 dropped:0 overruns:0 frame:0
TX packets:99163826 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:156728312471 (145.9 GiB) TX bytes:156728312471 (145.9 GiB)