Binding eth device to a MAC address

Having multiple network cards can be a little confusing. The device associated with an eth device might got mixed up when you change your kernel. Here is a little guide to overcome this.

1st : Getting the MAC address

run /sbin/ifconfig , copy HWaddr value and figure out which network card it belongs to.

eth0 Link encap:Ethernet HWaddr 00:E0:4C:43:D8:80

2nd : Edit the conf

as root, open /etc/sysconfig/networking/devices/ifcfg-ethN (N is the number of your eth device) using your favourite text editor. Add this key into the configuration:

HWADDR=device-MAC-address
3rd : Restart computer

restart the computer to apply the bind. (if you are very good in kernel modules, you can try to apply the setting without restarting)



Reference

http://www.redhat.com/archives/redhat-list/2003-August/msg00817.html

Comments

Anonymous said…
Your website has a useful information for beginners like me.
»
Anonymous said…
I find some information here.
Nadya Faquhar said…
wow good tutorial :)
Phattone said…

If you looking for a new a solid provider of an ethernet service you should have a look a interoute. The have a wonderful service ethernet reach.

Popular posts from this blog

Tee'ing Python subprocess.Popen output

Consolidated community site infrastructure on Plone

HOWTO: Linux Container (LXC) on Fedora 12