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

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



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.