Networking Forums

Networking Forums > Computer Networking > Linux Networking > RedHat 9.0 - Making 'route' changes permanent

Reply
Thread Tools Display Modes

RedHat 9.0 - Making 'route' changes permanent

 
 
Chris
Guest
Posts: n/a

 
      12-08-2003, 01:37 AM
Hi,

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...

Thanks,

Chris
 
Reply With Quote
 
 
 
 
Jem Berkes
Guest
Posts: n/a

 
      12-08-2003, 01:47 AM
> 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
slackware.

> 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)


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
http://www.sysdesign.ca/
 
Reply With Quote
 
Rich Piotrowski
Guest
Posts: n/a

 
      12-08-2003, 03:21 AM
On 7 Dec 2003 18:37:19 -0800, (E-Mail Removed) (Chris) wrote:

>Hi,
>
>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...
>
>Thanks,
>
>Chris


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.


--
"Now are you talking about what it is you know
Or just repeating what it was you heard".
Grace Slick
To email use rpiotro(at)wi(dot)rr(dot)com
 
Reply With Quote
 
Chris
Guest
Posts: n/a

 
      12-08-2003, 07:13 AM
Jem Berkes <(E-Mail Removed)9__org> wrote in message news:<Xns944AD38909BAEjbuserspc9org@130.179.16.24> ...
> > 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
> slackware.
>
> > 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)

>
> Are you running a dhcp client, pppoe client or something else like that
> that would change your routing?


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).

> 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.


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...
 
Reply With Quote
 
Frank Winans
Guest
Posts: n/a

 
      12-08-2003, 10:04 PM
"Rich Piotrowski" wrote
> (E-Mail Removed) (Chris) wrote:
> >I am running RH9.0 and am trying to find a way to:
> > <snip>
> >2. Make permanent changes to the routing table (using 'route') so
> >that survive reboots <snip>
> >I've seen much discussion on this, involving for example, changing the
> >'static-routes' file, but this file doesn't exist on RH9.0! <snip>

> 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.

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.

 
Reply With Quote
 
Rich Piotrowski
Guest
Posts: n/a

 
      12-09-2003, 01:45 PM
On Mon, 8 Dec 2003 17:04:19 -0600, "Frank Winans" <(E-Mail Removed)>
wrote:

>"Rich Piotrowski" wrote
>> (E-Mail Removed) (Chris) wrote:
>> >I am running RH9.0 and am trying to find a way to:
>> > <snip>
>> >2. Make permanent changes to the routing table (using 'route') so
>> >that survive reboots <snip>
>> >I've seen much discussion on this, involving for example, changing the
>> >'static-routes' file, but this file doesn't exist on RH9.0! <snip>

>> 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.

>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.


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.


--
"Now are you talking about what it is you know
Or just repeating what it was you heard."
Grace Slick
To E-mail use: rpiotro(at)wi(dot)rr(dot)com
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Redhat 9 router will not route after changing IP Rod Linux Networking 5 01-22-2007 10:59 PM
Making Route Delete Persistent Windows Networking 8 02-17-2005 02:23 PM
Making route output wider! Cameron Kerr Linux Networking 1 05-19-2004 03:48 PM
How Do I Config Static Route Permanent On Fedora mpanlop Linux Networking 3 04-15-2004 03:03 PM
Is the route command permanent? Anthony Ewell Linux Networking 6 06-27-2003 02:43 PM



1 2 3 4 5 6 7 8 9 10 11