WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] vif conf problem

To: Diego Parasecoli <diegoparasecoli@xxxxxxxxxxxxx>
Subject: Re: [Xen-users] vif conf problem
From: Adrian Chadd <adrian@xxxxxxxxxxxxxxx>
Date: Fri, 21 Jul 2006 00:34:02 +0800
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 20 Jul 2006 09:33:36 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <44BFAC30.9040608@xxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <44BFAC30.9040608@xxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
On Thu, Jul 20, 2006, Diego Parasecoli wrote:
> Hi all,
> i've a simple (for u) problem:
> just installed RH4.1 as dom0, now i want to assign a static ip address 
> for each virtual machine i'll made. How can i configure the vif 
> parameter in che configuration? Tryed vif = [ 'ip=192.168.1.201, 
> bridge=xenbr0' ] but doesn't work..... the root of the virtual machine 
> can set any ips he wants..

Make sure you've passed the antispoof parameter into 'network-bridge'.
Ie, the network-bridge script needs to be called like this from
/etc/xen/xend-config.sxp:

(network-script 'network-bridge antispoof=yes')

By default it doesn't have antispoof=yes in this entry in xend-config.sxp.

Yuo've got the vif line right. mine are in the reverse order, eg:

vif = [ 'bridge=xenbr0, ip=192.168.1.201' ]

And mine work, ie this shows up in iptables -L -n under the
FORWARD policy:

ACCEPT     all  --  192.168.1.201        0.0.0.0/0           PHYSDEV match 
--physdev-in vif1.0 
ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0           PHYSDEV match 
--physdev-in vif1.0 udp spt:68 dpt:67 



adrian



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>