Can connect via WiFi, but not ethernet. need help please
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ok, that confirms that the r8168 driver is loaded and that a wired ethernet network device node (enp3s0) is present. With an ethernet cable connected, what is shown by the following?
I'm not an Ubuntu user, but I note that there appears to have been a move to use Netplan for network management. This guide may be of help with any configuration required... https://www.serverlab.ca/tutorials/l...bionic-beaver/
sudo ethtool enp3s0
[sudo] password for
Settings for enp3s0:
Supported ports: [ TP ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
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: No
Advertised auto-negotiation: Yes
Advertised FEC modes: Not reported
Speed: 10Mb/s
Duplex: Half
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000033 (51)
drv probe ifdown ifup
Link detected: no
and
Code:
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: enp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
link/ether 12:34:56:78:99:00 brd ff:ff:ff:ff:ff:ff
3: wlx00212f30a0d9: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 12:34:56:78:99:00 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.236/24 brd 192.168.1.255 scope global dynamic noprefixroute wlx00212f30a0d9
valid_lft 83795sec preferred_lft 83795sec
inet6 12:34:56:78:99:00 scope global temporary dynamic
valid_lft 3600sec preferred_lft 3600sec
inet6 12:34:56:78:99:00 scope global dynamic mngtmpaddr noprefixroute
valid_lft 3600sec preferred_lft 3600sec
inet6 12:34:56:78:99:00 scope link noprefixroute
valid_lft forever preferred_lft forever
FWIW, when booted into Windows both ethernet and wifi connectivity works fine. It is only under Ubuntu MATE that there isno connectivity with ethernet. WiFi is good.
Also should I be editing out any of these ip addresses?
Last edited by Odyssey1942; 11-17-2018 at 05:56 PM.
That all checks out as expected. Having the wifi enabled shouldn't affect wired ethernet connectivity at all.
The no link detected is concerning though. You could try setting the negotiation manually like this for example
Code:
sudo ethtool -s enp3s0 autoneg off speed 100 duplex full
then check link status again
Code:
sudo ethtool enp3s0
and report back. If it is now showing 'Link detected: yes' you can try restarting the network perhaps
Code:
systemctl status systemd-networkd
and check IP addressing again
Code:
ip a
Normally, I'd have you check another router port and change the ethernet cable, but as you mention this works fine with a Windows environment I'm assuming that these aspects must be ok.
I am a bit timid (not having much experience in CLI), but willing to try. JIC, and before doing so, what are the commands needed to reverse this experiment in case it goes pear shaped?
Last edited by Odyssey1942; 11-18-2018 at 10:10 AM.
The ethtool command only makes a non-persistent change (with speed and duplex). Unplugging and replugging the ethernet cable is enough for renegotiation to take place. On top of that your existing ethernet connection is non-functioning (no link detected), so you have nothing to lose.
As I mentioned in post #7, I don't know what the underlying cause of your link/negotiation issue is, but until it is sorted forget about using ethernet connectivity...
Code:
Speed: 10Mb/s
Duplex: Half
Link detected: no
Please try changing the cable and/or router port (and compare results). The above output is not normal.
I had just hoped that all we have done since post #7 might have uncovered possible issues.
I just restarted in Windows on this dual-boot computer and it has good ethernet connectivity with the existing cable in place. Given this, is it likely that changing cable/router port is going to lead to anything? I will do if you think it might be productive.
Looking at the mobo, I conclude that the Realtek controller is integrated. Does it make sense to put in an add-on board (different brand) to see what happens. Probably the only ethernet board/s I might have will be older, but if it works, might it narrow down the issue?
I had just hoped that all we have done since post #7 might have uncovered possible issues.
The attempt to explicitly set the speed and duplex (as explained in post #9) clearly made no difference with respect to what you reported in post #12, so it could well be (r8168) driver related. A bug report may be required here.
Quote:
Looking at the mobo, I conclude that the Realtek controller is integrated. Does it make sense to put in an add-on board (different brand) to see what happens. Probably the only ethernet board/s I might have will be older, but if it works, might it narrow down the issue?
If you have other NICs available to try, then worth a shot IMO.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.