
두 개의 이더넷 포트가 있는 동일한 마더보드를 사용하는 두 대의 컴퓨터가 있습니다.
한 컴퓨터에서는 아무 문제 없이 매력적으로 작동합니다.
다른 컴퓨터에서는 어떻게든 포트 중 하나가 Linux에 의해 비활성화되고(BIOS를 확인했는데 그곳에서 활성화되었습니다) 다른 포트의 속도도 예상되는 1Gbps가 아닌 100Mbps로 제한됩니다. 문제.
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
하지만 그것이 다운된 이유를 실제로 설명하지는 않습니다. 재부팅 후 다시 비활성화됨으로 돌아갑니다.
(보다우분투 15.10에서 이더넷 활성화 및 비활성화)
Chai T. Rex가 제안한 대로 긴 케이블을 다른 컴퓨터에 1Gbps 연결로 연결했는데 잘 작동합니다. 연결이 100Mbps가 아닌 1Gbps인 것을 보니...