LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-04-2006, 06:28 AM   #1
ssimoncini
LQ Newbie
 
Registered: May 2006
Location: Siena (italia)
Distribution: Mandriva linux
Posts: 10

Rep: Reputation: 0
changing ethernet card hw address


Hi. I am trying installing linux on a pc featuring an a8n sli motherboard.

The board comes with two built-in ethernet cards
1) nvidia
2) marvell/sysconnect

the nvidia cards has a known bug which causes data corruption in large files downloading due to a problem in the tcp checksumming hardware, so i disabled this one.

the marvell card seems to work fine in windows, after havng set its hw address to something different from 00-00-00-00-00-00, as it comes from the factory. I know it sounds odd, but my asus board came with this kind of "setup"!

somebody suggestyed to set the hw address before hte interface gets started in the startup script by using the command

ifconfig eth0 hw ether 01:02:03:04:05:06 (for example)

the questions are:
1) which is the right script to edit to put the command in?
2) is it the right command?

thank you very much
 
Old 05-04-2006, 06:37 AM   #2
Samoth
Member
 
Registered: Apr 2005
Distribution: Exherbo
Posts: 474
Blog Entries: 1

Rep: Reputation: 32
/etc/dhcpd.conf

I think i remembered my dad putting it somewhere in /etc/dhcpd.conf.
look around in there.(if you use DHCP)

EDIT: i looked at mine and you need to put something in like

Code:
hardware ethernet 00:00:00:00:00:00;
not really sure where to put this line as there are many weird things in mine....but it would be safe to put it everywhere you find it in /etc/dhcpd.conf

Last edited by Samoth; 05-04-2006 at 06:42 AM. Reason: looked at config file myself
 
Old 05-04-2006, 07:25 AM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Welcome to LQ,

If you want exact answers, you should fill the "distribution" field of your profile.

Lets assume that you have a debian style distro:

Add this to your /etc/network/interfaces, under eth0 if you want this interface to be changed:

hwaddress ether 02:01:02:03:04:08

this could also be achieved maybe by putting a script before the interface is brought up:
Code:
#echo "/sbin/ifconfig eth0 hw ether 01:02:03:04:05:06" > /etc/network/if-pre-up.d/change_adress
#chmod +x /etc/network/if-pre-up.d/change_adress
But I'm not 100% sure that the order is ok. If not, try to move this script to /etc/network/if-up.d
 
Old 05-04-2006, 07:57 AM   #4
ssimoncini
LQ Newbie
 
Registered: May 2006
Location: Siena (italia)
Distribution: Mandriva linux
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nx5000
Welcome to LQ,

If you want exact answers, you should fill the "distribution" field of your profile.

ooops! I just did. as a matter of fact i am using mandriva linux for 64 bit pc
:-)
thanks
 
Old 05-04-2006, 08:06 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Better
put this in ifcfg-eth0 ( in /etc/network/ I think, to find it type slocate ifcfg-eth0)

MACADDR=01:02:03:04:05:06
 
  


Reply



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
Multi IP Address to Single ethernet card scratch09 Linux - Networking 4 02-22-2005 10:22 PM
How to find ethernet card I/O address palanisaravanan Linux - Newbie 2 12-29-2003 12:53 PM
Setting Up 2 i.p address on one computer with one ethernet card gr8razorx Linux - Networking 3 11-29-2003 01:51 PM
need help for changing ethernet card tomamodi Linux - Networking 2 07-21-2003 04:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration