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:

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)


Popular posts from this blog

Adding simple popup to Plone frontpage

Tee'ing Python subprocess.Popen output

HOWTO: Mirroring Yum repositories using Yum-Utils