Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-18-2011, 12:51 PM   #1
LQ Newbie
Registered: Jul 2002
Posts: 16

Rep: Reputation: 0
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...
Old 09-18-2011, 01:06 PM   #2
Senior Member
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,475
Blog Entries: 23

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
I think this might help...
ifconfig eth0 hw ether 00:00:00:00:00:00
(mileage may vary, dont kill me if it does)

Good luck!



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
connecting /sbin/ifconfig to bash command ifconfig flammable2 Fedora 4 11-12-2005 08:58 AM
Changing HWaddr Iridesce Linux - Networking 2 04-20-2005 04:56 AM

All times are GMT -5. The time now is 12:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration