LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-17-2018, 01:50 PM   #1
Odyssey1942
Member
 
Registered: Jul 2006
Posts: 316

Rep: Reputation: 32
Can connect via WiFi, but not ethernet. need help please


Win 10 has been reinstalled on the HDD of my Dell XPS 8700 i7 4790 16 GB RAM, 1T HDD

Ubuntu MATE `18.04.1 has been installed on a Toshiba 120GB SSD for dual boot.

Both installs seem to be OK with the exception of ethernet connectivity on the Ubuntu MATE SSD. WiFi works well.

What steps can I take to identify the problem please?
 
Old 11-17-2018, 02:48 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,805

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Start by sharing the relevant hardware details...

Code:
lspci -nnk|grep -iA3 net
or
Code:
sudo lshw -c network
With that we can tell if a driver is loaded or required for example
 
1 members found this post helpful.
Old 11-17-2018, 03:25 PM   #3
Odyssey1942
Member
 
Registered: Jul 2006
Posts: 316

Original Poster
Rep: Reputation: 32
Thanks. Here are:

Code:
lspci -nnk|grep -iA3 net
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)
	Subsystem: Dell RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1028:05b7]
	Kernel driver in use: r8168
	Kernel modules: r8168
04:00.0 Network controller [0280]: Broadcom Limited BCM43142 802.11b/g/n [14e4:4365] (rev 01)
	Subsystem: Dell Wireless 1704 802.11n + BT 4.0 [1028:0016]
	Kernel driver in use: bcma-pci-bridge
	Kernel modules: bcma
Code:
 lspci -nnk|grep -iA3 net
03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)
	Subsystem: Dell RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1028:05b7]
	Kernel driver in use: r8168
	Kernel modules: r8168
04:00.0 Network controller [0280]: Broadcom Limited BCM43142 802.11b/g/n [14e4:4365] (rev 01)
	Subsystem: Dell Wireless 1704 802.11n + BT 4.0 [1028:0016]
	Kernel driver in use: bcma-pci-bridge
	Kernel modules: bcma
robert@robert-XPS-8700:~$ clear
robert@robert-XPS-8700:~$ sudo lshw -c network
[sudo] password for
  *-network                 
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: enp3s0
       version: 0c
       serial: 98:90:96:d5:8d:00
       size: 10Mbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8168 driverversion=8.045.08-NAPI duplex=half latency=0 link=no multicast=yes port=twisted pair speed=10Mbit/s
       resources: irq:31 ioport:d000(size=256) memory:f7200000-f7200fff memory:f2100000-f2103fff
  *-network
       description: Network controller
       product: BCM43142 802.11b/g/n
       vendor: Broadcom Limited
       physical id: 0
       bus info: pci@0000:04:00.0
       version: 01
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: driver=bcma-pci-bridge latency=0
       resources: irq:19 memory:f7100000-f7107fff
  *-network
       description: Wireless interface
       physical id: 2
       bus info: usb@3:11
       logical name: wlx00212f30a0d9
       serial: 00:21:2f:30:a0:d9
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=r8712u ip=192.168.1.236 multicast=yes wireless=IEEE 802.11bgn

Last edited by Odyssey1942; 11-17-2018 at 08:20 PM.
 
Old 11-17-2018, 03:43 PM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,805

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
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?
Code:
sudo ethtool enp3s0
Code:
ip a

Last edited by ferrari; 11-17-2018 at 03:50 PM.
 
1 members found this post helpful.
Old 11-17-2018, 03:48 PM   #5
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,805

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
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/

Last edited by ferrari; 11-17-2018 at 03:50 PM.
 
1 members found this post helpful.
Old 11-17-2018, 04:12 PM   #6
Odyssey1942
Member
 
Registered: Jul 2006
Posts: 316

Original Poster
Rep: Reputation: 32
Thanks for hanging with me

Code:
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 04:56 PM.
 
Old 11-17-2018, 08:06 PM   #7
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,805

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
The problem is that no ethernet link is detected.
Code:
Link detected: no
Not sure whether this is a driver issue or something else.

Run the following with the ethernet interface connected to your router...
Code:
sudo ethtool -i enp3s0
Perhaps check kernel messages related to the driver as well...
Code:
dmesg|grep r8168
 
2 members found this post helpful.
Old 11-17-2018, 08:19 PM   #8
Odyssey1942
Member
 
Registered: Jul 2006
Posts: 316

Original Poster
Rep: Reputation: 32
Code:
sudo ethtool -i enp3s0
[sudo] password for
driver: r8168
version: 8.045.08-NAPI
firmware-version: 
expansion-rom-version: 
bus-info: 0000:03:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no
Code:
dmesg|grep r8168
[    1.038011] r8168: loading out-of-tree module taints kernel.
[    1.038122] r8168: module verification failed: signature and/or required key missing - tainting kernel
[    1.039159] r8168 Gigabit Ethernet driver 8.045.08-NAPI loaded
[    1.053912] r8168: This product is covered by one or more of the following patents: US6,570,884, US6,115,776, and US6,327,625.
[    1.053918] r8168  Copyright (C) 2017  Realtek NIC software team <nicfae@realtek.com> 
[    1.054401] r8168 0000:03:00.0 enp3s0: renamed from eth0
Did this with WiFi enabled. Is that an issue?

Hope this is useful, because I'm in way over my head. Thanks.

Last edited by Odyssey1942; 11-17-2018 at 08:22 PM.
 
Old 11-17-2018, 08:59 PM   #9
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,805

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
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.
 
1 members found this post helpful.
Old 11-18-2018, 08:54 AM   #10
Odyssey1942
Member
 
Registered: Jul 2006
Posts: 316

Original Poster
Rep: Reputation: 32
Ferrari, thanks for this suggestion.

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 09:10 AM.
 
Old 11-18-2018, 12:05 PM   #11
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,805

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
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.
 
2 members found this post helpful.
Old 11-18-2018, 12:11 PM   #12
Odyssey1942
Member
 
Registered: Jul 2006
Posts: 316

Original Poster
Rep: Reputation: 32
Here is what showed: (with no Link detected at bottom)

Code:
sudo ethtool enp3s0
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: off
	MDI-X: Unknown
	Supports Wake-on: pumbg
	Wake-on: g
	Current message level: 0x00000033 (51)
			       drv probe ifdown ifup
	Link detected: no
Have you identified the problem, or problem area, that is preventing eth connectivity?

Last edited by Odyssey1942; 11-18-2018 at 01:57 PM.
 
Old 11-18-2018, 03:28 PM   #13
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,805

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
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.
 
1 members found this post helpful.
Old 11-18-2018, 03:42 PM   #14
Odyssey1942
Member
 
Registered: Jul 2006
Posts: 316

Original Poster
Rep: Reputation: 32
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?

Thanks.
 
Old 11-18-2018, 04:23 PM   #15
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,805

Rep: Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140Reputation: 1140
Quote:
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.
 
  


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
Wifi option is there but no wifi scanning or wifi not working Aakash447 Linux - Newbie 3 06-28-2018 11:48 PM
Can connect to cellphone through WIFI HOTSPOT, but cannot connect to my own WIFI network diegoandresalvarez Linux - Networking 7 10-22-2016 11:54 AM
Able to connect via SSH but not able to connect via web port 80 Orange Sunshine Linux - Server 9 04-03-2010 07:11 PM
can't connect wifi at home, but can connect everywhere else Javi2 SUSE / openSUSE 1 08-25-2005 06:49 PM

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

All times are GMT -5. The time now is 12:05 AM.

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