[CentOS] Re: Is there a way to save the routing table permanently?
bashukhan at gmail.com
Tue Aug 19 14:32:26 UTC 2008
Thats the config file, I was looking for.
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
>> 10.10.10.10" 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
>> 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
> files by hand you can edit the files in
> 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
> have no default gateway I would suggest putting it in
> Where the ? corresponds to the interface that points to the gateway.
> Hope this helps.
> Tom Diehl tdiehl at rogueind.com Spamtrap address
> mtd123 at rogueind.com
> CentOS mailing list
> CentOS at centos.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the CentOS