Share your knowledge at the LQ Wiki.
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 02-08-2009, 03:19 AM   #1
Senior Member
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Rep: Reputation: 92
Question how to change MAC addr of PC

hi, this is Raju,
i am using Fedora 10.0, i need to connect internet by changing MAC address. I have "MAC CLEAR KEYS" software in windows. So i was able to change my MaC address in windows and i can connect to internet. But i don't know how to change MAC addr in linux. so i was unable to connect to internet through Linux.
thank you.
Old 02-08-2009, 03:58 AM   #2
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
You should be able to manually set a MAC address in the configuration file (/etc/sysconfig/network-scripts/ifcfg-eth0 for Red Hat based Distributions like Fedora) by changing the HWADDR line or adding one followed by the mac address. I.E.


Last edited by r3sistance; 02-08-2009 at 07:02 AM. Reason: Red Hat
Old 02-08-2009, 09:55 AM   #3
Senior Member
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Blog Entries: 12

Original Poster
Rep: Reputation: 92
Unhappy Mac addr is not changing

i tried as u suggested , but my Mac addr is not changing,
first i had opend the file in super User mode, and i had edited the HW addr to required addr. Then i had checked using "ifconfig" command, but it is showing as previous Mac address. Even i had tried by restarting my Linux.( because in windows to change my Mac addr , i need to restart the network connections. )
Old 02-08-2009, 12:16 PM   #4
LQ Newbie
Registered: Nov 2006
Posts: 6

Rep: Reputation: 0
try thiS!!

TRY this..for *nix

1) Bring down the interface: "ifconfig eth0 down"

2) Enter new MAC address: "ifconfig eth0 hw ether 00:00:00:AA:AA:AA"

3) Bring up the interface: "ifconfig eth0 up"

Last edited by mikidouglas; 02-08-2009 at 12:30 PM.
Old 02-08-2009, 12:42 PM   #5
Registered: Jul 2008
Distribution: Slackware 13.1
Posts: 305

Rep: Reputation: 80
I use a script with similar commands as mikidouglas pointed out. There is also a utility called macchanger that does exactly that. There is a mandriva package they have linked on their site but I'm sure it is in one of your repositories as well.


connection, internet, mac

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
get "Client Mac Addr 00 C0 .... Guid DHCP" on boot before grub, Why? MurX Ubuntu 2 02-23-2008 10:43 AM
Configure DHCP server to assign IP using mac addr mayaLinux Linux - Networking 4 12-07-2005 06:00 PM
Obtain IP addr. from MAC addr? Ryand833 Linux - Wireless Networking 3 06-30-2005 02:59 PM
Change my MAC addr borbjo Linux - Networking 4 09-02-2003 07:33 PM
change MAC Cubiq Linux - Networking 5 08-22-2002 03:50 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:55 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