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

Re: [Xen-users] Problems with bridged networking


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "Angel L. Mateo" <amateo@xxxxx>
  • Date: Wed, 17 Sep 2008 08:05:54 +0200
  • Delivery-date: Tue, 16 Sep 2008 23:06:38 -0700
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

El lun, 15-09-2008 a las 17:00 +0200, Thomas Robers escribiÃ:
> Hi,
> 
> I've now tested Xen 3.2 from backports.org on a Debian 4.0 test
> machine with 7 Interfaces and the problem is in the script
> 'network-bridge'.
> There's a function 'do_ifup' in it which I have modified and after
> modification Xen 3.2 works on my Debian machine. I found that
> with Xen 3.2 the bridges were there but not up and everything
> works as expected when I did a 'ifconfig xenbrX up'.
> 
> Before modification:
> 
>       do_ifup() {
>       if ! ifup $1 ; then
>           if [ -n "$addr_pfx" ] ; then
>               # use the info from get_ip_info()
>               ip addr flush $1
>               ip addr add ${addr_pfx} dev $1
>               ip link set dev $1 up
>               [ -n "$gateway" ] && ip route add default via ${gateway}
>           fi
>          fi
> }
> 
> 
> After modification:
> 
>       do_ifup() {
>          ifconfig $1 up
>          if [ -n "$addr_pfx" ] ; then
>              # use the info from get_ip_info()
>              ip addr flush $1
>              ip addr add ${addr_pfx} dev $1
>              ip link set dev $1 up
>              [ -n "$gateway" ] && ip route add default via ${gateway}
>          fi
> }
> 
> So that way it works for me for now. But could there be any other
> drawback except for further updates? I also haven't really found out
> what this test with 'ifup' is really for. Can anybody explain what's
> happening there? I saw this message from 'ifup' when it got executed
> (e.g. for xenbr6):
> 
        I haven't check the rest of the scripts, but ifup is a debian command
to bring an interface up (and returns zero is everything is ok). So your
code and the original are different ways to do the same (I haven't tried
to find out why yours works and the other doesn't).

-- 
Angel L. Mateo MartÃnez
SecciÃn de TelemÃtica
Ãrea de TecnologÃas de la InformaciÃn       _o)
y las Comunicaciones Aplicadas (ATICA)      / \\
http://www.um.es/atica                    _(___V
Tfo: 968367590
Fax: 968398337



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