unudhcpd interrupts NetworkManager's USB Tethering
Thomas Haller (thaller) from IRC channel #nm
There is another DHCP server running on handset. You need to stop that one, as you use NetworkManager's "shared" method.
unudhcpd -i usb0 -s 172.16.42.1 -c 172.16.42.2
You need to stop that service, when you use NetworkManager.
January 3rd, 2023
Describe your issue
The effect of the following command is interfered by unudhcpd
.
The following command should activate USB Tethering without special privileges.
nmcli connection add type ethernet ifname usb0 ipv4.method shared ipv6.method shared con-name "USB Tethering"
See also
What's the expected behaviour?
Computer should receive internet traffic automatically (i.e. "out-of-the-box").
What's the current behaviour?
unudhcpd
interrupts DHCP process of NetworkMangaer by enforcing IP address 172.16.42.2
.
How to reproduce your issue?
Check whether unudhcpd
is running and you'd see that the only way to get internet traffic would be with this command:
ip route add default via 172.16.42.1
What solution did you find?
Terminate unudhcpd
process and reconnect USB cable.
Important note
If profile USB Tethering is enabled on system start, unudhcpd
might not run be running, and user is able to connect automatically.
What device are you using?
beryllium
On what postmarketOS version did you encounter the issue?
-
edge ( master
branch) -
v22.06
(supported until 2023-01-18) -
v22.12
-
I confirm that the issue still is present after running sudo apk upgrade -a
On what environment did you encounter the issue?
Environments
-
Phosh -
Plasma Mobile -
Sxmo (Wayland/Sway) Please post the output of sxmo_version.sh
-
Other: Please fill out
How did you get postmarketOS image?
-
from https://images.postmarketos.org -
I built it using pmbootstrap -
It was preinstalled on my device