#1645 Gentoo static routes dont work

1.140
open
5
2004-05-20
2004-05-20
Anonymous
No

Webmin 1.140 saves the static route information in a
file called /etc/conf.d/routes. (also true on earlier
versions)
The current (May 2004) Gentoo network scripts do not
eever use this file, so routes entered via Webmin dont
work with the standard Gentoo setup.
The route information should be held in variables
within the /etc/conf.d/net file.
Refer to this [
http://bugs.gentoo.org/show_bug.cgi?id=19695 ] for an
explanation of the Gentoo support for static routes.

rono@sentuny.com.au

Discussion

  • Jamie Cameron

    Jamie Cameron - 2004-05-21

    Logged In: YES
    user_id=129364

    Thanks for the info ..
    I couldn't really work out from that page what the final
    format Gentoo settled on was. Could you attach a sample to
    this bug report?

     
  • Nobody/Anonymous

    Logged In: NO

    Example of doing this within /etc/conf.d/net

    As well as all the other bits and pieces in /etc/conf.d/net
    , if you have static routes add them against the interface
    concerned using the following type of entry. (This is for
    'eth0')
    routes_eth0=(
    "-net 10.1.0.0 netmask 255.255.0.0 gw 10.0.0.5"
    "-net 10.2.0.0 netmask 255.255.0.0 gw 10.0.0.6"
    "-host 10.3.0.1 dev eth0"
    )
    This example adds 3 seperate static routes. The
    'routes_xxxx' variable is an array of static route arguments
    to be passed to the route command.

    Use other variables like 'routes_eth1' etc for routes to be
    attached to other interfaces.

    rono@sentuny.com.au

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks