You are not logged in.
Hi,if I want to modify my MAC address at boot time by default,how can I do?
I get my IP address by DHCP,and the IP address is banded to the MAC address.
Thank you!
Offline
Add this to one of the startup scripts, it only has to be executed before you start networking. (I'm not sure about the execution order, I'm sorry.)
ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx
Offline
Give what you have. To someone, it may be better than you dare to think.
Offline
Add this to one of the startup scripts, it only has to be executed before you start networking. (I'm not sure about the execution order, I'm sorry.)
ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx
Thank you!
I ever add this to /etc/rc.local,it works,but I still can't get IP address.
If I run "/etc/rc.d/network restart",I can get my IP address,as a result of this,my OS get slowly,why?
Offline
Thank you!
I have a try
Offline
Thank you!
I ever add this to /etc/rc.local,it works,but I still can't get IP address.
If I run "/etc/rc.d/network restart",I can get my IP address,as a result of this,my OS get slowly,why?
isn't slowly. to change your mac adress you need to changed it before eth0 is going up(i don't know why you don't see an error SIOCSIFHWADDR: Device or resource busy ). if you prefer that solution you need to add:
ifconfig eth0 down
ifconfig eth0 hw ether bla:bla:....
ifconfig eth0 up
but i prefer the first solution that i showed you.
Give what you have. To someone, it may be better than you dare to think.
Offline
at boot rc.local runs at the end of the boot process, thus rc.d/network is run before. that's why you have to rerun rc.d/network.
Last edited by lloeki (2008-01-01 16:52:16)
To know recursion, you must first know recursion.
Offline