Modify

Opened 6 years ago

Last modified 2 years ago

#10517 reopened defect

Problems with wan port autoconfig on netgear WNDR3700V2

Reported by: Techi Tester <techi@…> Owned by: developers
Priority: normal Milestone: Chaos Calmer 15.05
Component: base system Version: Backfire 10.03.1 RC6
Keywords: wan port autoconfig failing Cc:

Description

Hello

There is still an error with the wan port link speed auto configuration.
If connected to a 100M capable calbe mode, the link doesn't go up. Only if you set the speed fix to 100 FD or HD you will get the link.

This setting is working without a problem with the original firmware.

Regards

Attachments (0)

Change History (13)

comment:1 Changed 6 years ago by techi@…

Bug is still valid in 10.03.1

Settings without cable:

root@OpenWrt:/# ethtool eth1
Settings for eth1:

Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full

100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full

Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full

100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full

Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 10Mb/s
Duplex: Half
Port: MII
PHYAD: 4
Transceiver: external
Auto-negotiation: on
Current message level: 0x000000ff (255)

drv probe link timer ifdown ifup rx_err tx_err

Link detected: no

Settings with cable plugged in:

root@OpenWrt:/# ethtool eth1
Settings for eth1:

Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full

100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full

Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full

100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full

Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 10Mb/s
Duplex: Half
Port: MII
PHYAD: 4
Transceiver: external
Auto-negotiation: on
Current message level: 0x000000ff (255)

drv probe link timer ifdown ifup rx_err tx_err

Link detected: no

Cable replugged. WAN Port is orange blinking...
root@OpenWrt:/# ethtool eth1
Settings for eth1:

Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full

100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full

Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full

100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full

Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 10Mb/s
Duplex: Half
Port: MII
PHYAD: 4
Transceiver: external
Auto-negotiation: on
Current message level: 0x000000ff (255)

drv probe link timer ifdown ifup rx_err tx_err

Link detected: no

root@OpenWrt:/# ethtool -s eth1 advertise 100F
root@OpenWrt:/# ethtool eth1
Settings for eth1:

Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full

100baseT/Half 100baseT/Full
1000baseT/Half 1000baseT/Full

Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full

100baseT/Half 100baseT/Full

Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full
Port: MII
PHYAD: 4
Transceiver: external
Auto-negotiation: on
Current message level: 0x000000ff (255)

drv probe link timer ifdown ifup rx_err tx_err

Link detected: yes

Workaround is the following:

  1. Install the ethtools
  2. Put this in rc.local /usr/sbin/ethtool -s eth1 advertise 100F

Regards

comment:2 Changed 5 years ago by anonymous

How do I "Put this in rc.local /usr/sbin/ethtool -s eth1 advertise 100F"

Thanks!

comment:3 Changed 5 years ago by nbd

please try 12.09-rc1 or trunk

comment:4 Changed 5 years ago by nbd

  • Resolution set to no_response
  • Status changed from new to closed

comment:5 follow-up: Changed 4 years ago by Victor Istomin <victor.send.mail.here@…>

Hello,

I've encountered this in October 2012 when first tried OpenWRT. Bug was reproduced in both OpenWRT 10 and 12.09 nightly build. AFAIR, some old DD_WRT was forking, bleeding edge was broken on my hardware configuration too.

Today I've updated firmware to released Attitude Adjustment (12.09, r36088) and bug still present.

The curious thing, that the users which encountered this bug were downloaded ethtool manually (as for me, via smartphone), so ethtool will be lost during next firmware update if user forget to edit sysupgrade.conf accordingly.

Workaround from first post is still valid.

comment:6 in reply to: ↑ 5 Changed 4 years ago by Victor Istomin <victor.send.mail.here@…>

  • Resolution no_response deleted
  • Status changed from closed to reopened

Replying to Victor Istomin <victor.send.mail.here@…>:

So, I'd like to reopen it, investigate how to fix and provide patch. Can anyone surrest me where I should look at the wan port link speed auto configuration in source tree?

comment:7 Changed 4 years ago by tripolar

please try latest trunk and report back if the problem still exists.

comment:8 Changed 4 years ago by tripolar

  • Resolution set to fixed
  • Status changed from reopened to closed

comment:9 Changed 4 years ago by jow

  • Milestone changed from Backfire 10.03.2 to Chaos Calmer (trunk)

Milestone Backfire 10.03.2 deleted

comment:10 Changed 3 years ago by anonymous

  • Resolution fixed deleted
  • Status changed from closed to reopened

Have the same problem on my Buffalo WZR-HP-G300NH r44685.

After a power cycle or "/etc/init.d/network restart" my wanport wont come online again. (in 95% of the time it wont, very lucky if it comes online )

ethtool -s eth1 speed 100 duplex full autoneg off

brings the port online in no time

comment:11 Changed 3 years ago by anonymous

The above Buffalo WZR-HP-G300NH is the version with the rtl8366rb switch.

comment:12 Changed 2 years ago by 16bf80e2@…

wndr3800 - OpenWrt Chaos Calmer 15.05-r47162 and in trunk bug confirmed.

cat /etc/init.d/ethtool

#!/bin/sh /etc/rc.common
# Copyight (C) 2006 OpenWrt.org
START=41
start() {
	ethtool -s $(uci -P/var/state get network.wan.ifname) speed 100 duplex full autoneg off
}

stop() {
	ethtool -s $(uci -P/var/state get network.wan.ifname) speed 1000 duplex full autoneg off
}

ls -l /etc/rc.d/S41ethtool
lrwxrwxrwx 1 root root 17 Oct 14 02:30 /etc/rc.d/S41ethtool -> ../init.d/ethtool

comment:13 Changed 2 years ago by anonymous

REFERENCES

WNDR3400v1 Wan/switch port configuration wrong
/ticket/13000.html

WNDR3800 WAN port up status not updated to /var/state
/ticket/11952.html

Netgear WNDR3700v2 no WAN connection
/ticket/11800.html

TL-WR1043ND Ver 1.8 Board Rev 1.1 WAN PORT Issue->
/ticket/11898.html

WNDR3700v2 no internet on WAN port in specific enviroment.
/ticket/11041.html

Problems with wan port autoconfig on netgear WNDR3700V2
/ticket/10517.html

Config error in /e/c/wireless (wrong HTmode on ch161) makes LAN dead to the world (WNDR3700v2)
/ticket/10181.html

WNDR3700 (v1) switch issues.
/ticket/7980.html

WNDR4300: Adding a VLAN in the Web UI causes a loss of connectivity
/ticket/19391.html

WAN port on WNDR3700v2 does not work
/ticket/15006.html

WNDR3800 WAN port can't work on some situation
/ticket/19630.html

WNDR4300 - number of errors
/ticket/19377.html

broadcom
http://wiki.openwrt.org/toh/netgear/wndr3400

atheros
http://wiki.openwrt.org/toh/netgear/wndr3700
http://wiki.openwrt.org/toh/netgear/wndr3800
http://wiki.openwrt.org/toh/netgear/wndr4300

https://www.dd-wrt.com/site/support/router-database

Add Comment

Modify Ticket

Action
as reopened .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.