Linux快速判断网卡名称和物理位置
某Linux系统有两块网卡,都是Realtek 8139的卡一模一样,ifconfig看不出什么区别,如何找出对应的网卡名称和物理位置?
方法一:给其中一个配IP地址,拿个同网段笔记本挨个试。ping测试。
方法二:把其中一个网线拔下来,插上,拔下来用dmesg查看最后一条信息
eth0: link down可判断,FreBSD测试同样可以。
===========================
后记
lspci命令可以查看到网卡型号信息,但无法分辨哪个是哪个。ifconfig只能显示ip mac 流量信息。
# lspci
02:09.0 Ethernet controller: Intel Corporation 82546EB Gigabit Ethernet Controller (Copper) (rev 01)
02:09.1 Ethernet controller: Intel Corporation 82546EB Gigabit Ethernet Controller (Copper) (rev 01)
# ifconfig
eth1 Link encap:Ethernet HWaddr 00:0C:76:6E:F9:DB
inet addr:192.168.0.200 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::20c:76ff:fe6e:f9db/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:77509865 errors:0 dropped:125 overruns:0 frame:0
TX packets:41197400 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2162958171 (2.0 GiB) TX bytes:678763797 (647.3 MiB)
Base address:0xa400 Memory:f1000000-f1020000
END
上一篇: 音乐欣赏marching season
下一篇: Linux学习笔记之LVS二NAT方式


目前这篇文章还没有评论(Rss)