Last active
October 31, 2020 10:44
-
-
Save andybe/038946d2b13984ee2e3023ce49754a04 to your computer and use it in GitHub Desktop.
static dummy adapter with ip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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