now I read the man of ip ..., I got it work: default gateway root>echo to default dev <interface-name> via <nexthop route address> >/etc/sysconfig/network-scripts/route-<interface-name> then restart network, it works. Thanks for all of us. Zhou Zhen On 6/16/05, Zhen Zhou <zhouzhenzj@xxxxxxxxx> wrote: > very cool, but I couldn't add default gateway to this: > > etc/sysconfig/network-scripts/route-<interface-name> > > Contains lines that are arguments to "/sbin/ip route add" > For example: > > 192.168.2.0/24 dev ppp0 > > adds a network route to the 192.168.2.0 network through ppp0. > > maybe it is, but how could I do? > > Thanks for your input, > > Zhou Zhen > > On 6/16/05, Steffen Kluge <kluge@xxxxxxxxxxxxxx> wrote: > > On Thu, 2005-06-16 at 12:51 +0800, Zhen Zhou wrote: > > > just like route save .... to /etc/....somewhere, then next time the > > > machine boots up the route settings get loaded from it. because now > > > every time I need to setup route settings again and again, whether I > > > manage to use "service network restart"in the normal operation, or the > > > machine reboot. > > > > This is explained in /usr/share/doc/initscripts-*/sysconfig.txt > > > > Cheers > > Steffen.