Port-xen archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Bridging with WLAN interface



On Wed, Aug 06, 2008 at 07:14:57PM +0200, Marcin M. Jessa wrote:
> Manuel Bouyer wrote:
> >On Wed, Aug 06, 2008 at 05:52:46PM +0200, Marcin M. Jessa wrote:
> >>>There is vif-ip. NAT is just a special case of IP routing, I don't think
> >>>it needs a different script. 
> >>>
> >>Exactly, I just discovered I can do the same with the if-bridge script.
> >>Please let me know if there is a better way of doing this:
> >>
> >>
> >>Like I said I just used "bridge mode" and created an interface I know 
> >>would not get occupied by anything else - tap100 :
> >
> >There's an easier way: just assign the IP address to the xvif
> >interface, no need to use a bridge an a tap. This is what the
> >vif-ip script it for (assign an IP to the vif backend, instead of adding
> >it to a bridge).
> >
> 
> How do I do that automatically? Do I need to edit the vip-ip script for 
> that (i.e add ifconfig $xip inet AA.BB.CC.DD) ?

If you set, for example
vif = [ 'mac=00:16:3e:00:00:11, ip=10.0.0.1 netmask 255.255.255.0, 
script=vif-ip' ]
it should work


> What do I chose in xend-config.sxp (there's nothing about vif-ip in it)?

No need to change it, you can override the default script in the domU's
config.

-- 
Manuel Bouyer, LIP6, Universite Paris VI.           
Manuel.Bouyer%lip6.fr@localhost
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index