Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • /etc/network/interfaces does not exist on my machine, so this answer is somewhat confusing.
    – FvD
    Commented Jun 18, 2020 at 3:35
  • This is nearly correct for Raspbian. Instead of editing /etc/network/interfaces directly, add a file to /etc/network/interfaces.d/ with the changes. Example: sudo vim /etc/network/interfaces.d/wlan1, add allow-hotplug wlan1 \ iface wlan1 inet dhcp \ metric 200 Commented Nov 17, 2020 at 21:25
  • @FvD, sorry for noticing late. Hopefully you got the solution - You can simply creat the file. Updated the answer for anyone new looking for this. Commented Mar 18, 2022 at 11:53
  • The addition of "metric" has no effect for me on debian 10. Commented Nov 4, 2022 at 0:23