I want to know how to fix the MAC address to one of my choice in openSUSE 11?
In fact, I know how to change the MAC address by “if config eth0 hw ether xx:xx:xx:xx:xx:xx”, but not to make it fixed, I mean you don’t have to change it every time you boot the system.:sarcastic:
It can be done in YaST from the Network Device configuration. There’s a tab to select Advanced or Hardware options, I forget which, and there you can specify the hardware address (MAC) you want the device to be set to at device activation. If you prefer to do it by text editor, you can add:
LLADDR="aa:bb:cc:dd:ee:ff"
into /etc/sysconfig/network/ifcfg-eth? aa:bb etc is the MAC address you want of course. Naturally you must make sure you don’t set a MAC address that already exists on your LAN.
I’m really grateful for you for your help, and I’m sorry, but the first way I didn’t know how to use it, and the second didn’t work with me, please, if you have any other ideas tell me if that wouldn’t bother you.
If your network interface is eth0, then you will have a file that stores the configuration for that -
/etc/sysconfig/network/ifcfg-eth0
As key_yap suggested, you may insert a line in that file like:
LLADDR='11:22:33:44:55:66'
to set the MAC address to ‘11:22:33:44:55:66’.
But make sure that this address is not used by any other computer or ethernet equipment connected to the same network. Otherwise, it will create havoc due to duplicate ARP replies.
Before changing it, let us know why you do you want to do this.
Thank you every one for the help, I have found the way to make that, after looking for it in these forums, and changed it by entering “/sbin/ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx” in “boot.local” file which is in “/etc/ini.d/”.
“syampillai”, you asked me for the cause make me change the MAC address, it was because that my internet provider, provide the internet in a login operation and every user have its own MAC address to log in throw, and after any system reinstalling the MAC address would change, of course, then I have to change it.
Thank you all.
That looks very illogical. ISP should not depend on or bind to a MAC address. MAC addresses are (supposed to be) unique and they should not link it to an Internet connection. Someone making manual adjustments to the MAC address can create big problems for them.