Ask Your Question
0

Fedora 25, USB tethering not stable.

asked 2017-02-14 00:34:10 -0500

newcomer gravatar image

updated 2017-02-14 17:05:07 -0500

I am using my cellphone as a Wifi adapter but I got problem. The fedora is 25. When I turn on usb tethering from cell phone (model: LG G4), the Fedora get "USB Ethernet" and works perfectly, I can access internet normally.

I check with ifconfig, I see the cellphone interface with correct IP address like 192.168.42.73. (enp0s20f0u1 is my cellphone interface)

$ifconfig

enp0s20f0u1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.42.73  netmask 255.255.255.0  broadcast 192.168.42.255
        inet6 fe80::942f:caff:fe19:b091  prefixlen 64  scopeid 0x20<link>
        ether 96:2f:ca:19:b0:91  txqueuelen 1000  (Ethernet)
        RX packets 46  bytes 1961 (1.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 205  bytes 34218 (33.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

After around 10 to 20 seconds, the "USB Ethernet" disappear and I got "Mobile network" from the "Network" window, and no internet anymore. I tried to configure this "Mobile" and get IP immediately, but I still don't have internet access. And I checked with ifconfig, the cellphone interface has no IP address.

$ifconfig

enp0s20f0u1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        ether 96:2f:ca:19:b0:91  txqueuelen 1000  (Ethernet)
        RX packets 7  bytes 560 (560.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

How do I keep the USB Enthernet to get internet always working? Any clue, I appreciate.

edit retag flag offensive close merge delete

Comments

Do you get any related information from dmesg or journalctl -b? You should at least be able to find a log entry telling you why the kernel or NetworkManager stopped that connection. There are many possible reasons: USB connectivity problem (try a different, shorter cable); USB hardware bugs; firmware bugs; driver bugs; networking problems; …

genodeftest gravatar imagegenodeftest ( 2017-11-14 09:45:21 -0500 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2017-11-14 01:43:00 -0500

aero gravatar image

updated 2017-11-14 12:43:36 -0500

genodeftest gravatar image

The solution is to disable ModemManager. It drops USB tethering.

sudo systemctl stop ModemManager.service
sudo systemctl disable ModemManager.service

Sources:
https://forums.linuxmint.com/viewtopi...
https://www.reddit.com/r/linuxmint/comments/4sqev1/tetheringtoandroidphoneinmint18_quickly/

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2017-02-14 00:34:10 -0500

Seen: 508 times

Last updated: Nov 14 '17