LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-01-2021, 01:07 AM   #16
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994

Quote:
Originally Posted by tofino_surfer View Post
Actually the USB-C ethernet adapter may just not be plugged in.
Then lsusb would not list it.
 
Old 01-01-2021, 11:42 AM   #17
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 483

Rep: Reputation: 153Reputation: 153
Quote:
Then lsusb would not list it.
From the OP in post #11

Quote:
My wired interface is a USB-C ethernet adapter that I bought for one of my MacBook Pros a couple years ago. It seems to work just fine, but is obviously not a permanent part of the machine

When the adapter is attached, the output of lsusb lists this:

Bus 002 Device 003: ID 0adb:1853 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
The OP stated that this adapter is plugged in only when needed and was not plugged in when they ran ls -l /sys/class/net.

To solve this misunderstanding the OP needs to plug the adapter in and then run ls -l /sys/class/net with it attached.
 
Old 01-01-2021, 11:10 PM   #18
v00d00101
Member
 
Registered: Jun 2003
Location: UK
Distribution: Devuan Beowulf
Posts: 514
Blog Entries: 1

Rep: Reputation: 37
I had a USB adapter that used that chipset and had to do two things to make it work. Get a driver from the realtek site then compile it and also I think I had to install some firmware using apt. This was on latest Devuan/Debian so YMMV.

https://www.pcsuggest.com/install-rtl8153-driver-linux/

Thats the site I used to deal with the driver.
The firmware package, I think was called firmware-realtek.

That got me the network adapter.

I then setup the adapter in /etc/network/interfaces

Code:
iface <devname> inet static
        address 192.168.0.100/24
        gateway 192.168.0.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 8.8.8.8 9.9.9.9
Setup /etc/resolv.conf with some public dns servers for testing with.

Code:
nameserver 8.8.8.8
nameserver 1.1.1.1
nameserver 9.9.9.9
nameserver 1.0.0.1
nameserver 8.8.4.4
Ran ifup <devname>
Then ping google.com

If it hasnt failed, you have working network capabilities.

<devname> is the name of your device, it might be enpxsx or similar, or eth0. You can also change the interfaces file to use dhcp if thats what you prefer. If your network uses a different ip/mask/gateway then change interfaces to reflect that.
 
Old 01-02-2021, 02:21 PM   #19
rocketfuel
LQ Newbie
 
Registered: Dec 2020
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
To solve this misunderstanding the OP needs to plug the adapter in and then run ls -l /sys/class/net with it attached.
The output of the above command when the adapter is attached:
Code:
lrwxrwxrwx 1 root root 0 Jan  2 12:13 enxc05627f2a080 -> ../../devices/pci0000:00/0000:00:0d.0/usb2/2-1/2-1:1.0/net/enxc05627f2a080
lrwxrwxrwx 1 root root 0 Jan  2 12:11 ipv6leakintrf0 -> ../../devices/virtual/net/ipv6leakintrf0
lrwxrwxrwx 1 root root 0 Jan  2 12:11 lo -> ../../devices/virtual/net/lo
lrwxrwxrwx 1 root root 0 Jan  2 12:11 pvpnksintrf0 -> ../../devices/virtual/net/pvpnksintrf0
lrwxrwxrwx 1 root root 0 Jan  2 12:11 wlp0s20f3 -> ../../devices/pci0000:00/0000:00:14.3/net/wlp0s20f3
It's the same if NetworkManager is running or if I run dhclient to get my wireless working.

Again, it seems to me that NetworkManager is prioritizing the two dummy connections that ProtonPVN set up, so that all other connections fail. If I can figure out a way to remove the dummy connections (as listed with "nmcli con"), I think I will be able to solve the problem.

Also, thank you again to everyone for the help. This is a great learning experience.
 
Old 01-02-2021, 02:24 PM   #20
rocketfuel
LQ Newbie
 
Registered: Dec 2020
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by v00d00101 View Post
I had a USB adapter that used that chipset and had to do two things to make it work.
The adapter has worked fine out-of-the-box in the past, so I don't think I need to do anything special to get it working again. ProtonVPN installed two dummy connections that seem to be prioritized over my adapter and wifi card, so I think that's where the problem is. Once I run dhclient, my wifi card goes to the top of the interface list (when listed with "nmcli con") and functions as expected.
 
Old 01-02-2021, 02:57 PM   #21
tofino_surfer
Member
 
Registered: Aug 2007
Posts: 483

Rep: Reputation: 153Reputation: 153
The output of the above command when the adapter is attached:

Code:
lrwxrwxrwx 1 root root 0 Jan  2 12:13 enxc05627f2a080 -> ../../devices/pci0000:00/0000:00:0d.0/usb2/2-1/2-1:1.0/net/enxc05627f2a080
This is exactly what you should get with a USB Ethernet adapter. These are symlinks created by udev when the device is detected so it doesn't matter if your are using NM or not. Everything after the x is likely the MAC address.

https://access.redhat.com/documentat...e_device_names

Last edited by tofino_surfer; 01-02-2021 at 11:31 PM.
 
Old 01-02-2021, 05:22 PM   #22
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994Reputation: 1994
Quote:
Originally Posted by rocketfuel View Post

Again, it seems to me that NetworkManager is prioritizing the two dummy connections that ProtonPVN set up, so that all other connections fail. If I can figure out a way to remove the dummy connections (as listed with "nmcli con"), I think I will be able to solve the problem.
The command to delete a connection is nmcli con delete. Or remove the connection config files under /etc/NetworkManager/system-connections and nmcli con reload.
 
Old 01-02-2021, 06:38 PM   #23
rocketfuel
LQ Newbie
 
Registered: Dec 2020
Posts: 13

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
The command to delete a connection is nmcli con delete. Or remove the connection config files under /etc/NetworkManager/system-connections and nmcli con reload.
Awesome, this worked! I did:

Code:
nmcli con delete <connection name>
and then
Code:
sudo service NetworkManager restart
and all is well! Thank you all so much for the help!!!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
network manager shows connected to wifi but ifconfig show connected to ethernet mia_tech Linux - General 10 12-16-2015 10:23 AM
Ethernet, Connected but not Connected! charl^e Linux - Networking 5 07-24-2007 03:59 AM
Unplug Internet Cable and plugin aging, but could not connected to the internet DevlinX Linux - General 2 07-02-2006 10:36 AM
ipw2200 connected but not connected? snataw Linux - Wireless Networking 5 03-31-2005 08:12 AM
internet is connected but cannot browse internet?!?!? myk3 Linux - Newbie 3 11-17-2003 05:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:38 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