Author Topic: OpenWRT Router: One ethernet port does not work  (Read 8336 times)

0 Members and 1 Guest are viewing this topic.

Offline soldarTopic starter

  • Super Contributor
  • ***
  • Posts: 3158
  • Country: es
OpenWRT Router: One ethernet port does not work
« on: November 03, 2019, 10:11:42 pm »
In an earlier thread I flashed a router with OpenWRT so I now have a (TP-Link TL-WR841N/ND v9, Firmware Version OpenWrt Chaos Calmer 15.05.1 / LuCI 15.05-149) router running OpenWRT.

For some unknown reason one of the four LAN ports (#1) does not work. I keep forgetting and each time I plug something there it takes me a while to realize the problem is with the router port.

Is there anything I can do? Any tests? Any configuration? I do not know the first thing about the router or about OPENWRT but it seems to me all four LAN ports should behave the same way. Maybe it is a hardware problem. How can I know?
All my posts are made with 100% recycled electrons and bare traces of grey matter.
 

Offline Whales

  • Super Contributor
  • ***
  • Posts: 1899
  • Country: au
    • Halestrom
Re: OpenWRT Router: One ethernet port does not work
« Reply #1 on: November 03, 2019, 10:55:24 pm »
I was going to say "it's the WAN port", but your switching table says otherwise.

Have not encountered this.  I would suspect either hardware fault or firmware fault. 

1. Have you actually applied the settings you screenshot?

2. Did the issue exist with the factory (non-OpenWRT) firmware?

3. Do you even get a link light to come on when you plug another device in?  Make sure it's a full desktop computer, some portable devices with RJ45's (including printers & some usb-ethernet devices) are lazy with their link detect & don't send pulses out.

4. Run wireshark on a computer plugged into that port and reboot the router.  See if the port gets enabled by the bootloader for a few seconds at the start of boot.  If so then it's probably an OpenWRT issue.

Obligatory: it would be better to ask on the LEDE/Openwrt forums :)

Offline amspire

  • Super Contributor
  • ***
  • Posts: 3802
  • Country: au
Re: OpenWRT Router: One ethernet port does not work
« Reply #2 on: November 03, 2019, 10:58:50 pm »
I am not sure why LAN1 is not working, but I see plenty of older routers with a lan port damaged by some lightening strike-type incident. It is a 5 year old router, so it has probably been through a few storms. You can always check the LAN transformer windings work - there should be one between the green/green-white wires on the ethernet cable and one between the orange/orange-white wires. Should look like a short.

Are there any LEDS on the LAN1 port connector, and if so, do they respond at all?

The easiest way to check if the port works may be to revert to the TP-Link firmware.

Otherwise, just put a bit of tape over LAN1 and live with 3 ports.
 

Offline soldarTopic starter

  • Super Contributor
  • ***
  • Posts: 3158
  • Country: es
Re: OpenWRT Router: One ethernet port does not work
« Reply #3 on: November 03, 2019, 11:19:33 pm »
 >> Have not encountered this.  I would suspect either hardware fault or firmware fault. 
>> 1. Have you actually applied the settings you screenshot?

That is what I found by default. I have not made any changes. I was hoping it would provide some useful info.

>> 2. Did the issue exist with the factory (non-OpenWRT) firmware?

I do not know. It was a router I picked up from the junk. It had a proprietary firmware which I could not use and that is why I flashed it. It is all in another thread.

>> 3. Do you even get a link light to come on when you plug another device in?  Make sure it's a full desktop computer, some portable devices with RJ45's (including printers & some usb-ethernet devices) are lazy with their link detect & don't send pulses out.

I did some tests right now. The router light flashes which means it detects the connection. The computer also detects the connection. And, what do you know? Now it's working! I get response to Ping and can access the LAN.

Well, I don't know what happened. It has been not working for all this time. I wonder if it may be a bad HW connection which will happen again. I will have to keep an eye on it.

I will post again if it happens again. Thanks for your help.
All my posts are made with 100% recycled electrons and bare traces of grey matter.
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9007
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: OpenWRT Router: One ethernet port does not work
« Reply #4 on: November 04, 2019, 01:24:05 pm »
I did some tests right now. The router light flashes which means it detects the connection. The computer also detects the connection. And, what do you know? Now it's working! I get response to Ping and can access the LAN.

Well, I don't know what happened. It has been not working for all this time. I wonder if it may be a bad HW connection which will happen again. I will have to keep an eye on it.

I will post again if it happens again. Thanks for your help.
Bad solder joints or dirty connector.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 
The following users thanked this post: soldar

Offline Syntax Error

  • Frequent Contributor
  • **
  • Posts: 584
  • Country: gb
Re: OpenWRT Router: One ethernet port does not work
« Reply #5 on: November 06, 2019, 08:51:00 pm »
One observation about your Luci Switch page, should the CPU(eth0) be 'tagged' as you've enabled VLAN functionality?
The LAN interface will need to be hooked to the physical connection of (Switch VLAN) eth0.1

I had a look at the .dtsi files on the Github repo (  ...openwrt/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v9.dts etc ) and there's nothing to suggest LAN1 is configured as anything other than a LAN port.

Edit > set CPU(eth0) to Tagged
« Last Edit: November 06, 2019, 10:43:53 pm by Syntax Error »
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7754
  • Country: de
  • A qualified hobbyist ;)
Re: OpenWRT Router: One ethernet port does not work
« Reply #6 on: November 06, 2019, 09:03:10 pm »
BTW, v15 is quite old. The current release is 18.06.4.
 

Offline Black Phoenix

  • Super Contributor
  • ***
  • Posts: 1129
  • Country: hk
Re: OpenWRT Router: One ethernet port does not work
« Reply #7 on: November 07, 2019, 09:27:19 am »
BTW, v15 is quite old. The current release is 18.06.4.

His router is one of the 4/32 ones: https://openwrt.org/toh/hwdata/tp-link/tp-link_tl-wr841n_v9

Yes it will support 18.06.4 and the new future 19.07 but nothing more after that.
 

Offline soldarTopic starter

  • Super Contributor
  • ***
  • Posts: 3158
  • Country: es
Re: OpenWRT Router: One ethernet port does not work
« Reply #8 on: November 11, 2019, 01:19:39 pm »
BTW, v15 is quite old. The current release is 18.06.4.

Sorry, I copied that from the other thread where I installed OpenWRT. Later in that thread I upgraded to what I now have: OpenWrt 18.06.4 r7808-ef686b7292 / LuCI openwrt-18.06 branch (git-19.170.32094-4d6d8bc)
All my posts are made with 100% recycled electrons and bare traces of grey matter.
 

Offline soldarTopic starter

  • Super Contributor
  • ***
  • Posts: 3158
  • Country: es
Re: OpenWRT Router: One ethernet port does not work
« Reply #9 on: November 11, 2019, 01:28:27 pm »
One observation about your Luci Switch page, should the CPU(eth0) be 'tagged' as you've enabled VLAN functionality?
The LAN interface will need to be hooked to the physical connection of (Switch VLAN) eth0.1

I had a look at the .dtsi files on the Github repo (  ...openwrt/target/linux/ath79/dts/qca9533_tplink_tl-wr841-v9.dts etc ) and there's nothing to suggest LAN1 is configured as anything other than a LAN port.

Edit > set CPU(eth0) to Tagged

I have no clue what any of this means.  That's how little I know.

For now the router (being used as a switch) is working OK and I am inclined not to touch it until there is some good reason to do it.
All my posts are made with 100% recycled electrons and bare traces of grey matter.
 

Offline Syntax Error

  • Frequent Contributor
  • **
  • Posts: 584
  • Country: gb
Re: OpenWRT Router: One ethernet port does not work
« Reply #10 on: November 11, 2019, 05:33:01 pm »
@soldar :  Simply, in LuCI go to the Switch page and change the dropdown option under CPU(eth0) from untagged to tagged, then save and apply < you might need to reboot. This associates the LAN ports with ethernet-zero (eth0), which is the "CPU" process running OpenWRT.

You can also ask on the OpenWRT Forum https://forum.openwrt.org/

FYI the Github repositry https://github.com/openwrt is the stable mirror of the development repo git.openwrt.org/openwrt and is always a good place to start hunting for answers.
 

Offline Monkeh

  • Super Contributor
  • ***
  • Posts: 7992
  • Country: gb
Re: OpenWRT Router: One ethernet port does not work
« Reply #11 on: November 11, 2019, 05:50:38 pm »
@soldar :  Simply, in LuCI go to the Switch page and change the dropdown option under CPU(eth0) from untagged to tagged, then save and apply < you might need to reboot. This associates the LAN ports with ethernet-zero (eth0), which is the "CPU" process running OpenWRT.

That would tag traffic from all ports so it appears on eth0.1, and probably lock him out. Untagged is totally fine, all traffic is on eth0. You'll note all the other ports are working just fine..

The configuration is fine, and the port is faulty.
« Last Edit: November 11, 2019, 05:56:32 pm by Monkeh »
 

Offline soldarTopic starter

  • Super Contributor
  • ***
  • Posts: 3158
  • Country: es
Re: OpenWRT Router: One ethernet port does not work
« Reply #12 on: November 11, 2019, 06:23:04 pm »
Yes, as long as the thing is working I would rather not touch it.

Regarding the port, it is working OK but I have not touched the cable. I am afraid it may fail again if I so much as unplug the cable. Maybe there is a bad solder or loose connection.
All my posts are made with 100% recycled electrons and bare traces of grey matter.
 

Offline soldarTopic starter

  • Super Contributor
  • ***
  • Posts: 3158
  • Country: es
Re: OpenWRT Router: One ethernet port does not work
« Reply #13 on: November 11, 2019, 09:34:45 pm »
Well, whaddayaknow, I spoke too soon. I unplugged the cable and now the port only works marginally. I guess, as has been said, it is probably a bad connection somewhere. For now I will just not use that port. When I decide to look into it I will look for the obvious and easy (bad solder, etc). If that does not fix it I might try just holding the RJ45 jack pushed in and if that works (it sometimes has worked in other cases) I will glue the jack in place.

And if it still doesn't work reliably I will just block it because I keep forgetting about the problem and keep plugging things in.
All my posts are made with 100% recycled electrons and bare traces of grey matter.
 

Offline Monkeh

  • Super Contributor
  • ***
  • Posts: 7992
  • Country: gb
Re: OpenWRT Router: One ethernet port does not work
« Reply #14 on: November 12, 2019, 01:22:54 am »
And while I remember..

FYI the Github repositry https://github.com/openwrt is the stable mirror of the development repo git.openwrt.org/openwrt and is always a good place to start hunting for answers.

No, it isn't the 'stable' mirror - it's a mirror. With all branches. Master being very much not stable.
 

Offline soldarTopic starter

  • Super Contributor
  • ***
  • Posts: 3158
  • Country: es
Re: OpenWRT Router: One ethernet port does not work
« Reply #15 on: November 12, 2019, 09:58:17 am »
This problem with the bad port is looking stranger every time I look at it.

Using the Linux box, if the network cable is not connected when doing Ping the computer gives message "Network is unreachable" but when the cable is plugged into the bad port  the computer says "From 192.168.10.101 Destination host unreachable". That IP address is the computer itself. So, somehow it seems the physical layer is connected but the software connection is not. Both the router and the computer show the physical cable as connected. So it is looking less like a HW problem and more like a SW problem.

Just unplugging the Ethernet cable from the bad port and plugging it into another port solves the problem so it is certainly a problem with that port and not with the cable or computer.

Any ideas of what kind of test I could do next?
 
E.T.A.: Ha! After a few times testing, plugging and unplugging, one time it started working correctly and now it seems to be working continuously and reliably, like it was doing before I touched it.

This reminds me of problems like an oscillator which will not start oscillating and you have to plug/unplug the device several times but once it starts it will continue to oscillate indefinitely.
« Last Edit: November 12, 2019, 10:04:19 am by soldar »
All my posts are made with 100% recycled electrons and bare traces of grey matter.
 

Offline soldarTopic starter

  • Super Contributor
  • ***
  • Posts: 3158
  • Country: es
Re: OpenWRT Router: One ethernet port does not work
« Reply #16 on: November 12, 2019, 01:39:34 pm »
Jiggling the Ethernet cable at the router has no effect. If the connection is working it continues to work and if it is not working it will still not work.

If it is working and I disconnect the other end, at the computer, and plug in again, then it stops working.

It seems restarting the router several times will sometimes get it to work.

Once it is working it will continue to work.

Only happens with LAN port #1. All others work correctly.

At this point it looks to me more and more like a glitch with OpenWRT.
All my posts are made with 100% recycled electrons and bare traces of grey matter.
 

Offline Monkeh

  • Super Contributor
  • ***
  • Posts: 7992
  • Country: gb
Re: OpenWRT Router: One ethernet port does not work
« Reply #17 on: November 12, 2019, 01:49:13 pm »
It's a hardware switch. It's almost without doubt a hardware problem.
 

Offline soldarTopic starter

  • Super Contributor
  • ***
  • Posts: 3158
  • Country: es
Re: OpenWRT Router: One ethernet port does not work
« Reply #18 on: November 12, 2019, 02:32:04 pm »
If I disable the computer Ethernet port and re-enable it then the connection continues OK but if I physically unplug the cable from the computer and plug it in again then it breaks the connection.

It seems now that if the computer's port is up and running when I start the router then the connection succeeds but if the router is started before the computer then the connection fails.

I do not know much about the hardware so I have no idea what would explain this behavior.

It is not a serious problem for me because I can just avoid using this port. The main problem is that I tend to forget and in a few weeks I will plug something in there and scratch my head for a while not realizing that there is a note right there by the router saying port #1 is iffy.

I am mainly just curious. Sometimes glitches like this happen with marginal supply voltage, temperature, etc.

E.T.A.: I tried changing the PSU but that made no difference. I tried raising the voltage a bit above the nominal 9 Vdc but the problem remains.

I guess the good thing after these tests is that I know I can get it to work and once it is working it will remain stable.
« Last Edit: November 12, 2019, 03:17:53 pm by soldar »
All my posts are made with 100% recycled electrons and bare traces of grey matter.
 

Online PA0PBZ

  • Super Contributor
  • ***
  • Posts: 5125
  • Country: nl
Re: OpenWRT Router: One ethernet port does not work
« Reply #19 on: November 12, 2019, 03:16:45 pm »
The main problem is that I tend to forget and in a few weeks I will plug something in there and scratch my head for a while not realizing that there is a note right there by the router saying port #1 is iffy.

 :-+



https://es.aliexpress.com/item/32810931193.html
Keyboard error: Press F1 to continue.
 
The following users thanked this post: Mr. Scram

Offline soldarTopic starter

  • Super Contributor
  • ***
  • Posts: 3158
  • Country: es
Re: OpenWRT Router: One ethernet port does not work
« Reply #20 on: November 12, 2019, 03:20:15 pm »
:-+

My first thought was a blob of epoxi. :)
All my posts are made with 100% recycled electrons and bare traces of grey matter.
 

Offline madires

  • Super Contributor
  • ***
  • Posts: 7754
  • Country: de
  • A qualified hobbyist ;)
Re: OpenWRT Router: One ethernet port does not work
« Reply #21 on: November 12, 2019, 05:47:59 pm »
If I disable the computer Ethernet port and re-enable it then the connection continues OK but if I physically unplug the cable from the computer and plug it in again then it breaks the connection.

It seems now that if the computer's port is up and running when I start the router then the connection succeeds but if the router is started before the computer then the connection fails.

I do not know much about the hardware so I have no idea what would explain this behavior.

Typically a problem with auto negotiation or a bad patch cable.
 

Offline soldarTopic starter

  • Super Contributor
  • ***
  • Posts: 3158
  • Country: es
Re: OpenWRT Router: One ethernet port does not work
« Reply #22 on: November 12, 2019, 07:18:43 pm »
Typically a problem with auto negotiation or a bad patch cable.

Definitely not cable or computer related because it happens with different cables and computers. Definitely related to that specific port on the router.

I know nothing about how they negotiate though. You think the port is asking too much? ;)
All my posts are made with 100% recycled electrons and bare traces of grey matter.
 

Offline Black Phoenix

  • Super Contributor
  • ***
  • Posts: 1129
  • Country: hk
Re: OpenWRT Router: One ethernet port does not work
« Reply #23 on: November 13, 2019, 07:26:40 am »

Definitely not cable or computer related because it happens with different cables and computers. Definitely related to that specific port on the router.

I know nothing about how they negotiate though. You think the port is asking too much? ;)

I don't think is software, for me its physical, something related with the port itself connector or the transformer module of the port itself. Although OpenWRT released a new version of the firmware, the OpenWrt 19.07.0-rc1, Current Stable Release Candidate. Just give it a go and tell what happen. Backup everything before, just in case.
 

Offline soldarTopic starter

  • Super Contributor
  • ***
  • Posts: 3158
  • Country: es
Re: OpenWRT Router: One ethernet port does not work
« Reply #24 on: November 13, 2019, 08:35:46 am »
I don't think is software, for me its physical, something related with the port itself connector or the transformer module of the port itself. Although OpenWRT released a new version of the firmware, the OpenWrt 19.07.0-rc1, Current Stable Release Candidate. Just give it a go and tell what happen. Backup everything before, just in case.

Well, I don't know if it is physical or psychological but after so much testing I have a pretty good handle on how to get around it. Just plug/unplug the cable until the port starts working and then leave it and it will work indefinitely.

I don't think it is worth the risk of trying the new OpenWRT 19 because I figure the chances of fixing the problem are lower than the chances of creating new and bigger problems.
All my posts are made with 100% recycled electrons and bare traces of grey matter.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf