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] e100 + Xen + VLAN -> VLANs don't work?

To: Timo Benk <timo.benk@xxxxxx>
Subject: Re: [Xen-users] e100 + Xen + VLAN -> VLANs don't work?
From: Tomasz Chmielewski <mangoo@xxxxxxxx>
Date: Fri, 02 Feb 2007 16:04:27 +0100
Cc: Daniele Palumbo <daniele@xxxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 02 Feb 2007 07:04:43 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <45C34EC2.8000106@xxxxxx>
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: <45C32545.6060109@xxxxxxxx> <200702021302.27441.daniele@xxxxxxxxxxxx> <45C32B72.90408@xxxxxxxx> <200702021402.15168.daniele@xxxxxxxxxxxx> <45C33905.1040805@xxxxxxxx> <45C34463.50309@xxxxxx> <45C346C1.8000806@xxxxxx> <45C34C3C.6020108@xxxxxxxx> <45C34EC2.8000106@xxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061110 Mandriva/1.5.0.8-1mdv2007.1 (2007.1) Thunderbird/1.5.0.8 Mnenhy/0.7.4.666
Timo Benk wrote:

(...)

Script:

#/bin/bash

brctl delif xenbr0 peth0
brctl delif xenbr0 vif0.0

ip l s xenbr0 down
brctl delbr xenbr0

brctl addbr vlan10
brctl addbr vlan20
brctl addbr vlan30
ip l s vlan10 up
ip l s vlan20 up
ip l s vlan30 up

modprobe 8021q
vconfig add peth0 10
vconfig add peth0 20
vconfig add peth0 30
ip l s peth0.10 up
ip l s peth0.20 up
ip l s peth0.30 up

brctl addif vlan10 peth0.10
brctl addif vlan10 vif0.0

ip l s eth0 mtu 1496

Hmm, you sure you didn't change anything / pasted the whole script?

# /etc/init.d/xend start   # (empty network-script)
# bash -x script.vlans
+ brctl delif xenbr0 peth0
interface peth0 does not exist!
+ brctl delif xenbr0 vif0.0
interface vif0.0 does not exist!
+ ip l s xenbr0 down
SIOCGIFFLAGS: No such device
+ brctl delbr xenbr0
bridge xenbr0 doesn't exist; can't delete it
+ brctl addbr vlan10
+ brctl addbr vlan20
+ brctl addbr vlan30
+ ip l s vlan10 up
+ ip l s vlan20 up
+ ip l s vlan30 up
+ modprobe 8021q
+ vconfig add peth0 10
ERROR: trying to add VLAN #10 to IF -:peth0:-  error: Invalid argument
+ vconfig add peth0 20
ERROR: trying to add VLAN #20 to IF -:peth0:-  error: Invalid argument
+ vconfig add peth0 30
ERROR: trying to add VLAN #30 to IF -:peth0:-  error: Invalid argument
+ ip l s peth0.10 up
SIOCGIFFLAGS: No such device
+ ip l s peth0.20 up
SIOCGIFFLAGS: No such device
+ ip l s peth0.30 up
SIOCGIFFLAGS: No such device
+ brctl addif vlan10 peth0.10
interface peth0.10 does not exist!
+ brctl addif vlan10 vif0.0
+ ip l s eth0 mtu 1496



Additionally, it is necessary for me to set the MTU inside the Domain-U to
1496.

xendom1~ # ip l s eth0 mtu 1492

Question: do you set up VLANs in domU as well? I hope not, this is a wrong approach to VLANs.


--
Tomasz Chmielewski
http://wpkg.org





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

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