Monday, July 10, 2006

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
Post a Comment