论坛风格切换切换到宽版
  • 767阅读
  • 7回复

[问题求助]有两块同一种芯片网卡的机器,有什么简单的方法可判断哪个是eth0 [复制链接]

上一主题 下一主题
离线buhuien.
 
发帖
2060
C币
-140284
威望
363
贡献值
1
银元
-1
铜钱
4428
人人网人气币
0
只看楼主 倒序阅读 使用道具 楼主  发表于: 2009-05-01
请.问两块同一种芯片网卡的机器,有什么简单的方法可以判断哪个是eth0哪个是.eth1?最好用一两条命令就可疑判别,不要插拔网线..

评价一下你浏览此帖子的感受

精彩

感动

搞笑

开心

愤怒

无聊

灌水
离线huandream1.
发帖
1997
C币
-559569
威望
361
贡献值
5
银元
-1
铜钱
4513
人人网人气币
0
只看该作者 沙发  发表于: 2010-04-13
一个插网线另一个不插
mii-tool

离线石油人.
发帖
2053
C币
-152472
威望
377
贡献值
1
银元
-3
铜钱
4598
人人网人气币
0
只看该作者 板凳  发表于: 2010-04-13
dmesg | grep eth0看出芯片型号

离线lin0.
发帖
1969
C币
-235422
威望
377
贡献值
1
银元
-1
铜钱
4513
人人网人气币
0
只看该作者 地板  发表于: 2010-04-13
[quote]原帖由 "bingosek"]dmesg | grep eth0看出芯片型号[/quote 发表:


有的主板两个网卡都是一样的芯片!

离线junbao99.
发帖
2069
C币
-152526
威望
375
贡献值
1
银元
-2
铜钱
4703
人人网人气币
0
只看该作者 4楼 发表于: 2010-04-13
mii-tools 我還沒用過,
我之前寫過一個笨笨的  shell script 來解決這個問題:
http://bbs.chinaunix.net/forum/viewtopic.php?t=194413

离线grassgrass.
发帖
2055
C币
-140287
威望
348
贡献值
1
银元
-1
铜钱
4591
人人网人气币
0
只看该作者 5楼 发表于: 2010-04-13


QUOTE:原帖由 "ljily000" 发表:


有的主板两个网卡都是一样的芯片!

那你一样可以dmesg在最后一部分找:
eth0: Tigon3 [partno(BCM95721) rev 4101 PHY(5750)] (PCIX:100MHz:32-bit) 10/100/1000BaseT Ethernet 00:11:25:41:5b:5c

eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[1] Split[0] WireSpeed[1] TSOcap[1]

ACPI: PCI interrupt 0000:08:00.0[A] ->; GSI 16 (level, low) ->; IRQ 169

PCI: Setting latency timer of device 0000:08:00.0 to 64

divert: allocating divert_blk for eth1

eth1: Tigon3 [partno(BCM95721) rev 4101 PHY(5750)] (PCIX:100MHz:32-bit) 10/100/1000BaseT Ethernet 00:11:25:41:5b:5d

eth1: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[1] Split[0] WireSpeed[1] TSOcap[1]

hw_random hardware driver 1.0.0 loaded

ACPI: PCI interrupt 0000:00:1d.7[D] ->; GSI 23 (level, low) ->; IRQ 185
复制代码
看到IRQ的区别没?如果要更详细的信息,可以用lspci -vv:
07:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5721 Gigabit Ethernet PCI Express (rev 11)

        Subsystem: IBM: Unknown device 02c6

        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B-

        Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=fast >;TAbort- <TAbort- <MAbort- >;SERR- <PERR-

        Latency: 0, Cache Line Size 10

        Interrupt: pin A routed to IRQ 169

        Region 0: Memory at caff0000 (64-bit, non-prefetchable) [size=64K]

        Capabilities: [48] Power Management version 2

                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot+,D3cold+)

                Status: D0 PME-Enable- DSel=0 DScale=1 PME-

        Capabilities: [50] Vital Product Data

        Capabilities: [58] Message Signalled Interrupts: 64bit+ Queue=0/3 Enable-

                Address: 200000a012000000  Data: 0a01

        Capabilities: [d0] Express Endpoint IRQ 0

                Device: Supported: MaxPayload 128 bytes, PhantFunc 0, ExtTag+

                Device: Latency L0s <4us, L1 unlimited

                Device: AtnBtn- AtnInd- PwrInd-

                Device: Errors: Correctable- Non-Fatal- Fatal- Unsupported-

                Device: RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-

                Device: MaxPayload 128 bytes, MaxReadReq 4096 bytes

                Link: Supported Speed 2.5Gb/s, Width x1, ASPM L0s, Port 0

                Link: Latency L0s <2us, L1 <64us

                Link: ASPM Disabled RCB 64 bytes CommClk- ExtSynch-

                Link: Speed 2.5Gb/s, Width x1

        Capabilities: [100] Advanced Error Reporting

        Capabilities: [13c] Virtual Channel



08:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5721 Gigabit Ethernet PCI Express (rev 11)

        Subsystem: IBM: Unknown device 02c6

        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B-

        Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=fast >;TAbort- <TAbort- <MAbort- >;SERR- <PERR-

        Latency: 0, Cache Line Size 10

        Interrupt: pin A routed to IRQ 169

        Region 0: Memory at c8ff0000 (64-bit, non-prefetchable) [size=64K]

        Capabilities: [48] Power Management version 2

                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot+,D3cold+)

                Status: D0 PME-Enable- DSel=0 DScale=1 PME-

        Capabilities: [50] Vital Product Data

        Capabilities: [58] Message Signalled Interrupts: 64bit+ Queue=0/3 Enable-

                Address: 0014008010000000  Data: 0000

        Capabilities: [d0] Express Endpoint IRQ 0

                Device: Supported: MaxPayload 128 bytes, PhantFunc 0, ExtTag+

                Device: Latency L0s <4us, L1 unlimited

                Device: AtnBtn- AtnInd- PwrInd-

                Device: Errors: Correctable- Non-Fatal- Fatal- Unsupported-

                Device: RlxdOrd- ExtTag- PhantFunc- AuxPwr- NoSnoop-

                Device: MaxPayload 128 bytes, MaxReadReq 512 bytes

                Link: Supported Speed 2.5Gb/s, Width x1, ASPM L0s, Port 0

                Link: Latency L0s <2us, L1 <64us

                Link: ASPM Disabled RCB 64 bytes CommClk- ExtSynch-

                Link: Speed 2.5Gb/s, Width x1

        Capabilities: [100] Advanced Error Reporting

        Capabilities: [13c] Virtual Channel
复制代码

离线pre8.
发帖
2069
C币
-60870
威望
354
贡献值
1
银元
-2
铜钱
4484
人人网人气币
0
只看该作者 6楼 发表于: 2010-04-13
靠近cpu的那个pic槽的就是eth0

离线hulutang.
发帖
2136
C币
-262553
威望
417
贡献值
1
银元
-1
铜钱
4723
人人网人气币
0
只看该作者 7楼 发表于: 2010-04-13
[quote]原帖由 "鸿羽"]靠近cpu的那个pic槽的就是eth0[/quote 发表:

同意
快速回复
限100 字节
如果您在写长篇帖子又不马上发表,建议存为草稿
 
上一个 下一个