LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-11-2022, 09:33 AM   #1
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 385

Rep: Reputation: Disabled
Ethernet only 10M/Half mode


System: Kernel: 5.13.0-39-generic x86_64 bits: 64 Desktop: Xfce 4.16.0
Distro: Ubuntu 21.10 (Impish Indri)

Hi Folks,

I have some issues with my router, I mean I have to power cycle in order to raise Ethernet. I have to do this after every system reboot. Sometimes waking from standby needs router power cycled. Sometimes the LAN is orange instead green and when is orange the speed is 100Mb/s in Full Duplex mode. But most of the time is green and 10Mb/s and Half Duplex mode.

I think this is not the Ethernet card issue but router malfunction. I can change speed to 100Mb/s and to FD mode and LAN light goes orange (100FD).

I am guessing the router does not have the 100FD but 100HD only (screenshot attached). How can I check?
On the other hand there is only one node in my 'network' and secondly do I need 100Mb/s since my ISP allows only 6Mb/s?

Any thoughts please. Thanks in advance!


Code:
ethtool enp4s0
Settings for enp4s0:
	Supported ports: [ TP	 MII ]
	Supported link modes:   10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/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
	Advertised pause frame use: Symmetric Receive-only
	Advertised auto-negotiation: Yes
	Advertised FEC modes: Not reported
	Link partner advertised link modes:  10baseT/Half
	Link partner advertised pause frame use: No
	Link partner advertised auto-negotiation: No
	Link partner advertised FEC modes: Not reported
	Speed: 10Mb/s
	Duplex: Half
	Auto-negotiation: on
	Port: Twisted Pair
	PHYAD: 0
	Transceiver: external
	MDI-X: Unknown
	Supports Wake-on: pumbg
	Wake-on: g
	Link detected: yes
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2022-04-11_15-27-22.png
Views:	11
Size:	9.9 KB
ID:	38753  

Last edited by lattimro; 04-11-2022 at 02:30 PM.
 
Old 04-11-2022, 10:23 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,141

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
What is the router make and model?

Also please post the output of:

lspci |grep Ether
 
1 members found this post helpful.
Old 04-11-2022, 10:58 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,710

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
What happens if you switch LAN ports?

Assuming your router has more then one.
 
1 members found this post helpful.
Old 04-11-2022, 11:15 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Do a search for your distro and look at disabling auto-negotiation on enp4s0, I've had this before with some NICs and forcing the NIC in to a specific mode stops it.
 
1 members found this post helpful.
Old 04-11-2022, 12:50 PM   #5
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 385

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by smallpond View Post
What is the router make and model?

Also please post the output of:

lspci |grep Ether
It's an old guy ZyXEL P-600 series.

Code:
lspci |grep Ether
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL810xE PCI Express Fast Ethernet controller (rev 07)
 
Old 04-11-2022, 12:52 PM   #6
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 385

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
What happens if you switch LAN ports?

Assuming your router has more then one.
There is just one LAN port. DSL is a phone line. No WAN port
 
Old 04-11-2022, 01:25 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,710

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
I've had a few ethernet ports fail over the years on both PCs and switches.

You can force the ethernet port to 100 and restart the router to see if that works buy otherwise I don't know of anyway to force the LAN port to 100. It is probably time to replaces it.
 
1 members found this post helpful.
Old 04-11-2022, 01:26 PM   #8
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 385

Original Poster
Rep: Reputation: Disabled
I can change but need to reboot to see if the change is persistent (probably not):

Code:
#ethtool -s enp4s0 autoneg off speed 100 duplex full
# ethtool enp4s0
Settings for enp4s0:
	Supported ports: [ TP	 MII ]
	Supported link modes:   10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/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
	Advertised pause frame use: Symmetric Receive-only
	Advertised auto-negotiation: No
	Advertised FEC modes: Not reported
	Speed: 100Mb/s
	Duplex: Full
	Auto-negotiation: off
	Port: Twisted Pair
	PHYAD: 0
	Transceiver: external
	MDI-X: Unknown
	Supports Wake-on: pumbg
	Wake-on: g
	Link detected: yes
Also I tried:

Code:
nmcli c edit "Ethernet connection 1"
and change the auto-negotiation to no, save it but for some reasons is not saved. The auto-negotiations still on. (save persistent is not recognised command).

Last edited by lattimro; 04-11-2022 at 01:31 PM.
 
Old 04-11-2022, 01:28 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,710

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Does forcing the speed allow you to connect to the internet?
 
1 members found this post helpful.
Old 04-11-2022, 01:37 PM   #10
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,341

Rep: Reputation: Disabled
This seems to be your problem:
Quote:
Originally Posted by lattimro View Post
Code:
ethtool enp4s0
Settings for enp4s0:
	Supported ports: [ TP	 MII ]
	Supported link modes:   10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/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
	Advertised pause frame use: Symmetric Receive-only
	Advertised auto-negotiation: Yes
	Advertised FEC modes: Not reported
	Link partner advertised link modes:  10baseT/Half
	Link partner advertised pause frame use: No
	Link partner advertised auto-negotiation: No
When an auto-negotiating unit meets older equipment that doesn't advertise its capabilities, you'll end up with [initial link speed for the non-negotiating partner]/half duplex. In this case that would be 10Mbps/half duplex.

I have some pretty old ZyXEL equipment that's still in use, but I can't say I've ever encountered one that doesn't implement 802.3 autonegotiation. Although to be fair, the standard specified it as "optional" for 100Base-TX. How old is that P-600 of yours?

(You can still run into this issue with "dumb" 100Mbps fiber-to-copper media converters, but in such cases the resulting link speed would be 100Mbps, half duplex. Which is less than ideal, as the fiber side will be running full duplex regardless.)

It could be that the router is somewhat slow to initialize its interfaces after a reboot. Does the issue persist if you disconnect and reconnect the cable after a few seconds? And when you say you need to power cycle in order to get a link, do you mean the router or the computer?

Have you tried putting a reasonably recent switch between the PC and the router? If a switch manages to negotiate a proper connection, then perhaps there's an issue with the NIC in the PC, or its driver.

And of course I have to mention this: Have you tried a different cable? A faulty or incorrectly crimped cable will lead to exactly the kind of symptoms you're experiencing.

Last edited by Ser Olmy; 04-11-2022 at 01:41 PM.
 
1 members found this post helpful.
Old 04-11-2022, 01:44 PM   #11
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 385

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Does forcing the speed allow you to connect to the internet?
YES
 
Old 04-11-2022, 06:02 PM   #12
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,341

Rep: Reputation: Disabled
Quote:
Originally Posted by lattimro View Post
YES
No need to shout.

Your router is clearly capable of 100Mbps link speeds, but does it run in half duplex or full duplex? My money would be on the former, but as it doesn't seem to advertise its capabilities, you'll have to do some detective work.

Put a bit of load on the line by starting a download or playing a YouTube video, and look for signs of duplex mismatch:
  • If your computer uses half duplex while the router is set to full duplex, running ifconfig on the computer will show an abnormally high (and steadily increasing) number of collisions (under "TX errors").
  • If the computer is operating in full duplex mode while the router expects half duplex, ifconfig will report a (somewhat slowly) increasing number of frame errors (under "RX errors"). A more sophisticated diagnostic tool might report a number of "runts" and "CRC Errors".
In both cases you'll see sub-par performance, although it might not be all that noticeable if the WAN connection is significantly slower than the LAN link speed, as indeed it is in your case.

If you can figure out what the correct settings are, I guess you could configure your PC to use those settings and call it a day. However, the whole situation does strike me as a bit odd, as I really would have expected the router to support 802.3 autonegotiation. For comparison, I just checked a switchport connected to a ZyXEL G-570S, and sure enough, autonegotiation is working and I get 100Mbps/FD. And that thing is 17 years old.
 
1 members found this post helpful.
Old 04-12-2022, 12:06 AM   #13
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 385

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
No need to shout.

Your router is clearly capable of 100Mbps link speeds, but does it run in half duplex or full duplex? My money would be on the former, but as it doesn't seem to advertise its capabilities, you'll have to do some detective work.

Put a bit of load on the line by starting a download or playing a YouTube video, and look for signs of duplex mismatch:
  • If your computer uses half duplex while the router is set to full duplex, running ifconfig on the computer will show an abnormally high (and steadily increasing) number of collisions (under "TX errors").
  • If the computer is operating in full duplex mode while the router expects half duplex, ifconfig will report a (somewhat slowly) increasing number of frame errors (under "RX errors"). A more sophisticated diagnostic tool might report a number of "runts" and "CRC Errors".
In both cases you'll see sub-par performance, although it might not be all that noticeable if the WAN connection is significantly slower than the LAN link speed, as indeed it is in your case.

If you can figure out what the correct settings are, I guess you could configure your PC to use those settings and call it a day. However, the whole situation does strike me as a bit odd, as I really would have expected the router to support 802.3 autonegotiation. For comparison, I just checked a switchport connected to a ZyXEL G-570S, and sure enough, autonegotiation is working and I get 100Mbps/FD. And that thing is 17 years old.
Code:
ethtool enp4s0
Settings for enp4s0:
	Supported ports: [ TP	 MII ]
	Supported link modes:   10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/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
	Advertised pause frame use: Symmetric Receive-only
	Advertised auto-negotiation: No
	Advertised FEC modes: Not reported
	Speed: 100Mb/s
	Duplex: Full
	Auto-negotiation: off
	Port: Twisted Pair
	PHYAD: 0
	Transceiver: external
	MDI-X: Unknown
	Supports Wake-on: pumbg
	Wake-on: g
	Link detected: yes
and the router is 100/HD as per attached screenshot

Code:
enp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.33  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::4d79:3607:e443:e1d4  prefixlen 64  scopeid 0x20<link>
        ether 64:51:06:a3:5d:8d  txqueuelen 1000  (Ethernet)
        RX packets 2444658  bytes 1808521227 (1.8 GB)
        RX errors 0  dropped 5  overruns 0  frame 0
        TX packets 1727227  bytes 268758792 (268.7 MB)
        TX errors 3  dropped 0 overruns 0  carrier 0  collisions 1754
 
Old 04-12-2022, 12:44 AM   #14
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 385

Original Poster
Rep: Reputation: Disabled
I switched autoneg to ON and rebooted computer:
Code:
ethtool enp4s0
Settings for enp4s0:
	Supported ports: [ TP	 MII ]
	Supported link modes:   10baseT/Half 10baseT/Full
	                        100baseT/Half 100baseT/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
	Advertised pause frame use: Symmetric Receive-only
	Advertised auto-negotiation: Yes
	Advertised FEC modes: Not reported
	Link partner advertised link modes:  10baseT/Half 10baseT/Full
	                                     100baseT/Half 100baseT/Full
	Link partner advertised pause frame use: Symmetric
	Link partner advertised auto-negotiation: Yes
	Link partner advertised FEC modes: Not reported
	Speed: 100Mb/s
	Duplex: Full
	Auto-negotiation: on
	Port: Twisted Pair
	PHYAD: 0
	Transceiver: external
	MDI-X: Unknown
	Supports Wake-on: pumbg
	Wake-on: d
	Link detected: yes
send packets to router and looks better:

Code:
enp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.33  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::4d79:3607:e443:e1d4  prefixlen 64  scopeid 0x20<link>
        ether 64:51:06:a3:5d:8d  txqueuelen 1000  (Ethernet)
        RX packets 7046  bytes 4091834 (4.0 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 8052  bytes 2938373 (2.9 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
router is attached also changed itself to 100/FD (I did not power cycle).

The main thing is this time I was able to reboot the computer and connection did not drop! No need to power cycle.
Secondly I can unplug the Ethernet cable and when I plug in connects right away (100/FD). Before I had to power cycle the router and it was 10/HD. So as far I see the issue solved changing to 100/FD. Autoneg is on. Thank you so much!


p.s. I fiddled with some setting and I got stuck with the following"

Code:
nmcli 802-3-ethernet.wake-on-lan-password> describe

=== [wake-on-lan-password] ===
[NM property description]
If specified, the password used with magic-packet-based Wake-on-LAN, represented as an Ethernet MAC address.  If NULL, no password will be required.

nmcli 802-3-ethernet.wake-on-lan-password> set
Enter 'wake-on-lan-password' value: xxxxxxxx
Error: failed to set 'wake-on-lan-password' property: 'xxxxxxxx' is not a valid Ethernet MAC
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2022-04-12_01-32-43.png
Views:	9
Size:	9.7 KB
ID:	38759  

Last edited by lattimro; 04-12-2022 at 10:29 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CN-500 - Bluetooth® USB Adapter 10m runnerpaul Linux - Newbie 1 04-04-2006 08:47 PM
LXer: Comment of the Day - January 4, 2006 - Why SCOX got another $10M LXer Syndicated Linux News 0 01-04-2006 03:16 PM
wget re-downloads all files grater than 10M gintaras46 Linux - General 3 12-24-2005 08:05 AM
linux connect through phonline 10m network xS373Nx Linux - Newbie 4 04-10-2004 11:23 PM
Newbie needs help configuring a Asound Ethernet 100/10m Card. budest Linux - Hardware 10 12-30-2002 10:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration