|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] vif conf problem
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
|
|
|
|
|