FS#3134 - ifplugd wipes out static route for all interfaces
Attached to Project:
Arch Linux
Opened by Greg Meyer (oggb4mp3) - Wednesday, 31 August 2005, 02:27 GMT
Last edited by Dale Blount (dale) - Wednesday, 31 August 2005, 12:34 GMT
Opened by Greg Meyer (oggb4mp3) - Wednesday, 31 August 2005, 02:27 GMT
Last edited by Dale Blount (dale) - Wednesday, 31 August 2005, 12:34 GMT
|
Details
Here is my setup. ifplugd is managing the wired interface as
eth0, and I have a wifi card using the airo module that is
being managed manually and is eth1. If I bring up both
interfaces, everything is fine, 'route' shows a default
route for both interfaces. If I unplug the wired interface,
ifplugd takes out the default route for both interfaces, and
I obviously can no longer reach beyond the local network.
Both default routes are restored when the wire is plugged
back in. I have only eth0 specified in
/etc/ifplugd/ifplugd.conf as the interface to manage.
I don't know if this is a configuration issue with ifplugd, an issue with how the network scripts operate, or something else, but on every other distro I have used, ifplugd only takes down the stuff associated with the managed interface, so there is something about Arch that causes this behavior. |
This task depends upon
Closed by Kevin Piche (kpiche)
Thursday, 12 January 2006, 21:04 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in version 0.28-2.
Thursday, 12 January 2006, 21:04 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in version 0.28-2.
case "$2" in
up)
ifup $1
# ugly way to load up gateway, since
# al's net configuration doesn't associate
# gateways with specific interfaces
/sbin/route add $gateway
;;
down)
ifdown $1
# same as up...
/sbin/route del $gateway
;;
*)
echo "Wrong arguments" > /dev/stderr
;;
esac
Is it not possible to take down a gateway based on the device/interface being taken down?
/sbin/route del $gateway
to
/sbin/route del $1
everything works as expected here after making that very small change. Only the default route for the interface being managed is deleted then.