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] any idea?

On Thu, Mar 22, 2007 at 09:24:13AM -0500, Jerry Amundson wrote:
> Please reply to the list, not directly to me.
> 
> On 3/22/07, Nicolas <ngliksberg@xxxxxxxxxxxxxx> wrote:
> >Jerry Amundson wrote:
> >> On 3/22/07, Nicolas <ngliksberg@xxxxxxxxxxxxxx> wrote:
> >>> Thanks, this no problem, the problem is traffic to eth1 redirect to eth1
> >>> of all vm machines..
> >>
> >> That's what the bridge does, right?
> >>
> >> jerry
> >>
> >Yes, but el problems is config two cards, to traffic distint, is to
> >server host, thanks
> 
> Um, what?
> 

Well, there's really only two options:
   
Option 1: Two Bridges - xenbr0 for all eth0 traffic, and xenbr1 for 
          all eth1 traffic. 
Option 2: Two Bridges - xenbr0 for all VM1 traffic, and xenbr1 for 
          all VM2 traffic. 


-- BOTH OPTIONS --

1. edit /etc/xen/xend-config.sxp:

       (network-script network-multi-bridge)

2. create and edit /etc/xen/scripts/network-multi-bridge:

       #!/bin/sh
       dir=$(dirname "$0")
       "$dir/network-bridge" "$@" vifnum=0
       "$dir/network-bridge" "$@" vifnum=1

   chmod +x /etc/xen/scripts/network-multi-bridge
  
3. # /etc/init.d/xend restart
   # brctl show
   bridge name     bridge id               STP enabled     interfaces
   xenbr0          8000.feffffffffff       no              vif0.0
                                                           peth0
   xenbr1          8000.feffffffffff       no              vif0.1
                                                           peth1

-- OPTION 1 --

4. edit /etc/xen/vm1.cfg:

      vif = [ 'bridge=xenbr0', 'bridge=xenbr1' ]

   edit /etc/xen/vm2.cfg:

      vif = [ 'bridge=xenbr0', 'bridge=xenbr1' ]


-- OPTION 2 --

4. edit /etc/xen/vm1.cfg:

      vif = [ 'bridge=xenbr0', 'bridge=xenbr0' ]

   edit /etc/xen/vm2.cfg:

      vif = [ 'bridge=xenbr1', 'bridge=xenbr1' ]

-- END --

Is this Okay?

jez

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

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