![]() |
Cannot set mac address with qemu
According to the qemu documentation, I should be able to set the mac address for at network card by adding macaddr=MACADDR to the device option.
So I do this: Code:
>>>qemu-system-i386 -netdev tap,ifname=tap0,id=mynet0,script=no -device i82559c,netdev=mynet0,macaddr=00:00:00:11:11:11 -m 1024 slack.vmdk I'm using qemu 1.7.0 |
When I run:
Code:
qemu-system-x86_64 -net nic,model=help |
Thanks, I tried e1000 and had the same problem.
Edit: I don't see the device with the command you gave either, but I see it if I run this, and look for Network devices. Code:
qemu-system-i386 -device \? |
It seems the macaddr property changed name to mac so this works
Code:
qemu-system-i386 -netdev tap,ifname=tap0,id=mynet0,script=no -device i82559c,netdev=mynet0,mac=00:00:00:11:11:11 -m 1024 slack.vmdk |
All times are GMT -5. The time now is 12:39 AM. |