Skip to content

Commit

Permalink
Make sure IPv4 works when eth0 is connected
Browse files Browse the repository at this point in the history
Resolves an issue where IPv4 traffic would not work when eth0 is connected (i.e. usb-ethernet adapter over OTG). The static route for usb0 precedes the DHCP route for eth0. Only IPv6 traffic would work, but not IPv4 until the metric for usb0 is increase and thus lowered in priority. If no eth0 is plugged in, internet works fine over usb0.
  • Loading branch information
Tuinslak committed Sep 4, 2020
1 parent 713a14c commit 552df65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion builder/data/etc/network/interfaces.d/usb0-cfg
Expand Up @@ -4,4 +4,5 @@ iface usb0 inet static
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
gateway 10.0.0.1
gateway 10.0.0.1
metric 20

0 comments on commit 552df65

Please sign in to comment.