Skip to content

Instantly share code, notes, and snippets.

@JanKoppe
Created October 12, 2016 20:14
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JanKoppe/83f0e273c12ecd37b997f2317d638cdc to your computer and use it in GitHub Desktop.
Save JanKoppe/83f0e273c12ecd37b997f2317d638cdc to your computer and use it in GitHub Desktop.
Persistent network device naming with Alpine Linux
#/etc/mactab
---
lan0 00:11:22:33:44:01
wan0 00:11:22:33:44:02
#/etc/network/if-pre-up.d/nameif
---
#!/bin/sh
/sbin/nameif -s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment