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

Re: [Xen-users] VLAN help


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: Andrej Javoršek <andrejj@xxxxxxxxx>
  • Date: Wed, 4 Jun 2008 21:40:36 +0200
  • Delivery-date: Mon, 23 Jun 2008 03:58:48 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:to:in-reply-to:content-type:disposition-notification-to :mime-version:subject:date:references:x-mailer:from; b=g75Og2a4QyhH43ziPQxv7Y2V9HT+ySsBh1yXjg6MSdCgIsCstjwNwcOzQCqvhBCAqK XAAuDCfhGdWTaikhg5coJOxTNa1KsMC8VdwjjAfg8Tk42vMomeh1uhDQ1mFjvm8MxpZN VjA8xyFPon+oJqD90B91PfyhKbGI57HkwIszU=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hello!
Debian stile would be:

in /etc/network/interfaces
====================
auto bond0
iface bond0 inet static

auto vlan1
iface vlan1 inet manual
vlan-raw-device bond0

auto vlan2
iface vlan2 inet manual
vlan-raw-device bond0

auto xenbr0
iface xenbr0 inet static
address 192.168.0.13
netmask 255.255.255.0
gateway 192.168.0.1
bridge-ports vlan1

auto xenbr1
iface xenbr1 inet static
bridge-ports vlan2
=====================

and setting in /etc/xen/xend-config.sxp

(network-script network-dummy)


Andrej


On 4.6.2008, at 21:25, Nick Couchman wrote:

James,
I do the setup using the dom0's vlan tools, so in SuSE (which is what I use most of the time), I have /etc/sysconfig/network/ifcfg-vlan1 and /etc/sysconfig/network/ifcfg-xenbr1 to set up the vlan and bridge, respectively.  In RH-style, it would be something like /etc/sysconfig/network-scripts/ifcfg-bond0.1 and I can't remember what the bridge stuff is like in the RH-style ones.

-Nick

>>> On Wed, Jun 4, 2008 at  1:21 PM, "James Alspach" <jalspach@xxxxxxxxxxxxx> wrote:

Great!  That sounds like what I was thinking.

I have bond0 setup on the physical NIC which is connected to the trunked switch interface.

So to set up the interfaces in dom0 I just need to create them using iface.vlan?  Is this configured using a Xensource tool or by directly editing the /etc/sysconfig/network-scripts/?

 

Thanks;

James

 

PS
Thank you for such a fast reply!

 

 

 

James Alspach

Systems Analyst II

Shasta

County

Office of Education



From:
Sent:
Wednesday, June 04, 2008 12:14 PM
To:
Subject:
Re: [Xen-users] VLAN help

 

Here's what I do:

1) Set up tagged VLAN interface and bring all VLANs in on single interface or on trunk (bond0).

2) Set up VLAN interfaces in dom0.  In RH-type distributions this will be something like eth0.1, eth0.2, etc., or bond0.1, bond0.2, etc.  In SuSE-type distros, they are vlan1, vlan2, etc.

3) Set up bridges for each of the VLANs.  So, if I have vlan1 and vlan2, I set up xenbr1 and xenbr2 as bridges where xenbr1 has vlan1 as a bridge member and xenbr2 has vlan2 as a bridge member.  Also, if you want dom0 to have an IP address assigned on any of the VLANs, assign it on the bridge for the VLAN and not the VLAN interface itself.

4) Configure my domUs with bridge=xenbr1 for VLAN1, bridge=xenbr2 for VLAN2, etc.

 

I've pretty well settled on this as a standard and it works fairly well - it provides a consistent setup on all of my XEN servers so that moving domUs between them works w/o having to reconfigure.

 

-Nick


>>> On Wed, Jun 4, 2008 at 12:55 PM, "James Alspach" <jalspach@xxxxxxxxxxxxx> wrote:

 

We are in the process of setting up a few Xensource servers whose initial function will be to run Exchange 2007.  As part of this (and for future VM’s) I need to be able to provide access to various VLANS to the various DOM’s.

 

In theory this sounds fairly straight forward: DOM0 gets a PIF for each VLAN.  This PIF connects to a VLAN specific bridge and then, for each DOM that needs one, a VIF is created and connected to the bridge.

 

Does this sound correct?

 

If so, my question is how to specify the VLAN for a PIF.  I can list it but I am not able to set it since it is read only.

 
 

 

How do virtual networks fit into the above and how is a virtual network different from a virtual bridge?

 
 

 

Any help or pointers to information are greatly appreciated.

 
 

 

Thank you for your help;

 

James

 
 

 
 

 
 

 
 

 
 

 
 

 
 

 

James Alspach

 

Systems Analyst II
Shasta

County

Office of Education
1644 Magnolia avenue

Redding

, California
 

96003

(530) 225-0293

 
 

 

IT Hotline: 225-0279
 
 
 



This e-mail may contain confidential and privileged material for the sole use of the intended recipient. If this email is not intended for you, or you are not responsible for the delivery of this message to the intended recipient, please note that this message may contain SEAKR Engineering (SEAKR) Privileged/Proprietary Information. In such a case, you are strictly prohibited from downloading, photocopying, distributing or otherwise using this message, its contents or attachments in any way. If you have received this message in error, please notify us immediately by replying to this e-mail and delete the message from your mailbox. Information contained in this message that does not relate to the business of SEAKR is neither endorsed by nor attributable to SEAKR.


This e-mail may contain confidential and privileged material for the sole use of the intended recipient. If this email is not intended for you, or you are not responsible for the delivery of this message to the intended recipient, please note that this message may contain SEAKR Engineering (SEAKR) Privileged/Proprietary Information. In such a case, you are strictly prohibited from downloading, photocopying, distributing or otherwise using this message, its contents or attachments in any way. If you have received this message in error, please notify us immediately by replying to this e-mail and delete the message from your mailbox. Information contained in this message that does not relate to the business of SEAKR is neither endorsed by nor attributable to SEAKR.

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

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.