LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-18-2011, 11:51 AM   #1
luftwaffe
LQ Newbie
 
Registered: Jul 2002
Posts: 12

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, 12:06 PM   #2
Thor_2.0
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,210
Blog Entries: 23

Rep: Reputation: 279Reputation: 279Reputation: 279
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
 
  


Reply


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 07:58 AM
Changing HWaddr Iridesce Linux - Networking 2 04-20-2005 03:56 AM


All times are GMT -5. The time now is 11:01 AM.

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