RedHat 9.0 - Making 'route' changes permanent

Discussion in 'Linux Networking' started by Chris, Dec 8, 2003.

  1. Chris

    Chris Guest


    I am running RH9.0 and am trying to find a way to:

    1. Undo earlier changes to the routing table such that they survive
    reboots (i.e. I added some entries I now wish to delete, but they keep
    coming back no matter what I change)

    2. Makes permanent changes to the routing table (using 'route') so
    that they survive reboots - because I have found a working
    configuration I want to make permanent

    I've seen much discussion on this, involving for example, changing the
    'static-routes' file, but this file doesn't exist on RH9.0! The file
    /proc/net/route seems to contain information I might want to change,
    but it refuses to allow changes, even as 'root'.

    I'm confused; any help appreciated. It seems that the nature of this
    problem changes from version to version. Many HOWTOS etc. list
    commands that don't work and talk about files that don't exist...


    Chris, Dec 8, 2003
    1. Advertisements

  2. Chris

    Jem Berkes Guest

    I am running RH9.0 and am trying to find a way to:

    I don't know much about how the redhat distro does its system
    initialization scripts, never cared for it myself so I switched to
    Are you running a dhcp client, pppoe client or something else like that
    that would change your routing?

    Provided there's no such process that is actively overwriting your routing,
    then it's just a matter of determing the precise sequence of route commands
    you need, e.g.

    route add ..
    route add default gw

    Then insert these into whatever script your system runs during boot.
    Routing is contained within the kernel so it will be uninitialized until
    you run those route commands.
    Jem Berkes, Dec 8, 2003
    1. Advertisements

  3. The static-routes file is indeed gone. You now put your permanent
    routing information into /etc/sysconfig/network-scripts/route-eth(x).
    I think that redhat-config-network will do that for you also but I
    have not tried it.
    Rich Piotrowski, Dec 8, 2003
  4. Chris

    Chris Guest

    Yes, I am running a DHCP server ('dhcpd') that comes with RH9.0. I'm
    trying to configure it to serve other clients on a 'home' network IP
    addresses as needed, and it's turning into a bit of a nightmare
    (seeing as I know very little about setting up a network).
    I botched a way around this by adding overriding commands to the
    /etc/rc.d/rc.local file, but I still want to know *where* those other
    configuration commands are coming from, how they got there and why I
    can't make them disappear. Call me picky, but...
    Chris, Dec 8, 2003
  5. Chris

    Frank Winans Guest

    Umm, haven't tried that, but redhat 9.0 script /etc/rc.d/rc3.d/S10network
    does seem to check for existance of file /etc/sysconfig/static-routes file,
    and to honor it if present.
    Frank Winans, Dec 8, 2003
  6. Yes it does! Strange. That would not work for me. Now I wonder why. The
    /etc/sysconfig/network-scripts/route-eth(x) does indeed work.
    Rich Piotrowski, Dec 9, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.