[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-discuss] Qemu guest network tap interface
From: |
Mike Lovell |
Subject: |
Re: [Qemu-discuss] Qemu guest network tap interface |
Date: |
Thu, 17 May 2012 15:28:46 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.28) Gecko/20120313 Lightning/1.0b2 Thunderbird/3.1.20 |
On 05/17/2012 03:18 PM, Charles Chou wrote:
Question: how do I force the VM to use the HWaddr of the tap interface?
the -net nic options support a macaddress option to specify the mac
address of the virtual nic the guest sees. you can it like '-net
nic,macaddr=fe:dc:ba:98:76:54' replacing with whatever mac address you want.
you probably don't want to set the mac address of the guest's network
interface to be the same as the tap interface though it would probably
work in your scenario. it would break if you were to not use a bridge
and just assign and ip address to the tap and another ip address to the
guest and using the same mac address for the guest nic and the host tap.
also, if you generate a mac address for the guest, make sure the 2nd
letter from the left is even (0,2,4...) since that number being odd
means the mac address is an ethernet multicast address.
hope that provides some useful information.
mike