linux - changing the mac address of a physical interface

From thelinuxwiki
Revision as of 05:12, 21 July 2014 by Nighthawk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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"