LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Chaning hwaddr (networking / ifconfig) on CentOS 6.0 (https://www.linuxquestions.org/questions/linux-networking-3/chaning-hwaddr-networking-ifconfig-on-centos-6-0-a-903689/)

luftwaffe 09-18-2011 11:51 AM

Chaning hwaddr (networking / ifconfig) on CentOS 6.0
 
Hello There,

I just installed a new CentOS in a wmvare workstation container. I need to be able to specify mac address for the OS.

I tried what I found on this topic; changing HWADDR in /etc/sysconfig/network-scripts/ifcfg-eth0 to the (and ONBOOT="yes"). I also tried adding MACADDR but it did not help either.

Then, in /etc/udev/rules.d/70-persistent-net.rules there was the mac address I did not want to use so changed that one to the one I wanted. After reboot, the system kept the one I changed in eth0 there and added the wrong one calling that one as et01 and eth0 has its address.

Please help me; how do I change the mac address on CentOS 6.0?

Thank you...

ButterflyMelissa 09-18-2011 12:06 PM

I think this might help...
Quote:

ifconfig eth0 hw ether 00:00:00:00:00:00
(mileage may vary, dont kill me if it does)

Good luck!

Thor


All times are GMT -5. The time now is 08:20 AM.