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

Re: [Xen-users] dummy interfaces on a bridge?


  • To: "Esteban Sancho" <esteban.sancho@xxxxxxxxx>
  • From: "Chris Fanning" <christopher.fanning@xxxxxxxxx>
  • Date: Mon, 10 Jul 2006 12:12:14 +0200
  • Cc: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Mon, 10 Jul 2006 03:12:53 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=s2ylPPurCHA44qwjHWfRbLVTW7M09b8oEjLTF2zlXiQ32Ye5Fz3dShVfenhIaHe6lcAvicp69dVjnaitZ2eiUUMGIxf4NWRcMn63NP5JG33T4TVL7Y46gTloP5oIFU8ZCTQBu6rIoA6MiiSNkJpbmSvLsdZBwP6IhryAvnxI0DI=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi,

Well, I'm ready to try this and here are my first problems.
the box already has two physical nic. eth0 and eth1. these work fine.

*****************************
So I do on dom0:

/etc/network/interfaces
auto dummy0
iface dummy0 inet static
       address 192.168.6.1
       netmask 255.255.255.0
       network 192.168.6.0
       broadcast 192.168.6.255

/etc/xen/scripts/my-network-bridge
#!/bin/bash
case "$1" in
       start)
               /etc/xen/scripts/network-bridge start bridge=xenbr0
netdev=eth0 vifnum=0 antispoof=no
               /etc/xen/scripts/network-bridge start bridge=xenbr1
netdev=eth1 vifnum=1 antispoof=no
               /etc/xen/scripts/network-bridge start bridge=xenbr2
netdev=dummy0 vifnum=2 antispoof=no
       ;;
       stop)
               /etc/xen/scripts/network-bridge stop bridge=xenbr0
netdev=eth0 vifnum=0
               /etc/xen/scripts/network-bridge stop bridge=xenbr1
netdev=eth1 vifnum=1
               /etc/xen/scripts/network-bridge stop bridge=xenbr2
netdev=dummy0 vifnum=2
       ;;
       restart)
               $0 stop
               $0 start
       ;;
       *)
       echo "usage: $0 {start|stop|restart}"
esac
exit 0


/etc/xen/desktopU
kernel = "/boot/vmlinuz-2.6.16-xen"
ramdisk = "/boot/initrd-xen-3.0.2-2.img"
memory = 700
name = "desktopU"
vcpus = 2

disk = ['phy:/dev/sdc1,hda1,w','phy:/dev/sdb5,hda2,w']
root = "/dev/hda1 ro"
extra = "4"
vif = ['bridge=xenbr0','bridge=xenbr1','bridge=xenbr2']


*****************************
and on domU

/etc/network/interfaces
auto dummy0
       iface dummy0 inet static
       address 192.168.6.2
       netmask 255.255.255.0
       network 192.168.6.0
       broadcast 192.168.6.255
       # I've also tried addind "bridge_ports xenbr2"
********************

on dom0
#brctl show
bridge name     bridge id               STP enabled     interfaces
xenbr0          8000.feffffffffff       no              vif2.0
                                                       peth0
                                                       vif0.0
xenbr1          8000.feffffffffff       no              vif2.1
                                                       peth1
                                                       vif0.1
xenbr2          8000.feffffffffff       no              vif2.2
                                                       pdummy0
                                                       vif0.2

#ip add sh dummy0
7: dummy0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
   link/ether 66:a8:9d:81:4b:51 brd ff:ff:ff:ff:ff:ff
   inet 192.168.6.1/24 brd 192.168.6.255 scope global dummy0


and on domU
# ip add sh dummy0
21: dummy0: <BROADCAST,NOARP,UP> mtu 1500 qdisc noqueue
   link/ether 56:f9:d9:50:d3:87 brd ff:ff:ff:ff:ff:ff
   inet 192.168.6.2/24 brd 192.168.6.255 scope global dummy0


I think that looks ok.
But I can't ping between them.

Any suggestions?

Cheers.
Chris.



On 6/23/06, Esteban Sancho <esteban.sancho@xxxxxxxxx> wrote:
Hi Chris,

I didn't test that but think it's a good oportunity for you to do so. :o)

I suppose that performance should be better since data don't have to
go through all the TCP layers.

Please let me know if you need any help configuring it. You'll need to
create a dummy interface in the Dom0 and configure a vif for the DomU
pointing to the bridge xend creates when it's started (something like
xenbr0).

Cheers,

Esteban

On 6/22/06, Chris Fanning <christopher.fanning@xxxxxxxxx> wrote:
> Hi Esteban,
>
> > Could you please post your network configuration (ifconfig is OK) in
> > both Dom0 and DomU? It could also be helpful if you post your vif line
> > in the DomU configuration file.
>
> Well, I haven't actually tied to do this yet so that means I haven't
> run into any problems either. :)
> I was just asking what you thought about the idea.
>
> Will I get a faster network connection between dom0 and domU using a
> dummy interface instead of a real nic?
>
> Cheers.
> Chris.
>
> On 6/21/06, Esteban Sancho <esteban.sancho@xxxxxxxxx> wrote:
> > Hi Chris,
> >
> > Could you please post your network configuration (ifconfig is OK) in
> > both Dom0 and DomU? It could also be helpful if you post your vif line
> > in the DomU configuration file.
> >
> > Regards,
> >
> > Esteban
> >
> > On 6/20/06, Chris Fanning <christopher.fanning@xxxxxxxxx> wrote:
> > > Hi all,
> > >
> > > I export from dom0 and mount on the domU file system using nfs.
> > > dom0 exports
> > > /directory domU_eth0_ip(rw....
> > >
> > > and domU mounts
> > > dom0_eth0_ip:/directory /home nfs tcp,rw 0 0
> > >
> > > My question is, would the data transfer be faster if I used a dummy
> > > interface instead of using a 100mbs nic?
> > > If so, that means I'd have to setup a bridge for the two dummy
> > > interfaces or something like that, right? How is that done?
> > >
> > > Thanks.
> > > Chris.
> > >
> > > _______________________________________________
> > > Xen-users mailing list
> > > Xen-users@xxxxxxxxxxxxxxxxxxx
> > > http://lists.xensource.com/xen-users
> > >
> >
>


_______________________________________________
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®.