[SOLVED]Disable Auto negotiation on TP-Link WDR4300?

Hi community, I want to know if there is a way to disable / turn off the auto negotiation on all ports of the switch. Currently, I'm using it like a managed switch, I'm happy with its performance like switch but I need to know how to disable / turn off this feature.

Thanks in advance, regards.

Tried ethtool ?

Yes, I 've tried ethtool but, I can do nothing with it (or I don't know how to use it), can you tell me how to use it to check if I can disable auto negotiation feature with ethtool?

I know that this is a newbie question, but if I learn something new today, hurrayyy

Search the forum for ethtool autoneg.

I've been reading after search on forum, and when I execute the command "ethtool --show-pause eth0.15" (one of my VLAN802.1q) the tool shows:

"Pause parameters for eth0.15:
Cannot get device pause settings: Not supported"

The features that ethtool shows are:

root@tp-link_wdr4300:~# ethtool eth0
Settings for eth0:
	Supported ports: [ TP MII ]
	Supported link modes:   10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        1000baseT/Full 
	Supported pause frame use: Symmetric Receive-only
	Supports auto-negotiation: Yes
	Supported FEC modes: Not reported
	Advertised link modes:  10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        1000baseT/Full 
	Advertised pause frame use: Symmetric Receive-only
	Advertised auto-negotiation: Yes
	Advertised FEC modes: Not reported
	Speed: 1000Mb/s
	Duplex: Full
	Port: Twisted Pair
	PHYAD: 0
	Transceiver: external
	Auto-negotiation: on
	MDI-X: Unknown
	Current message level: 0x000000ff (255)
			       drv probe link timer ifdown ifup rx_err tx_err
	Link detected: yes

My network config file:

config switch
	option name		'switch0'
	option reset		'1'
	option enable_vlan	'1'

	#Puerto CPU - 0
	#Puerto WAN - 1
	#Puerto LAN1 - 2
	#Puerto LAN2 - 3
	#Puerto LAN3 - 4
	#Puerto LAN4 - 5

config switch_vlan
	option device		'switch0'
	option vlan		'1'
	option ports		'0t 1t 2'
	option vid		'10'
	option description	'Admin'

config switch_vlan
	option device		'switch0'
	option vlan		'2'
	option ports		'1t 2t 3t'
	option vid		'15'
	option description	'Telefonia'

config switch_vlan
	option device		'switch0'
	option vlan		'3'
	option ports		'1t 2t'
	option vid		'20'
	option description	'Servidores'

config switch_vlan
	option device		'switch0'
	option vlan		'4'
	option ports		'1t 4 5'
	option vid		'25'
	option description	'Hosts'

config switch_vlan
	option device		'switch0'
	option vlan		'5'
	option ports		'1t 2t'
	option vid		'99'
	option description	'DNS'

config device
	option type		'8021q'
	option name		'eth0.10'
	option ifname		'eth0'
	option vid		'10'
	option macaddr		'64:70:02:D3:13:10'
	option mtu		'1500'

config interface 'admin'
	option device		'eth0.10'
	option proto		'static'
	option ipaddr		'192.168.10.2'
	option gateway		'192.168.10.1'
	option broadcast	'192.168.10.255'
	option netmask		'255.255.255.0'
	option auto		'1'

config device
	option type		'8021q'
	option name		'eth0.15'
	option ifname		'eth0'
	option vid		'15'
	option macaddr		'64:70:02:D3:13:15'
	option mtu		'1500'

config interface 'telefonia'
	option device		'eth0.15'
	option proto		'none'

config device
	option type		'8021q'
	option name		'eth0.20'
	option ifname		'eth0'
	option vid		'20'
	option macaddr		'64:70:02:D3:13:20'
	option mtu		'1500'

config interface 'servidores'
	option device		'eth0.20'
	option proto		'none'

config device
	option type		'8021q'
	option name		'eth0.25'
	option ifname		'eth0'
	option vid		'25'
	option macaddr		'64:70:02:D3:13:25'
	option mtu		'1500'

config interface 'hosts'
	option device		'eth0.25'
	option proto		'none'

config device
	option type		'8021q'
	option name		'eth0.99'
	option ifname		'eth0'
	option vid		'99'
	option macaddr		'64:70:02:D3:13:99'
	option mtu		'1500'

config interface 'dns'
	option device		'eth0.99'
	option proto		'none'

eth0.15 is hardly a physical network interface ?

It's a VLAN over the eth0 (this is a swconfig device), but the same message appears if I execute the same command with eth0:

root@tp-link_wdr4300:~# ethtool -A eth0 autoneg off rx off tx off
Cannot get device pause settings: Not supported

One more thing, I've compiled the firmware myself, maybe I don't include something that is critical
for this?

Hi
according to this ...

your device is using swconfig
so it is not DSA

if you look at

switch0: rt305x(rt305x-esw), ports: 7 (cpu @ 6), vlans: 4096
     --switch
        Attribute 1 (int): enable_vlan (VLAN mode (1:enabled))
        Attribute 2 (int): alternate_vlan_disable (Use en_vlan instead of doubletag to disable VLAN mode)
        Attribute 3 (int): bc_storm_protect (Global broadcast storm protection (0:Disable, 1:64 blocks, 2:96 blocks, 3:128 blocks))
        Attribute 4 (int): led_frequency (LED Flash frequency (0:30mS, 1:60mS, 2:240mS, 3:480mS))
        Attribute 5 (none): apply (Activate changes in the hardware)
        Attribute 6 (none): reset (Reset the switch)
     --vlan
        Attribute 1 (ports): ports (VLAN port mapping)
     --port
        Attribute 1 (int): disable (Port state (1:disabled))
        Attribute 2 (int): doubletag (Double tagging for incoming vlan packets (1:enabled))
        Attribute 3 (int): untag (Untag (1:strip outgoing vlan tag))
        Attribute 4 (int): led (LED mode (0:link, 1:100m, 2:duplex, 3:activity, 4:collision, 5:linkact, 6:duplcoll, 7:10mact, 8:100mact, 10:blink, 11:off, 12:on))
        Attribute 5 (int): lan (HW port group (0:wan, 1:lan))
        Attribute 6 (int): recv_bad (Receive bad packet counter)
        Attribute 7 (int): recv_good (Receive good packet counter)
        Attribute 8 (int): tr_bad (Transmit bad packet counter. rt5350 only)
        Attribute 9 (int): tr_good (Transmit good packet counter. rt5350 only)
        Attribute 10 (int): pvid (Primary VLAN ID)
        Attribute 11 (unknown): link (Get port link information)

you will see that, for example, my device does not have this ability to set autoneg with swconfig. Maybe wdr4300 have, but this one does not

DSA uses LAN ports as separate, stand alone ports and not like homogenic switch chip, so DSA is only way to use ethtool

Yes, I know that this is a swconfig device, I didn't know that ethtool only works with devices migrated to the DSA architecture, so :face_exhaling:

Is there another way to make this? (for swconfig devices)

you could try

swconfig dev switch0 help

and see what your switch could do
maybe there is settings for autoneg ...

Thanks for your help guys, but this switch doesn't let me set the link attributes like speed or auto negotiation, and mii-tool only let to establish 100 mbps velocity.

root@tp-link_wdr4300:~# swconfig dev switch0 port 3 set link "duplex full speed 1000 autoneg off"
Failed to set attribute: Operation not supported

root@tp-link_wdr4300:~# swconfig dev switch0 port 3 set link "autoneg off"
Failed to set attribute: Operation not supported

The reason is explained here

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.