Routes not beeing added / beeing deleted after some time

  • Hi,

    im having problems creating persistent routes on my OMV.

    I added a route in /etc/network/interfaces, which does not seem to get applied:

    iface eth0 inet static
    dns-search mm.home
    pre-down ethtool -s $IFACE wol g
    up route add -net netmask gw
    down route del -net netmask gw

    I also downloaded the route-plugin from omv-extras and set the route.
    This also does not seem to get applied.

    When im adding the route manually, via route add -net the route persists some time but seems to be getting deleted every now and then.
    If it persists long enough after manual entry, the hibernate/wakeup-process removes it again.

    Can anyone point me in the right direction ?
    Thanks in advance!

  • I found some script and customized it to my route.
    Its running in crontab every 5 minutes and it seems like its currenty working.

    If someone ever has the same problem and is finding this thread, here is the script i found with source-link:

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!