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 [...]

, ,