Skip to content

Instantly share code, notes, and snippets.

@andybe
Last active October 31, 2020 10:44
Show Gist options
  • Save andybe/038946d2b13984ee2e3023ce49754a04 to your computer and use it in GitHub Desktop.
Save andybe/038946d2b13984ee2e3023ce49754a04 to your computer and use it in GitHub Desktop.
static dummy adapter with ip
/etc/modules-load.d/dummy.conf
-------------------------------
dummy
/etc/modprobe.d/dummy.conf
---------------------------
install dummy /sbin/modprobe --ignore-install dummy numdummies=1;/sbin/ip link set dummy0 address A2:53:E9:F1:04:3B;/sbin/ip addr add 192.168.0.1/24 dev dummy0
change the interfache name can be done by add
;/sbin/ip link set dummy0 name xxx
change mac and ip address at your will
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment