#464 0.69RC2 Default Gateway not set

v0.69x
closed
Volker
Others (142)
5
2012-10-28
2008-12-08
DSmarty
No

During the installation of FreeNAS 0.69RC2 it asks for a default gateway, unfortunately it doesn't use this input to configure a default route on the FreeNAS system.

You have to manually add the default gateway after installation.

Discussion

  • Volker
    Volker
    2008-12-08

    Seems to me you've found a bug in the FreeBSD scripts:

    http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/rc.d/routing?rev=1.145;content-type=text%2Fplain

    static_start()
    {
    case ${defaultrouter} in
    [Nn][Oo] | '')
    ;;
    *)
    static_routes="default ${static_routes}"
    route_default="default ${defaultrouter}"
    ;;
    esac

    # Setup static routes. This should be done before router discovery.
    #
    if [ -n "${static_routes}" ]; then
        for i in ${static_routes}; do
            eval route_args=\$route_${i}
            route add ${route_args}
        done
    fi
    

    The variable 'defaultrouter' is set in rc.conf to the default gateway entered in the setup. In /etc/rc.d/route the variable is stored in 'route_default' which is never used anymore in the script.

    Regards
    Volker

     
  • Volker
    Volker
    2008-12-08

    Hi,

    it was not a bug, everything is setup correct -> the default gateway is set correct if you do a reboot. I've enhanced the scripts to update the routes without doing a reboot.

    Please see http://freenas.svn.sourceforge.net/viewvc/freenas?view=rev&revision=4130

    Thanks && Regards
    Volker