Quote:
I thought MAC addresses were given to nic cards and could not be changed.
|
You can change the MAC address of a card temporarily under Linux with:
# ifconfig eth<n> down
# ifconfig eth<n> hw ether <MAC>
# ifconfig eth<n> up
Quote:
I would like to try to change MAC address while the network interface "eth0" is not going to be down.
Does anyone know how to achieve that?
|
AFAIK you have to take the interface down before changing the address. The Linux kernel prevents you from changing the MAC address on a running interface; I would guess that is to prevent bad things from happening...
~sind