Maik Brauer
2008-Jul-01 19:21 UTC
[Xen-users] XEN - Routed and Bridget Mode together (mixed)
Hi, is there any possibility to get a XEN DomO and DomU running with bridget and routed mode together. The reason behind this is, to get the requests via the official IPs to the DomU''s (routed-mode) and the interworking between the DomU''s with connected with help of the (bridged-mode). I got it work, with setting everything up manually. But as I understood the "xen-config.sxp" can handle either routed or bridget, but not both together. So is there''re possibility or something what can be done via the Xen-Tools. Because after a restart everything needs to be set up again and that not the way how it should be. Many Thanks. Cheers, Maik _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Todd Deshane
2008-Jul-01 22:06 UTC
Re: [Xen-users] XEN - Routed and Bridget Mode together (mixed)
On Tue, Jul 1, 2008 at 3:21 PM, Maik Brauer <mailinglist@mbs-technet.com> wrote:> Hi, > > is there any possibility to get a XEN DomO and DomU running with bridget > and routed mode together. > The reason behind this is, to get the requests via the official IPs to the > DomU''s (routed-mode) and the interworking > between the DomU''s with connected with help of the (bridged-mode). > > I got it work, with setting everything up manually. But as I understood the > "xen-config.sxp" can handle either routed or bridget, > but not both together. So is there''re possibility or something what can be > done via the Xen-Tools. > > Because after a restart everything needs to be set up again and that not > the way how it should be. > Many Thanks. >You should be able to set a custom script in xend-config.sxp see the following for an example: http://wiki.xensource.com/xenwiki/XenNetworking Others have had similar questions, I don''t recall if configurations have been posted to the list or not... Once you set a custom script in xend-config.sxp, you can make the custom script do what you want it to. It might be worthwhile to do a quick search of the list for similar setups at xen.markmail.org. Please post your working config so that others can benefit from the custom setup. Cheers, Todd _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ray Barnes
2008-Jul-02 00:22 UTC
Re: [Xen-users] XEN - Routed and Bridget Mode together (mixed)
Config is easy; it sounds like you want simultaneous routed and bridged in the same domU. If that''s the case: vif = [ ''mac=00:16:3e:00:00:01, bridge=somebridge'' ] vif = [ ''mac=00:16:3e:00:00:02, vifname=somevif, script=vif-somevif'' ] The bridged part is easy, just make sure you bring up the bridge first with "brctl addbr somebridge" or via normal OS scripts. The vif-somevif file will reside in /etc/xen/scripts by default and can be the same for all VMs or customized for each domU. I like to customize per-domU because it''s easy to move prefixes around that way. HTH. -Ray On Tue, Jul 1, 2008 at 3:21 PM, Maik Brauer <mailinglist@mbs-technet.com> wrote:> Hi, > > is there any possibility to get a XEN DomO and DomU running with bridget > and routed mode together. > The reason behind this is, to get the requests via the official IPs to the > DomU''s (routed-mode) and the interworking > between the DomU''s with connected with help of the (bridged-mode). > > I got it work, with setting everything up manually. But as I understood the > "xen-config.sxp" can handle either routed or bridget, > but not both together. So is there''re possibility or something what can be > done via the Xen-Tools. > > Because after a restart everything needs to be set up again and that not > the way how it should be. > Many Thanks. > > Cheers, > Maik > > _______________________________________________ > 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
Maik Brauer
2008-Jul-02 20:32 UTC
Re: [Xen-users] XEN - Routed and Bridget Mode together (mixed)
Hi Ray, thanks for this hint. What I tried so far to make it happen step by step was, that I''ve included the following line in the DomU script: vif = [ ''mac=00:16:3e:00:00:01, bridge=mybridge1'' ] Before this I''ve created a bridge with brctl addbr mybridge1. I can see the vif device with an ifconfig -a in the Dom0, but if I''m looking with brctl show, there is no vif connected to my bridge. For your info, the whole XEN setup is configured to use the "routed mode", because this is necessary due to my providers setup for sub- netting. What needs to be done else ? Cheers, Maik On Jul 2, 2008, at 2:22 AM, Ray Barnes wrote:> Config is easy; it sounds like you want simultaneous routed and > bridged in the same domU. If that''s the case: > > vif = [ ''mac=00:16:3e:00:00:01, bridge=somebridge'' ] > vif = [ ''mac=00:16:3e:00:00:02, vifname=somevif, script=vif-somevif'' ] > > The bridged part is easy, just make sure you bring up the bridge > first with "brctl addbr somebridge" or via normal OS scripts. The > vif-somevif file will reside in /etc/xen/scripts by default and can > be the same for all VMs or customized for each domU. I like to > customize per-domU because it''s easy to move prefixes around that > way. HTH. > > -Ray > > > > On Tue, Jul 1, 2008 at 3:21 PM, Maik Brauer <mailinglist@mbs-technet.com > > wrote: > Hi, > > is there any possibility to get a XEN DomO and DomU running with > bridget and routed mode together. > The reason behind this is, to get the requests via the official IPs > to the DomU''s (routed-mode) and the interworking > between the DomU''s with connected with help of the (bridged-mode). > > I got it work, with setting everything up manually. But as I > understood the "xen-config.sxp" can handle either routed or bridget, > but not both together. So is there''re possibility or something what > can be done via the Xen-Tools. > > Because after a restart everything needs to be set up again and that > not the way how it should be. > Many Thanks. > > Cheers, > Maik > > _______________________________________________ > 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_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Ray Barnes
2008-Jul-04 07:01 UTC
Re: [Xen-users] XEN - Routed and Bridget Mode together (mixed)
It sounds like since your system-wide default is routed, you''re using the opposite of what I do (which is - default system-wide bridged networking, but individual vif scripts for each domU). Perhaps add "script=vif-bridge" to your vif configuration for everything using bridged networking. -Ray On Wed, Jul 2, 2008 at 4:32 PM, Maik Brauer <mailinglist@mbs-technet.com> wrote:> Hi Ray, > thanks for this hint. > What I tried so far to make it happen step by step was, that I''ve included > the following line in the DomU script: > vif = [ ''mac=00:16:3e:00:00:01, bridge=mybridge1'' ] > > Before this I''ve created a bridge with brctl addbr mybridge1. > > I can see the vif device with an ifconfig -a in the Dom0, but if I''m > looking with brctl show, there is no vif connected to my bridge. > > For your info, the whole XEN setup is configured to use the "routed mode", > because this is necessary due to my providers setup for sub-netting. > What needs to be done else ? > > Cheers, > Maik > > > > On Jul 2, 2008, at 2:22 AM, Ray Barnes wrote: > > Config is easy; it sounds like you want simultaneous routed and bridged in > the same domU. If that''s the case: > > vif = [ ''mac=00:16:3e:00:00:01, bridge=somebridge'' ] > vif = [ ''mac=00:16:3e:00:00:02, vifname=somevif, script=vif-somevif'' ] > > The bridged part is easy, just make sure you bring up the bridge first with > "brctl addbr somebridge" or via normal OS scripts. The vif-somevif file > will reside in /etc/xen/scripts by default and can be the same for all VMs > or customized for each domU. I like to customize per-domU because it''s easy > to move prefixes around that way. HTH. > > -Ray > > > > On Tue, Jul 1, 2008 at 3:21 PM, Maik Brauer <mailinglist@mbs-technet.com> > wrote: > >> Hi, >> >> is there any possibility to get a XEN DomO and DomU running with bridget >> and routed mode together. >> The reason behind this is, to get the requests via the official IPs to the >> DomU''s (routed-mode) and the interworking >> between the DomU''s with connected with help of the (bridged-mode). >> >> I got it work, with setting everything up manually. But as I understood >> the "xen-config.sxp" can handle either routed or bridget, >> but not both together. So is there''re possibility or something what can be >> done via the Xen-Tools. >> >> Because after a restart everything needs to be set up again and that not >> the way how it should be. >> Many Thanks. >> >> Cheers, >> Maik >> >> _______________________________________________ >> 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 > > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Maik Brauer
2008-Jul-04 10:10 UTC
Re: [Xen-users] XEN - Routed and Bridget Mode together (mixed)
Hi Ray, yes, I got it. You''re absolute right, my network is default in "routed mode". So with the script=vif-bridge it is working now. Many Thanks for your help so far. Cheers, Maik On Jul 4, 2008, at 9:01 AM, Ray Barnes wrote:> It sounds like since your system-wide default is routed, you''re > using the opposite of what I do (which is - default system-wide > bridged networking, but individual vif scripts for each domU). > Perhaps add "script=vif-bridge" to your vif configuration for > everything using bridged networking. > > -Ray > > > > On Wed, Jul 2, 2008 at 4:32 PM, Maik Brauer <mailinglist@mbs-technet.com > > wrote: > Hi Ray, > > thanks for this hint. > What I tried so far to make it happen step by step was, that I''ve > included the following line in the DomU script: > vif = [ ''mac=00:16:3e:00:00:01, bridge=mybridge1'' ] > > Before this I''ve created a bridge with brctl addbr mybridge1. > > I can see the vif device with an ifconfig -a in the Dom0, but if I''m > looking with brctl show, there is no vif connected to my bridge. > > For your info, the whole XEN setup is configured to use the "routed > mode", because this is necessary due to my providers setup for sub- > netting. > What needs to be done else ? > > Cheers, > Maik > > > > On Jul 2, 2008, at 2:22 AM, Ray Barnes wrote: > >> Config is easy; it sounds like you want simultaneous routed and >> bridged in the same domU. If that''s the case: >> >> vif = [ ''mac=00:16:3e:00:00:01, bridge=somebridge'' ] >> vif = [ ''mac=00:16:3e:00:00:02, vifname=somevif, script=vif- >> somevif'' ] >> >> The bridged part is easy, just make sure you bring up the bridge >> first with "brctl addbr somebridge" or via normal OS scripts. The >> vif-somevif file will reside in /etc/xen/scripts by default and can >> be the same for all VMs or customized for each domU. I like to >> customize per-domU because it''s easy to move prefixes around that >> way. HTH. >> >> -Ray >> >> >> >> On Tue, Jul 1, 2008 at 3:21 PM, Maik Brauer <mailinglist@mbs-technet.com >> > wrote: >> Hi, >> >> is there any possibility to get a XEN DomO and DomU running with >> bridget and routed mode together. >> The reason behind this is, to get the requests via the official IPs >> to the DomU''s (routed-mode) and the interworking >> between the DomU''s with connected with help of the (bridged-mode). >> >> I got it work, with setting everything up manually. But as I >> understood the "xen-config.sxp" can handle either routed or bridget, >> but not both together. So is there''re possibility or something what >> can be done via the Xen-Tools. >> >> Because after a restart everything needs to be set up again and >> that not the way how it should be. >> Many Thanks. >> >> Cheers, >> Maik >> >> _______________________________________________ >> 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 > >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users