<div dir="ltr"><br>Thats the config file, I was looking for.<br>Thanks Tom.<br>Worked like a charm :)<br><br><br><br><br><br><div class="gmail_quote">On Tue, Aug 19, 2008 at 6:48 AM, Tom Diehl <span dir="ltr"><<a href="mailto:tdiehl@rogueind.com">tdiehl@rogueind.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">On Tue, 19 Aug 2008, ABBAS KHAN wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm adding the default gateway to the route through "route add default gw<br>
<a href="http://10.10.10.10" target="_blank">10.10.10.10</a>" which is also shown in "route -n" but the problem is that as<br>
soon as I restart the network through /etc/init.d/network restart; the route<br>
sets to default one...!<br>
SO, my question is there any way to save the modified route permanently by<br>
hardcoding the changes?<br>
</blockquote>
<br></div></div>
There are several ways, actually.<br>
<br>
System-config-network is one way, or if like me you prefer to edit the config<br>
files by hand you can edit the files in /etc/sysconfig/network-scripts/ifcfg-eth*<br>
or the file /etc/sysconfig/network. There needs to be a GATEWAY= line in one of<br>
those files. If you have an existing GATEWAY line modify it to taste. If you<br>
have no default gateway I would suggest putting it in /etc/sysconfig/ifcfg-eth?.<br>
Where the ? corresponds to the interface that points to the gateway.<br>
<br>
Hope this helps.<br>
<br>
Regards,<br><font color="#888888">
<br>
-- <br>
Tom Diehl               <a href="mailto:tdiehl@rogueind.com" target="_blank">tdiehl@rogueind.com</a>             Spamtrap address <a href="mailto:mtd123@rogueind.com" target="_blank">mtd123@rogueind.com</a><br>
<br>
_______________________________________________<br>
CentOS mailing list<br>
<a href="mailto:CentOS@centos.org" target="_blank">CentOS@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
</font></blockquote></div><br></div>