Hi Xen folks, I have a question where I couldn''t find the answer on google or in the archives... I have a statically compiled xenU kernel, and I want a XEN guest with 2 network interfaces. My config looks like this: name = "myname" kernel = "/boot/vmlinuz-2.6-xenU" memory = 256 vif = [ ''bridge=br701'', ''bridge=br9'' ] disk = [ ''phy:vg0/myname,hda1,w'',''phy:vg0/myname_swap,hda2,w'' ] ip="1.2.3.4" netmask="255.255.255.0" root = "/dev/hda1 ro" extra = "2" Unfortunately the interface order in the (Linux)-Guest seems to be random. This means after booting the guest the IP 1.2.3.4 is assigned to either br701 or br9, but it''s always random (both interfaces work in the guest though). If I define mac-addressses for the interfaces there is no difference. Can I somehow "lock" those interfaces? I don''t know how. I''d appreciate your help! wogri -- wogri@wogri.com http://www.wogri.com http://www.einradfilm.at _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
I have the following in my config: vif = [ ''mac=00:16:3e:00:00:00, bridge=xenbr0'', ''mac=00:16:3e:00:00:01, bridge=xenbr1'' ] I have no IP-config in the xen-config file, I do that in the guest itself. In xend-config.sxp I have: (network-script network-custom-bridge) And my network-custom-bridge script looks like this: #!/bin/bash dir=$(dirname "$0") "$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0 "$dir/network-bridge" "$@" vifnum=1 netdev=eth1 bridge=xenbr1 This works fine for me. Good luck, Kris -----Oorspronkelijk bericht----- Van: Wolfgang Hennerbichler [mailto:wogri@wogri.com] Verzonden: donderdag 22 maart 2007 9:19 Aan: xen-users@lists.xensource.com Onderwerp: [Xen-users] Interface Order Hi Xen folks, I have a question where I couldn''t find the answer on google or in the archives... I have a statically compiled xenU kernel, and I want a XEN guest with 2 network interfaces. My config looks like this: name = "myname" kernel = "/boot/vmlinuz-2.6-xenU" memory = 256 vif = [ ''bridge=br701'', ''bridge=br9'' ] disk = [ ''phy:vg0/myname,hda1,w'',''phy:vg0/myname_swap,hda2,w'' ] ip="1.2.3.4" netmask="255.255.255.0" root = "/dev/hda1 ro" extra = "2" Unfortunately the interface order in the (Linux)-Guest seems to be random. This means after booting the guest the IP 1.2.3.4 is assigned to either br701 or br9, but it''s always random (both interfaces work in the guest though). If I define mac-addressses for the interfaces there is no difference. Can I somehow "lock" those interfaces? I don''t know how. I''d appreciate your help! wogri -- wogri@wogri.com http://www.wogri.com http://www.einradfilm.at _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Thanks for that information! Do you have a customized vif-script as well? It seems that your custom-bridge does the same I do in my "static (with /etc/network/interfaces in debian) configuration - I create bridges to "physical" interfaces: iface br9 inet manual up brctl addbr br9 up ip link set br9 up up brctl addif br9 vlan9 down brctl delif br9 vlan9 down ip link set br9 down down brctl delbr br9 iface vlan9 inet manual pre-up vconfig set_name_type VLAN_PLUS_VID_NO_PAD pre-up vconfig add eth0 9 pre-up ip link set vlan9 address 00:16:3e:09:01:01 arp off up ip link set vlan9 up down ip link set vlan9 down post-down vconfig rem vlan9 ... and so on... But I think that the vif-part is the "faulty" one. On 22.03.2007, at 09:32, Kris Doosje wrote:> I have the following in my config: > > vif = [ ''mac=00:16:3e:00:00:00, bridge=xenbr0'', > ''mac=00:16:3e:00:00:01, bridge=xenbr1'' ] > > I have no IP-config in the xen-config file, I do that in the guest > itself. > > In xend-config.sxp I have: (network-script network-custom-bridge) > > And my network-custom-bridge script looks like this: > > #!/bin/bash > dir=$(dirname "$0") > "$dir/network-bridge" "$@" vifnum=0 netdev=eth0 bridge=xenbr0 > "$dir/network-bridge" "$@" vifnum=1 netdev=eth1 bridge=xenbr1 > > This works fine for me. > > Good luck, > > Kris > > > -----Oorspronkelijk bericht----- > Van: Wolfgang Hennerbichler [mailto:wogri@wogri.com] > Verzonden: donderdag 22 maart 2007 9:19 > Aan: xen-users@lists.xensource.com > Onderwerp: [Xen-users] Interface Order > > > Hi Xen folks, > > I have a question where I couldn''t find the answer on google or in > the archives... > I have a statically compiled xenU kernel, and I want a XEN guest with > 2 network interfaces. My config looks like this: > > name = "myname" > kernel = "/boot/vmlinuz-2.6-xenU" > memory = 256 > vif = [ ''bridge=br701'', ''bridge=br9'' ] > disk = [ ''phy:vg0/myname,hda1,w'',''phy:vg0/myname_swap,hda2,w'' ] > ip="1.2.3.4" > netmask="255.255.255.0" > root = "/dev/hda1 ro" > extra = "2" > > Unfortunately the interface order in the (Linux)-Guest seems to be > random. This means after booting the guest the IP 1.2.3.4 is assigned > to either br701 or br9, but it''s always random (both interfaces work > in the guest though). If I define mac-addressses for the interfaces > there is no difference. Can I somehow "lock" those interfaces? I > don''t know how. I''d appreciate your help! > > wogri > > -- > wogri@wogri.com > http://www.wogri.com > http://www.einradfilm.at > > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users-- www.vix.at // www.aco.net // www.sth.ac.at wh@univie.ac.at // WH844-RIPE Vienna University Computer Center Tel: +43 1 4277-14031 // Fax: -9140 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 22.03.2007, at 09:32, Kris Doosje wrote:> I have no IP-config in the xen-config file, I do that in the guest > itself.Other than that, do you have any special configuration in your guest? wogri -- www.vix.at // www.aco.net // www.sth.ac.at wh@univie.ac.at // WH844-RIPE Vienna University Computer Center Tel: +43 1 4277-14031 // Fax: -9140 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
> Do you have a customized vif-script as well?No, only custom script is for creating the bridges.> Other than that, do you have any special configuration in your guest?No, no special configuration in the client. Just something like this in /etc/network/interfaces (debian guest): auto eth0 iface eth0 inet static address x.x.x.x netmask x.x.x.x broadcast x.x.x.x gateway x.x.x.x and the same way for eth1.. Kris -----Oorspronkelijk bericht----- Van: Wolfgang Hennerbichler [mailto:wogri@wogri.com] Verzonden: donderdag 22 maart 2007 10:55 Aan: Kris Doosje CC: xen-users Onderwerp: Re: [Xen-users] Interface Order On 22.03.2007, at 09:32, Kris Doosje wrote:> I have no IP-config in the xen-config file, I do that in the guest > itself.Other than that, do you have any special configuration in your guest? wogri -- www.vix.at // www.aco.net // www.sth.ac.at wh@univie.ac.at // WH844-RIPE Vienna University Computer Center Tel: +43 1 4277-14031 // Fax: -9140 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Il giorno 22/mar/07, alle ore 09:18, Wolfgang Hennerbichler ha scritto:> Hi Xen folks, > > I have a question where I couldn''t find the answer on google or in > the archives... > I have a statically compiled xenU kernel, and I want a XEN guest > with 2 network interfaces. My config looks like this:i have had the same problem with 3.0.4, search for my post. a patch was posted. bye d. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
On 22.03.2007, at 13:50, Daniele Palumbo wrote:> i have had the same problem with 3.0.4, search for my post.found it.> a patch was posted.applied it. Works now. Thanks a lot!> bye > d.thx :) wogri -- www.vix.at // www.aco.net // www.sth.ac.at wh@univie.ac.at // WH844-RIPE Vienna University Computer Center Tel: +43 1 4277-14031 // Fax: -9140 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Wolfgang Hennerbichler wrote:> Hi Xen folks, > > I have a question where I couldn''t find the answer on google or in the > archives... > I have a statically compiled xenU kernel, and I want a XEN guest with > 2 network interfaces. My config looks like this: > > name = "myname" > kernel = "/boot/vmlinuz-2.6-xenU" > memory = 256 > vif = [ ''bridge=br701'', ''bridge=br9'' ] > disk = [ ''phy:vg0/myname,hda1,w'',''phy:vg0/myname_swap,hda2,w'' ] > ip="1.2.3.4" > netmask="255.255.255.0" > root = "/dev/hda1 ro" > extra = "2" > > Unfortunately the interface order in the (Linux)-Guest seems to be > random. This means after booting the guest the IP 1.2.3.4 is assigned > to either br701 or br9, but it''s always random (both interfaces work > in the guest though). If I define mac-addressses for the interfaces > there is no difference. Can I somehow "lock" those interfaces? I don''t > know how. I''d appreciate your help! > > wogriUse pre-defined MAC addresses, and most Linux environments have a way of associating specific MAC addresses with specific network ports. Under RedHat and its ilk, it''s in /etc/sysconfig/ntework-scripts/ifcfg-eth0 and is the HWADDR setting. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users