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-bugs

[Xen-bugs] [Bug 478] New: xen vif-route script does not work with newer

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 478] New: xen vif-route script does not work with newer iproute2 utility
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Fri, 13 Jan 2006 12:59:50 +0000
Delivery-date: Fri, 13 Jan 2006 13:10:36 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-bugs-request@lists.xensource.com?subject=help>
List-id: Xen Bugzilla <xen-bugs.lists.xensource.com>
List-post: <mailto:xen-bugs@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=unsubscribe>
Reply-to: bugs@xxxxxxxxxxxxxxxxxx
Sender: xen-bugs-bounces@xxxxxxxxxxxxxxxxxxx
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=478

           Summary: xen vif-route script does not work with newer iproute2
                    utility
           Product: Xen
           Version: 3.0-testing
          Platform: All
               URL: http://bugs.gentoo.org/show_bug.cgi?id=118823
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Unspecified
        AssignedTo: xen-bugs@xxxxxxxxxxxxxxxxxxx
        ReportedBy: chris.bainbridge@xxxxxxxxx


>From http://bugs.gentoo.org/show_bug.cgi?id=118823 reported by Sean Lynn
<slynn@xxxxxxxxxxxxxxx>:

Recent versions of iproute2 have changed the acceptable format of command line
input.  For instance, in "older" versions of iproute2 the following commands
worked:

  ip ad li
  ip r a 10.0.0/24 via 10.0.0.1

Recent versions however (in the last 6 months or so) do not allow this
shorthand input notation.

In my iproute2-ss051007 the command:

    /sbin/ip r

returns

    Object "r" is unknown, try "ip help".

You must use a longer notation:

    /sbin/ip route

the /etc/xen/scripts/vif-route script for app-emulation/xen-3.0.0-r2 (as with
earlier versions)  contains the old shorhand notation as in:

----snippet---
case "$command" in
    online)
        ifconfig ${vif} ${main_ip} netmask 255.255.255.255 up
        echo 1 >/proc/sys/net/ipv4/conf/${vif}/proxy_arp
        ipcmd='a'
        ;;
    offline)
        ifdown ${vif}
        ipcmd='d'
        ;;
esac

if [ "${ip}" ] ; then
    # If we've been given a list of IP addresses, then add routes from dom0 to
    # the guest using those addresses.
    for addr in ${ip} ; do
      ip r ${ipcmd} ${addr} dev ${vif} src ${main_ip}
    done
fi
----snippet----

As a consequence routed interfaces do not work.

-- 
Configure bugmail: 
http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-bugs] [Bug 478] New: xen vif-route script does not work with newer iproute2 utility, bugzilla-daemon <=