On Tue, 2003-12-23 at 07:32, Nestor Castro wrote:
> Adolfo A. Bello B. wrote:
> 
> >On Fri, Dec 12, 2003 at 09:56:50AM +0100, Nestor Castro wrote:
> >  
> >
> >>[EMAIL PROTECTED] jncasmed]# route -n_
> >>
> >>_Kernel IP routing table_
> >>
> >>_Destination Gateway Genmask Flags Metric Ref Use Iface_
> >>
> >>_192.168.147.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1_
> >>
> >>_127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo_
> >>
> >>[EMAIL PROTECTED] jncasmed]#_
> >>
> >>
> >>
> >>arrrghhhhh,,,,,,
> >>    
> >>
> >
> >You have no default gateway defined. Use the route command to add it.
> >
> >     route add default gw 192.168.0.1 dev eth1
> >
> >(check the real ip address of the gateway)
> >
> >Adolfo
> >
> >
> >  
> >
> >------------------------------------------------------------------------
> >
> >Want to buy your Pack or Services from MandrakeSoft? 
> >Go to http://www.mandrakestore.com
> >  
> >
> ok, that worked just fine, but every time I reset my box, I have to use 
> the command to add it again, which file do I have to edit, so that it 
> executes every time I turn on my comp..
> 
> Thanks

Try these two lines in /etc/sysconfig/network:

GATEWAY="1.2.3.4"
GATEWAYDEV="eth1"

I can't remember if the double-quotes (") are needed.

Merry Christmas,

Adolfo



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to