Hello, can anybody help me how to configure vlans? There are vlans: vlan2 vlan3 vlan30 Server has one nic - eth0. vlan2 should be dom0 eth0(peth0) for management Each vlan3 and vlan30 should be has its own bridge. How to make it? Br Peter _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
you can do something like that in the /etc/network/interfaces: auto eth0.2 auto eth0.5 auto eth0.15 iface eth0.2 inet manual mtu 1500 vlan_raw_device eth0 iface eth0.5 inet manual mtu 1500 vlan_raw_device eth0 iface eth0.15 inet manual mtu 1500 vlan_raw_device eth0 auto xenbr2 auto xenbr5 auto xenbr15 iface xenbr2 inet static bridge_ports eth0.2 bridge_maxwait 0 bridge_stp off address 192.168.20.40 netmask 255.255.255.0 network 192.168.20.0 broadcast 192.168.20.255 iface xenbr5 inet static bridge_ports eth0.5 bridge_maxwait 0 bridge_stp off address 192.168.50.40 netmask 255.255.255.0 network 192.168.50.0 gateway 192.168.50.10 broadcast 192.168.50.255 iface xenbr15 inet manual bridge_ports eth0.15 bridge_maxwait 0 bridge_stp off Am 24.05.2010 01:34, schrieb Peter Braun:> Hello, > > can anybody help me how to configure vlans? > > There are vlans: > > vlan2 > vlan3 > vlan30 > > Server has one nic - eth0. > > vlan2 should be dom0 eth0(peth0) for management > > Each vlan3 and vlan30 should be has its own bridge. > > How to make it? > >-- Greetz _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thank you. And what about xend-config.sxp keep the "network-script network-bridge" ? Howo to dedicate one vlan to dom0 form that eth0.2 eth0.5 eth0.15? Peter 2010/5/24 Christoph Kaminski <mangel@gmx.de>:> you can do something like that in the /etc/network/interfaces: > > auto eth0.2 > auto eth0.5 > auto eth0.15 > > iface eth0.2 inet manual > mtu 1500 > vlan_raw_device eth0 > > iface eth0.5 inet manual > mtu 1500 > vlan_raw_device eth0 > > iface eth0.15 inet manual > mtu 1500 > vlan_raw_device eth0 > > auto xenbr2 > auto xenbr5 > auto xenbr15 > > iface xenbr2 inet static > bridge_ports eth0.2 > bridge_maxwait 0 > bridge_stp off > address 192.168.20.40 > netmask 255.255.255.0 > network 192.168.20.0 > broadcast 192.168.20.255 > > iface xenbr5 inet static > bridge_ports eth0.5 > bridge_maxwait 0 > bridge_stp off > address 192.168.50.40 > netmask 255.255.255.0 > network 192.168.50.0 > gateway 192.168.50.10 > broadcast 192.168.50.255 > > iface xenbr15 inet manual > bridge_ports eth0.15 > bridge_maxwait 0 > bridge_stp off > > > Am 24.05.2010 01:34, schrieb Peter Braun: >> >> Hello, >> >> can anybody help me how to configure vlans? >> >> There are vlans: >> >> vlan2 >> vlan3 >> vlan30 >> >> Server has one nic - eth0. >> >> vlan2 should be dom0 eth0(peth0) for management >> >> Each vlan3 and vlan30 should be has its own bridge. >> >> How to make it? >> >> > > -- > > Greetz >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
In xend-config.sxp you need to turn off (comment out) the network-script and vif-script line. if one vlan should be used in dom0 only you can use something like that: auto eth0.2 iface eth0.2 inet manual mtu 1500 vlan_raw_device eth0 address 192.168.50.50 netmask 255.255.255.0 without the bridge part. If you want to use the bridges in a domU, you need this in domU cfg file (example): vif = [ ''bridge=xenbr5, mac=00:16:3e:05:31:50'', ''bridge=xenbr15, mac=00:16:3e:02:31:50'' ] With this setting you have 2 Interfaces in the domU. First tagged for vlan5 and second for vlan15. Am 24.05.2010 01:56, schrieb Peter Braun:> Thank you. > > And what about xend-config.sxp keep the "network-script network-bridge" ? > > Howo to dedicate one vlan to dom0 form that eth0.2 eth0.5 eth0.15? > > Peter > > >Greetz PS: sorry for my english _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On Mon, May 24, 2010 at 3:58 PM, Christoph Kaminski <mangel@gmx.de> wrote:> if one vlan should be used in dom0 only you can use something like that: > > auto eth0.2 > iface eth0.2 inet manual > mtu 1500 > vlan_raw_device eth0 > address 192.168.50.50 > netmask 255.255.255.0 > > without the bridge part.I''d actually recommend you create the bridge anyway, and put IP address on the bridge. Make this the only bridge that has an IP address (inet static). The "dedicate" part is simply not using it in any domU. It''d make it easier if someday you decide to use that vlan for domU as well. Example: if domU is a firewall, and you want to use same management address for dom0s and firewalls. -- Fajar _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users