From mboxrd@z Thu Jan 1 00:00:00 1970 From: Asias He Subject: Re: [PATCH 2/2] kvm tools: Make host side IP configurable Date: Wed, 13 Apr 2011 21:28:00 +0800 Message-ID: <4DA5A4E0.7060900@gmail.com> References: <1302696804-29684-1-git-send-email-levinsasha928@gmail.com> <1302696804-29684-2-git-send-email-levinsasha928@gmail.com> <4DA59704.8@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: penberg@kernel.org, gorcunov@gmail.com, kvm@vger.kernel.org To: Sasha Levin Return-path: Received: from mail-pv0-f174.google.com ([74.125.83.174]:64382 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754937Ab1DMN3G (ORCPT ); Wed, 13 Apr 2011 09:29:06 -0400 Received: by pvg12 with SMTP id 12so213175pvg.19 for ; Wed, 13 Apr 2011 06:29:05 -0700 (PDT) In-Reply-To: <4DA59704.8@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On 04/13/2011 08:28 PM, Asias He wrote: > On 04/13/2011 08:13 PM, Sasha Levin wrote: >> Add --host-ip-addr parameter to allow changing the host-side IP address. > > > I'd personally prefer something like this: > > --network=model=virtio,hostip=x.x.x.x/mask,guestmac=yy:yy:yy:yy > > Once we can set up ip address for guest, we can use: > > --network=model=virtio,hostip=x.x.x.x/mask,guestmac=yy:yy:yy:yy,guestip=z.z.z.z/mask,guestgw=v.v.v.v > Alternatively, we can use an option group like this: Network options: -n --network -h --hostip -y --guestip -z --guestmac -- Best Regards, Asias He