From: Eric Dumazet Subject: Re: Certain Mac Address doesn't work in KVM virtual NICs. Date: Tue, 21 Dec 2010 07:19:42 +0100 Message-ID: <1292912382.2627.160.camel@edumazet-laptop> References: <1292911654.2627.158.camel@edumazet-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Yueyu Lin , KVM To: Alex Williamson Return-path: Received: from mail-ww0-f44.google.com ([74.125.82.44]:57103 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933548Ab0LUGTs (ORCPT ); Tue, 21 Dec 2010 01:19:48 -0500 Received: by wwa36 with SMTP id 36so3796619wwa.1 for ; Mon, 20 Dec 2010 22:19:46 -0800 (PST) In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: Le lundi 20 d=C3=A9cembre 2010 =C3=A0 23:12 -0700, Alex Williamson a =C3= =A9crit : > On Mon, Dec 20, 2010 at 11:07 PM, Eric Dumazet wrote: > > Le mardi 21 d=C3=A9cembre 2010 =C3=A0 13:53 +0800, Yueyu Lin a =C3=A9= crit : > >> Hello, everyone > >> I just encountered a very strange issue in Ubuntu 10.10 serv= er > >> edition X86 64bits. I just start up my kvm like : > >> kvm -net nic,macaddr=3DB3:C0:64:AF:73:28,model=3Dvirtio -net > >> tap,script=3D/etc/qemu-ifup,downscript=3D/etc/qemu-ifdown,ifname=3D= tap2 > >> -enable-kvm -drive file=3Dcassandra.raw,format=3Draw,aio=3Dnative = -vnc :2 > >> This Mac address doesn't work at all. No working means the > >> virtual machine just thinks the eth0 is not plugged in. After I > >> changed the MAC address, it works as I expected. > >> Are there any restrictions that I can't use certain MAC > >> addresses?-- > > > > > > Sure > > > > First byte must be even. > > > > B3 is odd, so its not valid. > > > > low order bit is a marker for 'multicast' >=20 > See here for reference: http://en.wikipedia.org/wiki/MAC_address >=20 > Typically also makes sense to set the locally administered bit to > avoid collisions with real devices too. KVM should warn the user the given MAC address is wrong. ifconfig does : # ifconfig eth3 hw ether F4:CE:46:87:96:CF # ifconfig eth3 hw ether F5:CE:46:87:96:CF SIOCSIFHWADDR: Invalid argument