[CentOS] Re: Is there a way to save the routing table permanently?

Tue Aug 19 14:32:26 UTC 2008
ABBAS KHAN <bashukhan at gmail.com>

Thats the config file, I was looking for.
Thanks Tom.
Worked like a charm :)

On Tue, Aug 19, 2008 at 6:48 AM, Tom Diehl <tdiehl at rogueind.com> wrote:

> On Tue, 19 Aug 2008, ABBAS KHAN wrote:
>  I'm adding the default gateway to the route through "route add default gw
>>" which is also shown in "route -n" but the problem is that as
>> soon as I restart the network through /etc/init.d/network restart; the
>> route
>> sets to default one...!
>> SO, my question is there any way to save the modified route permanently by
>> hardcoding the changes?
> There are several ways, actually.
> System-config-network is one way, or if like me you prefer to edit the
> config
> files by hand you can edit the files in
> /etc/sysconfig/network-scripts/ifcfg-eth*
> or the file /etc/sysconfig/network. There needs to be a GATEWAY= line in
> one of
> those files. If you have an existing GATEWAY line modify it to taste. If
> you
> have no default gateway I would suggest putting it in
> /etc/sysconfig/ifcfg-eth?.
> Where the ? corresponds to the interface that points to the gateway.
> Hope this helps.
> Regards,
> --
> Tom Diehl               tdiehl at rogueind.com             Spamtrap address
> mtd123 at rogueind.com
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20080819/c3b6976e/attachment-0004.html>