Package: ifupdown
Version: 0.6.7

Sarge's ifup/ifdown handling of 'up' or 'down' commands
recently gave me the following trouble:

/etc/interfaces:
iface eth0 inet static
      address a.b.c.d
      ...
      up   route add -net A.A.A.A gateway a.b.c.x
      up   route add -net B.B.B.B gateway a.b.c.y
      down route del -net B.B.B.B
      down route del -net A.A.A.A
#                    (netmasks omitted here)

The commands for the second route (for B.B.B.B) have just
been added, the route for A.A.A.A was there before.


Now, when running
     ifup eth0
it fails with some error message from the 'route' command,
since the route to A.A.A.A is already there.

On the other hand, running
     ifdown eth0
fails with some other error message since the route for
B.B.B.B cannot be removed.


*****

Therefore two wishes:
1)  When ifup or ifdown fails after some up or down command failed,
    the error message is very unclear, and it is especially unclear
    which of the up commands failed.
    It would be nice if ifup/ifdown would report the command that
    failed after the error message from the command itself.
2)  The result of 'command' should be ignored, or the documentation
    should recommend using some shell magic in such a case.

Even better would be
3)   A simple solution for static routes as a separate Debian
     package, independent from ifupdown.


Best regards,

Claus

-- 
Claus Fischer <[EMAIL PROTECTED]>
http://www.clausfischer.com/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to