PDA

View Full Version : howto change mac address?


new.thing
11th January 2007, 05:05 PM
I'd like to change mac address at boot time using a fedora way... I can assign it via ifconfig but I'd like to get it done without any change to /etc/sysconfig/network-scripts/*
HWADDR param in ifcfg-eth0 is for binding only? is there any other parameter to assign?
Thanks in advance:)

bmvbab
12th January 2007, 08:52 AM
http://en.wikipedia.org/wiki/MAC_address

"In Red Hat Linux and other similar systems (Fedora Core, etc) an easy way to make it "permanent" across reboots is to just add a variable like this to your ifcfg-eth0 or similar file:

MACADDR=12:34:56:78:90:ab

(Upper or lower case on the MAC address are fine, because the network function converts it to upper case.)"

Hope that helps :)

new.thing
12th January 2007, 10:01 AM

Thank you very much! I hope this helps :)