Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4060

Troubleshooting • Ethernet connection only works through switch, not direct

$
0
0
We're running into some issues on our Pi5. We're connecting a sensor (A doppler velocity logger, Waterlinked DVL A50) over ethernet to the pi5. The DVL has a static ip address to which we set the eth0 device on the pi to be within the same subnet. When we plug the pi and DVL into a switch we can ping the sensor and everything works, however it doesn't work when we plug directly into the pi5. When plugged into the switch all the lights on the pi's ethernet port flash properly, but no lights turn on when plugged in directly.

Any ideas on what could be causing this?

Yes we've tried different cables, it also works when plugging into the pi via a USB-Ethernet adapter, however this isn't a great long term solution as we need those USB ports for other devices.

We do not have a crossover cable but everywhere online suggests that the auto-MDIX should handle that. We even tried making our own crossover cable and it still didn't work.

Here's the output from running ethtool eth0 when plugged directly into the sensor:

Code:

Settings for eth0:Supported ports: [ TP MII ]Supported link modes:   10baseT/Half 10baseT/Full                        100baseT/Half 100baseT/Full                        1000baseT/Half 1000baseT/FullSupported pause frame use: Transmit-onlySupports auto-negotiation: YesSupported FEC modes: Not reportedAdvertised link modes:  10baseT/Half 10baseT/Full                        100baseT/Half 100baseT/Full                        1000baseT/Half 1000baseT/FullAdvertised pause frame use: Transmit-onlyAdvertised auto-negotiation: YesAdvertised FEC modes: Not reportedSpeed: Unknown!Duplex: Unknown! (255)Auto-negotiation: onmaster-slave cfg: preferred slavemaster-slave status: unknownPort: Twisted PairPHYAD: 1Transceiver: externalMDI-X: Unknownnetlink error: Operation not permittedLink detected: no
And this is the output when plugged in through the switch and properly working

Code:

Settings for eth0:Supported ports: [ TP MII ]Supported link modes:   10baseT/Half 10baseT/Full                        100baseT/Half 100baseT/Full                        1000baseT/Half 1000baseT/FullSupported pause frame use: Transmit-onlySupports auto-negotiation: YesSupported FEC modes: Not reportedAdvertised link modes:  10baseT/Half 10baseT/Full                        100baseT/Half 100baseT/Full                        1000baseT/Half 1000baseT/FullAdvertised pause frame use: Transmit-onlyAdvertised auto-negotiation: YesAdvertised FEC modes: Not reportedLink partner advertised link modes:  10baseT/Half 10baseT/Full                                     100baseT/Half 100baseT/Full                                     1000baseT/FullLink partner advertised pause frame use: SymmetricLink partner advertised auto-negotiation: YesLink partner advertised FEC modes: Not reportedSpeed: 1000Mb/sDuplex: FullAuto-negotiation: onmaster-slave cfg: preferred slavemaster-slave status: slavePort: Twisted PairPHYAD: 1Transceiver: externalMDI-X: Unknownnetlink error: Operation not permittedLink detected: yes

Statistics: Posted by laser14 — Mon Aug 12, 2024 11:38 pm



Viewing all articles
Browse latest Browse all 4060

Trending Articles