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

Re: [Xen-users] e100 + Xen + VLAN -> VLANs don't work?



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


 


Rackspace

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