LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-08-2009, 02:19 AM   #1
raju.mopidevi
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, 02:58 AM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 5.4, Mac OS 10.4 (tiger)
Posts: 1,005

Rep: Reputation: 79
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.

HWADDR=XX:XX:XX:XX:XX:XX

Last edited by r3sistance; 02-08-2009 at 06:02 AM. Reason: Red Hat
 
Old 02-08-2009, 08:55 AM   #3
raju.mopidevi
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

hii,
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, 11:16 AM   #4
mikidouglas
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 11:30 AM.
 
Old 02-08-2009, 11:42 AM   #5
larryhaja
Member
 
Registered: Jul 2008
Distribution: Slackware 13.1
Posts: 292

Rep: Reputation: 75
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.
http://www.alobbs.com/macchanger
 
  


Reply

Tags
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 09:43 AM
Configure DHCP server to assign IP using mac addr mayaLinux Linux - Networking 4 12-07-2005 05:00 PM
Obtain IP addr. from MAC addr? Ryand833 Linux - Wireless Networking 3 06-30-2005 01:59 PM
Change my MAC addr borbjo Linux - Networking 4 09-02-2003 06:33 PM
change MAC Cubiq Linux - Networking 5 08-22-2002 02:50 PM


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

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