I installed ifpludg and it works fine when having the network with cable installed. When switching the connection(dragging the cable out), eth0 is deactivated and wlan0 is activated. That is fine and it also works the same way getting back. First I configured eth0 using net-setup as http://wiki.sabayon.org/index.php?title ... king_Guide is telling me. But I couldn't find out where net-setup saves the gateway, I greped through a lot of folders but nowhere was the saved gateway to be found. Where is it stored?
But now here is the problem. After the cable is dragged out, the standard gateway is removed and doesn't come back no matter what is done! I have to enter a shell, become root and adding it again by hand.
I also tried to add the lines for adding the gateway into /etc/ifplugd/ifplugd.action but to no avail(yes, network was restarted, I even rebootet). So I removed those lines again. Now I created another script: /etc/NetworkManager/dispatcher.d/02-gateway-up-down.rc with the same rights as 01-netmount-up-down.rc saying
- Code: Select all
#!/bin/sh
# these are the args passed by NetworkManager
MY_DEV_NAME="$1"
MY_NM_ACTION="$2"
# restart network mounts service in any case, networking setup is changed
# FIXME, remove: just restart myself, do not restart
# services that depend on me
if [ "${MY_NM_ACTION}" = "up" ]; then
route del default gw>/dev/null 2>&1
route add default gw my.gateways.ip
fi
But now I have no gateway no matter what I do, not even at bootup. Adding it by hand still works but it is way too annoying to do that everytime. It can't be that hard to add the right gateway automatically, can it? Could anybody help me out?
Where are the gateways stored? Where can I change them? How to still have the right gateway after ifplugd changed the device?
Thanks in advance, I'm trying for over 7hours now and getting out of ideas.
