LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 01-29-2004, 10:45 PM   #1
neopiper
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Rep: Reputation: 0
Changing Mac Address on Network Card?


I'm running Libranet 2.8.1, really happy with it, however i need to change my Network card MAC address in order to connect to the campus network as my old laptop was registered under a different mac address.

Is there a way to change et0's mac address? especially in libranet?

Thanks in advanced.
 
Old 01-29-2004, 11:05 PM   #2
hexbit
Member
 
Registered: Jun 2003
Location: Dallas, Tx
Distribution: Slackware
Posts: 65

Rep: Reputation: 15
Re: Changing Mac Address on Network Card?

As root, try this (assuming your nic is eth0) :

# /sbin/ifconfig eth0 down
# /sbin/ifconfig eth0 hw ether 00:00:00:00:00:00
# /sbin/ifconfig eth0 up

Just replace the 00:00:00:00:00:00 w/whatever you need.

=)


Quote:
Originally posted by neopiper
I'm running Libranet 2.8.1, really happy with it, however i need to change my Network card MAC address in order to connect to the campus network as my old laptop was registered under a different mac address.

Is there a way to change et0's mac address? especially in libranet?

Thanks in advanced.
 
Old 01-29-2004, 11:20 PM   #3
neopiper
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Original Poster
Rep: Reputation: 0
great it works, how can i make it default during init and boot up?
 
Old 01-30-2004, 12:27 AM   #4
King Richard
LQ Newbie
 
Registered: Jan 2004
Location: Nashville Tennessee
Distribution: Mandrake 9.1
Posts: 4

Rep: Reputation: 0
Um, I am probably going to sound like a dork, but I was under the impression that a MAC address was permanently burned into a card, and to prevent there from ever being two cards with the same MAC address, had a unique code not only identifying the specific card but also identifying the card manufacturer.
 
Old 01-30-2004, 08:00 AM   #5
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Yes, each NIC manufacturer is supposed to assign a unique MAC address to their NICs; however, it has been known that occasionally that they accidentally make dupes. There are instances (like system failover) where you do want to have a NIC changes its MAC address.
 
Old 01-30-2004, 12:00 PM   #6
neopiper
LQ Newbie
 
Registered: Oct 2003
Posts: 3

Original Poster
Rep: Reputation: 0
so any idea how i can change it and apply to it automatically during boot up?

thx
 
Old 02-26-2004, 01:54 PM   #7
PlatinumRik
Member
 
Registered: Feb 2003
Location: Buffalo, NY
Distribution: Novell Linux Desktop
Posts: 159

Rep: Reputation: 30
there are two mac addresses, a software mac address and a hardware mac address
 
Old 02-26-2004, 08:09 PM   #8
dubman
Member
 
Registered: Jan 2003
Distribution: Redhat 9, Fedora Core 1, Suse 8
Posts: 188

Rep: Reputation: 30
a MAC address i just some PHY registers in the EEPROM. These values can be easily changed if the kernel has a method to access these registers. Basically, you can spoof your MAC to be whatever you want it to be.

The PHY is going to reset each time you power cycle, so you will need to create a shell script to make the changes and place the script in your /etc/rc.local. This way the changes will be made upon boot, after all other services have been initialized.

--Hope this helps
 
Old 06-28-2004, 10:43 PM   #9
Shantesh
Member
 
Registered: Aug 2003
Location: Mumbai , INDIA
Distribution: Ubuntu 5.10 | Windows XP Professional
Posts: 82

Rep: Reputation: 15
tht ifconfig thing worked...cool...now i can access my frds account whuz not in town
 
Old 07-06-2004, 02:36 PM   #10
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,176

Rep: Reputation: 54
neopiper, this is a late reply, but I know how you can make it automatic at boot up. Edit the file /etc/rcS.d/S40networking. Scroll down until you see:
Quote:
echo -n "Configuring network interfaces: "
ifup -a
echo "done."
Add your commands above "ifup -a" so that the mac address is changed before the eth0 card is brought up
Quote:
echo -n "Configuring network interfaces: "
ifconfig eth0 down
ifconfig eth0 hw ether 00:00:00:00:00:00 up
ifup -a
echo "done."
Of course the zeros above should be your desired mac address.
 
Old 11-21-2007, 02:14 AM   #11
Fond_of_Opensource
Member
 
Registered: May 2006
Posts: 55

Rep: Reputation: 15
Unhappy

I have Redhat 9 machine.

I changed MaC address to 11:22:33:44:55 using ifconfig.


Now, I can ping to other hosts on my network and also to google.com


But when I try to open www.google.com in the Mozilla browser, I get Error as "The operation timed out when attempting to cotact www.google.com"


Please help how to solve this problem.

Last edited by Fond_of_Opensource; 11-21-2007 at 02:17 AM.
 
  


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
changing ethernet mac address and retaining the same after reboot guy24x Linux - Hardware 3 02-06-2009 06:51 AM
script that can pull ip and mac address off the network thefedexguy Linux - Networking 1 11-29-2005 03:10 PM
DNS Problems After Changing a MAC Address barns Linux - Networking 1 10-26-2005 08:32 PM
Changing my Mac address griggt Linux - Networking 3 07-26-2005 05:34 AM
changing nic mac address bishal Linux - Hardware 4 07-16-2004 04:44 PM


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