How can I change/set the MAC address at boot time under SuSE?
Currently I use ifconfig to change the MAC address after booting the machine as follows:
Code:
openSUSE:~ # ifconfig eth1 down |
I agree with you - the ifcfg-template says it should work and when I've needed to use special stuff (wireless cards usually) putting it in eth-xx works. However, there's nothing stopping you putting your ifconfig commands in a script and putting them in /etc/init.d/boot.local.
Not as elegant but it works! |
boot.local says:
Code:
# Here you should add things, that should happen directly after booting |
I would say yes. considering the your run level will start or not start the Network which this may just set a MAC add then change it back on you. I may play with it on my laptop I got Suse 10.0 on it. If you find it works or another elegant way post it up this is a common thing for me to have to do for offsite configuration. (to many MAC changes my ISP locks me down, MAC+IP binding)
|
Sorry you're right! Had a look at startup log and boot.local gets run before the network stuff is started.
I'll have a play with scripts in /etc/init.d and let you know. |
Well I tried just putting the ifconfig statements in boot.local, rebooted (twice just to make sure) and it worked!
Let me know if it works for you. |
Thank you everyone it worked :)
|
All times are GMT -5. The time now is 05:41 AM. |