Skip to content

Instantly share code, notes, and snippets.

@aejh
Created November 1, 2021 15:13
Show Gist options
  • Save aejh/1b971600b3a43fbafa61669e3b1d8ab7 to your computer and use it in GitHub Desktop.
Save aejh/1b971600b3a43fbafa61669e3b1d8ab7 to your computer and use it in GitHub Desktop.
Android USB network tethering with systemd-networkd
[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