From: Yueyu Lin Subject: Re: Certain Mac Address doesn't work in KVM virtual NICs. Date: Tue, 21 Dec 2010 14:27:12 +0800 Message-ID: <6B162018-F594-4700-8CAA-EC7C63222777@gmail.com> References: <1292911654.2627.158.camel@edumazet-laptop> <1292912382.2627.160.camel@edumazet-laptop> Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Alex Williamson , KVM To: Eric Dumazet Return-path: Received: from mail-ew0-f45.google.com ([209.85.215.45]:36328 "EHLO mail-ew0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752481Ab0LUG13 convert rfc822-to-8bit (ORCPT ); Tue, 21 Dec 2010 01:27:29 -0500 Received: by ewy10 with SMTP id 10so1855973ewy.4 for ; Mon, 20 Dec 2010 22:27:28 -0800 (PST) In-Reply-To: <1292912382.2627.160.camel@edumazet-laptop> Sender: kvm-owner@vger.kernel.org List-ID: Thanks a lot. I got the point and I got the exact warning in the virtua= l machine indeed. Besides the least significant bit should be 0 for the first byte, shou= ld I set the second least significant bit to 1 to enforce it as local a= dministrated instead of OUI enforced?=20 On Dec 21, 2010, at 2:19 PM, Eric Dumazet wrote: > Le lundi 20 d=E9cembre 2010 =E0 23:12 -0700, Alex Williamson a =E9cri= t : >> On Mon, Dec 20, 2010 at 11:07 PM, Eric Dumazet wrote: >>> Le mardi 21 d=E9cembre 2010 =E0 13:53 +0800, Yueyu Lin a =E9crit : >>>> Hello, everyone >>>> I just encountered a very strange issue in Ubuntu 10.10 serve= r >>>> 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?-- >>>=20 >>>=20 >>> Sure >>>=20 >>> First byte must be even. >>>=20 >>> B3 is odd, so its not valid. >>>=20 >>> 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. >=20 > KVM should warn the user the given MAC address is wrong. > ifconfig does : >=20 > # ifconfig eth3 hw ether F4:CE:46:87:96:CF > # ifconfig eth3 hw ether F5:CE:46:87:96:CF > SIOCSIFHWADDR: Invalid argument >=20 >=20 >=20 >=20 >=20