Skip to contentSkip to conversation

Different qemu mashines networking- mac adress

Qemu-devel Matthias Taube 1 participant 1 message Mar 12, 2006

lore
Share & tools
lore
#0 lore raw

When I try to start several qemu mashines I get problems with the networking.

Normal I start mashines with
qemu -boot c -net nic,vlan=0 -net tap,vlan=0,ifname=tap0 image.img

But starting severel mashines, they would get the same ip from the dns-dhcp server because of the mac adresses.

So I start with
qemu -boot c -net nic,vlan=0,macaddr=52:54:00:12:34:56 -net tap,vlan=0,ifname=tap0 image1.img
and
qemu -boot c -net nic,vlan=0,macaddr=52:54:00:12:34:57 -net tap,vlan=0,ifname=tap1 image2.img

I am searching for a script with automatic sets a free mac adress and a free tapX number.

mfg
Matthias Taube