Package: ifupdown-extra Version: 0.25 Severity: normal Dear Maintainer,
I was using successfully the routes functionality in Debian Wheezy. On a new Jessie server, it stopped working : the routes were not added anymore with the same configuration. I managed to have it adding routes again by replacing lines in /etc/network/routes like 10.0.0.0 255.255.255.0 10.0.0.1 eth1 by 10.0.0.0 255.255.255.0 10.0.0.1 any I have no idea why routes are not added when I specify explicitly the interface. The interface of course exists and is correctly shown by the route command. Best regards, Xavier. -- System Information: Debian Release: 8.1 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages ifupdown-extra depends on: ii bind9-host [host] 1:9.9.5.dfsg-9+deb8u2 ii curl 7.38.0-4+deb8u2 ii dpkg 1.17.25 ii host 1:9.9.5.dfsg-9+deb8u2 ii iproute2 3.16.0-2 ii iputils-arping 3:20121221-5+b2 ii iputils-ping [ping] 3:20121221-5+b2 ii net-tools 1.60-26+b1 ii netcat-traditional [netcat] 1.10-41 Versions of packages ifupdown-extra recommends: ii ethtool 1:3.16-1 ifupdown-extra suggests no packages. -- Configuration Files: /etc/init.d/networking-routes changed: [ -x /sbin/route ] || exit 0 ROUTEFILE="/etc/network/routes" [ ! -r "$ROUTEFILE" ] && exit 0 . /lib/lsb/init-functions VERBOSITY=${VERBOSITY:-1} run_route() { local COMMAND="route $*" export LC_MESSAGES=C # We need the return messages to be in english RETMESSAGE="$($COMMAND 2>&1)" RETVALUE=$? if test $RETVALUE -ne 0 ; then [ "$VERBOSITY" -eq 1 ] && echo "DEBUG: calling: '$COMMAND' FAILED" # Process the messages and omits those that are not # relevant. case "$RETMESSAGE" in # Omit 'File exists' since the route is already there.. *File*exists) return ;; # 'No such process' is only omitted if the route is being # deleted. If the route is being created, this error message # might appear if the gateway is not reachable. *No*such*process) [ "$1" = "del" ] && return ;; *) esac log_failure_msg "Error while executing:" \ " Command '$COMMAND' returned: ${RETMESSAGE%%Usage:*}"\ " Configuration line: $LINE" else [ "$VERBOSITY" -eq 1 ] && echo "DEBUG: calling: '$COMMAND' SUCCEEDED" fi } del_global_routes() { ret=0 cat $ROUTEFILE | egrep "^[^#].*any$" | while read network netmask gateway interface ; do if [ -n "$interface" ] && [ -n "$network" ] && [ -n "$netmask" ] && [ -n "$gateway" ] ; then if [ "$gateway" != "reject" ] ; then [ "$VERBOSITY" -eq 1 ] && echo "DEBUG: Deleting global route for $network / $netmask through gateway $gateway" run_route del -net $network netmask $netmask gw $gateway [ $? -ne 0 ] && ret=$? else [ "$VERBOSITY" -eq 1 ] && echo "DEBUG: Deleting reject route for $network / $netmask" run_route del -net $network netmask $netmask reject [ $? -ne 0 ] && ret=$? fi else echo "ERROR: Incorrect line for global network routes in $ROUTEFILE: '$network $netmask $gateway $interface'" ret=1 fi done return $ret } add_global_routes() { ret=0 cat $ROUTEFILE | egrep "^[^#].*any$" | while read network netmask gateway interface ; do if [ -n "$interface" ] && [ -n "$network" ] && [ -n "$netmask" ] && [ -n "$gateway" ] ; then if [ "$gateway" != "reject" ] ; then [ "$VERBOSITY" -eq 1 ] && echo "DEBUG: Adding global route for $network / $netmask through gateway $gateway" run_route add -net $network netmask $netmask gw $gateway [ $? -ne 0 ] && ret=$? else [ "$VERBOSITY" -eq 1 ] && echo "DEBUG: Adding global reject route for $network / $netmask" run_route add -net $network netmask $netmask reject [ $? -ne 0 ] && ret=$? fi else echo "ERROR: Incorrect line for global network routes in $ROUTEFILE: '$network $netmask $gateway $interface'" ret=1 fi done return $ret } case "$1" in start) log_action_begin_msg "Configuring network routes" if add_global_routes; then log_action_end_msg $? else log_action_end_msg $? fi ;; stop) log_action_begin_msg "Deconfiguring network routes" if del_global_routes; then log_action_end_msg $? else log_action_end_msg $? fi ;; reload|force-reload|restart) log_action_begin_msg "Reconfiguring network routes" del_global_routes if add_global_routes; then log_action_end_msg $? else log_action_end_msg $? fi ;; *) echo "Usage: /etc/init.d/networking-routes {start|stop|restart|reload}" exit 1 ;; esac exit 0 /etc/network/routes changed: 192.168.0.0 255.255.255.0 10.0.10.1 any 192.168.100.0 255.255.255.0 10.0.10.1 any 10.66.0.0 255.255.255.0 10.0.10.1 any -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org