
同じマザーボードを搭載したコンピューターが 2 台あり、それぞれにイーサネット ポートが 2 つあります。
1 台のコンピューターでは、問題なく正常に動作します。
他のコンピュータでは、何らかの理由で、ポートの 1 つが Linux によって無効にされており (BIOS を確認しましたが、そこでは有効になっています)、他のポートの速度も、予想される 1 Gbps ではなく 100 Mbps に制限されていますが、これはケーブルが問題の原因である可能性があります。
ifconfig のサンプルがあります。問題のあるコンピュータでは、p5p1 がありません。
$ ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:1292 (1.2 KB) TX bytes:1292 (1.2 KB)
p4p1 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.0.0
inet6 addr: xx::xx:xx:xx:xx/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:296 errors:0 dropped:0 overruns:0 frame:0
TX packets:270 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:315437 (315.4 KB) TX bytes:32060 (32.0 KB)
Interrupt:16 Memory:f7200000-f7220000
[following missing on computer with problem]
p5p1 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:17 Memory:df100000-df120000
そこで、 でlshw
ネットワーク情報を確認したところ、 がp5p1
見つかりましたが、なぜか無効になっています。そのポートにケーブルを接続すると、ポートは期待どおりに起動します (つまり、ライトが点灯します) が、Linux では依然として見つかりません。
$ sudo lshw -c NET
*-network
description: Ethernet interface
product: 82574L Gigabit Network Connection
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:03:00.0
logical name: p4p1
version: 00
serial: xx:xx:xx:xx:xx:xx
size: 100Mbit/s
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=2.1-2 ip=10.0.0.1 latency=0 link=yes multicast=yes port=twisted pair speed=100Mbit/s
resources: irq:16 memory:f7200000-f721ffff ioport:d000(size=32) memory:f7220000-f7223fff
*-network DISABLED
description: Ethernet interface
product: 82574L Gigabit Network Connection
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:04:00.0
logical name: p5p1
version: 00
serial: xx:xx:xx:xx:xx:xx
capacity: 1Gbit/s
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=2.1-2 latency=0 link=no multicast=yes port=twisted pair
resources: irq:17 memory:f7100000-f711ffff ioport:c000(size=32) memory:f7120000-f7123fff
Linux が起動時にポートを無効にする理由をご存知ですか?
アップデート:
次の方法でイーサネット ポートを有効にできることがわかりました。
sudo ip link set up p5p1
しかし、それだけではダウンした理由が説明できません。再起動すると、再び無効に戻ります。
(見るUbuntu 15.10 でイーサネットを有効化および無効化する)
Chai T. Rex の提案に従って、別のコンピューターに 1Gbps 接続で長いケーブルを接続しましたが、問題なく動作しました。接続は 100Mbps ではなく 1Gbps であることがわかりました...