|
|
|
|
|
|
|
|
|
|
xen-api
Re: [Xen-API] How to setup network with VLAN on bonding
Hi Anthony,
It is possible to have a VLAN on top of a bond. To do this, first create the
bond, and then create the VLAN on top of the bond master.
You would first need to create two Network objects (with Network.create): one
for the bond and one for the VLAN. Then use Bond.create with the ref of the new
bond network and refs of the PIFs that you are bonding, which will return a ref
to the new Bond object. A bond master PIF object will be created as well; get a
ref to this via Bond.get_master. Then create the VLAN by doing VLAN.create,
giving it the second network you created, the bond master PIF, and the VLAN
tag. Besides the VLAN object, an "untagged PIF" (a.k.a. VLAN master PIF) will
be created, which will be connected to your VLAN network. Use
VLAN.get_untagged_PIF to get a ref to this PIF. Finally, plug the untagged PIF
using PIF.plug to make everything happen. Only now the actual devices are
created in dom0, and your VMs can use the VLAN network.
Regards,
Rob
On 15 Jan 2010, at 20:10, Anthony Xu wrote:
> I can setup network with VLAN and I can setup network with bonding. How
> can I setup network with VLAN over bonding? I'd like to have network
> redundancy here.
>
>
> Thanks in advance
>
>
> - Anthony
>
>
>
>
>
> _______________________________________________
> xen-api mailing list
> xen-api@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/mailman/listinfo/xen-api
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
|
|
|
|
|