Created
November 1, 2021 15:13
-
-
Save aejh/1b971600b3a43fbafa61669e3b1d8ab7 to your computer and use it in GitHub Desktop.
Android USB network tethering with systemd-networkd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Match] | |
# Use udevadm info /sys/class/net/INTERFACE_NAME to list the udev properties and pick one or more | |
Property=ID_MODEL=SAMSUNG_Android "ID_USB_DRIVER=rndis_host" | |
[Network] | |
DHCP=ipv4 | |
[DHCPv4] | |
# Default metric is 1024, setting a value lower makes this the default route | |
RouteMetric=512 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment