Difference between revisions of "linux - changing the mac address of a physical interface"
From thelinuxwiki
(Created page with " == command line == to change the mac of eth1, do... ip link set dev eth1 address 00:30:18:ad:6f:f5 this does NOT survive reboot == boot config files == for gentoo, a li...") |
(→boot config files) |
||
Line 13: | Line 13: | ||
# cat /etc/conf.d/net | grep mac | # cat /etc/conf.d/net | grep mac | ||
− | mac_eth1="00:30: | + | mac_eth1="00:30:15:ad:9f:f8" |
[[category:networking]] | [[category:networking]] |
Latest revision as of 05:12, 21 July 2014
command line
to change the mac of eth1, do...
ip link set dev eth1 address 00:30:18:ad:6f:f5
this does NOT survive reboot
boot config files
for gentoo, a line similar to the one below will be needed. replace eth1 with the name of you interface.
# cat /etc/conf.d/net | grep mac mac_eth1="00:30:15:ad:9f:f8"