Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB Ethernet adapter gets or reciev no IP
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
lovelytux
Tux's lil' helper
Tux's lil' helper


Joined: 23 Aug 2013
Posts: 107
Location: Westwoods of Germany

PostPosted: Sat Nov 24, 2018 12:51 pm    Post subject: USB Ethernet adapter gets or reciev no IP Reply with quote

Hey,

I bought a usb-ethernet-adapter and now i try to use it. This gadget gets no IPv4 Adress.
Code:
grep USB_RTL8152 /usr/src/linux/.config: CONFIG_USB_RTL8152=y

Code:
lsusb: Bus 013 Device 002: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter

Code:
udevadm test-builtin net_id /sys/class/net/enp12s0u1 2>/dev/null
ID_NET_NAME_MAC=enx00e04c0012bd
ID_OUI_FROM_DATABASE=REALTEK SEMICONDUCTOR CORP.
ID_NET_NAME_PATH=enp12s0u1


/etc/conf.d/net is empty. I use dhcpcd.

Code:
killall -9 dhcpcd
dhcpcd   enp12s0u1 --noipv4ll

main: control_open: Connection refused
DUID 00:01:00:01:1a:c1:97:8a:30:85:a9:92:cd:d5
enp12s0u1: IAID 4c:00:12:bd
enp12s0u1: soliciting a DHCP lease
enp12s0u1: soliciting an IPv6 router
enp12s0u1: no IPv6 Routers available
timed out
dhcpcd exited


If I plugin the gadget in LinuxMint it doesn't works to. If plugin in windows the gadget recievs a IPV 4 adress. I do all atempts in the same network behind pfsense.

Thanks for help!

lovelylux


Last edited by lovelytux on Sun Nov 25, 2018 1:16 pm; edited 3 times in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43799
Location: 56N 3W

PostPosted: Sat Nov 24, 2018 1:15 pm    Post subject: Reply with quote

lovelytux,

With the device unplugged, both the system from powered off.
Plug in the device

Put dmesg on a pastebin site and post the link. This will tell what the kernel did when the device was discovered.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lovelytux
Tux's lil' helper
Tux's lil' helper


Joined: 23 Aug 2013
Posts: 107
Location: Westwoods of Germany

PostPosted: Sat Nov 24, 2018 1:35 pm    Post subject: Reply with quote

Hey,

https://paste.pound-python.org/show/RMXTlPyussn0JW2iR15v/

Tanks
lovelytux
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43799
Location: 56N 3W

PostPosted: Sat Nov 24, 2018 2:08 pm    Post subject: Reply with quote

lovelytux,

Here is your USB3 being started and your USB LAN being started.

Code:
[    1.196435] usb 13-1: new SuperSpeed USB device number 2 using xhci_hcd
[    1.208973] usb 13-1: New USB device found, idVendor=0bda, idProduct=8153
[    1.209078] usb 13-1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
...
[    1.209617] usb 13-1: Product: USB 10/100/1000 LAN
[    1.209710] usb 13-1: Manufacturer: Realtek
[    1.209810] usb 13-1: SerialNumber: 000002


Then root mounts
Code:
[    1.586382] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)


and lastly, udev renames it
Code:
[    3.817665] r8152 13-1:1.0 eth0: v1.09.9
[    3.820288] r8152 13-1:1.0 enp12s0u1: renamed from eth0


I don't see any signs of a driver loading. You have
Code:
CONFIG_USB_RTL8152=y
which is correct.
What does
Code:
modprobe r8152
tell. The right answer is nothing as its built in.

What does
Code:
uname -a
show?
In particular the date/time
Code:
uname -a
Linux NeddySeagoon_Static 4.19.0-gentoo #1 SMP PREEMPT Thu Oct 25 19:29:44 BST 2018 x86_64 AMD Phenom(tm) II X6 1090T Processor AuthenticAMD GNU/Linux

That's the build date/time of the running kernel. Does it show what you expect?
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lovelytux
Tux's lil' helper
Tux's lil' helper


Joined: 23 Aug 2013
Posts: 107
Location: Westwoods of Germany

PostPosted: Sat Nov 24, 2018 4:34 pm    Post subject: Reply with quote

Hello NedySeagoon,

NeddySeagoon wrote:
Here is your USB3 being started and your USB LAN being started.

Yes, because if I connected my LAN onboard, the PC is going into reboot all time, somtetimes more, sometimes less. If deactivate lan in Bios, this phenomenon goes away. I think the Lan onboard is broken down. Therfore the usb choise.

NeddySeagoon wrote:

I don't see any signs of a driver loading. You have
Code:
CONFIG_USB_RTL8152=y
which is correct.
What does
Code:
modprobe r8152
tell. The right answer is nothing as its built in.


I choose as module before, built it just new as build in!
The answer is: nothing
NeddySeagoon wrote:
That's the build date/time of the running kernel. Does it show what you expect?

Yes the time before and now:
Quote:
inux lx 4.14.78-gentoo #12 SMP Sat Nov 24 17:08:29 CET 2018 x86_64 AMD FX(tm)-8150 Eight-Core Processor AuthenticAMD GNU/Linux


I use, what I see and what I think to use. But thank you. Your words let my eyes went over the timestamp.

The driver not loading? WHY?

Here is the new dmesg after kernel with build in driver:
Code:
https://paste.pound-python.org/show/q12aqaZKt8vsycYotQcA/


lovelytux

Edit:
Code:
ls -hasl  /sys/class/net/enp12s0u1/device/driver/module: ../module/r8152
That doesn't shows driver is loaded?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43799
Location: 56N 3W

PostPosted: Sat Nov 24, 2018 5:33 pm    Post subject: Reply with quote

lovelytux,

Can you try a newer kernel please or try the dongle in a USB2 port?

This Red Hat bug suggests that there are problems with your device and USB 3.
It was fixed there in 4.13 but the fix may not have got upstream in time for 4.14.

The gentoo testing kernel is worth trying.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lovelytux
Tux's lil' helper
Tux's lil' helper


Joined: 23 Aug 2013
Posts: 107
Location: Westwoods of Germany

PostPosted: Sat Nov 24, 2018 5:51 pm    Post subject: Reply with quote

Hello!
After hour and hour! Thanks for your help. That it is! :D
I have to :
Code:
rm  /sys/class/net/enp12s0u1/ -Rf
and after this, put in USB 2. IT WORKS!

With:
Code:
Linux lx 4.14.78-gentoo #12 SMP Sat Nov 24 17:08:29 CET 2018 x86_64 AMD FX(tm)-8150 Eight-Core Processor AuthenticAMD GNU/Linux


Thank you very much!


lovelytux 8)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43799
Location: 56N 3W

PostPosted: Sat Nov 24, 2018 6:02 pm    Post subject: Reply with quote

lovelytux,

USB2 cannot support 1G Ethernet as its only 440Mbit. Using USB2 is a workaround.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum