/etc/sysconfig/network-scripts/ifcfg-eth0

Should be a line like, GATEWAY=192.168.0.1
Change this or remove the line if you do not have gateway.

This is from memory, sOoo check first.

HTH
Dave

Original Message:
-----------------
From: Stefano POGLIANI [EMAIL PROTECTED]
Date: Wed, 20 Feb 2002 15:47:52 +0100
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: [expert] Hot to remove the default route to 0.0.0.0


Does anyone know which is the most correct way to
remove the default route 0.0.0.0 ?
When issuing netstat -nr I see a line of this type:

0.0.0.0 192.168.0.1.    0.0.0.0 UG      40      0       0 eth0


If I dial, I am not able to ping ANY site.
If I use "route delete default" then I can dial and I
can use the internet.

So, instead of doing "route delete default" each time
I log into or instead than adding the above into rc.local,
is there a better way to avoid this problem ?

Thanks a lot indeed. Best regards
/stefano

>
>
> I am using a static IP number (192.168.0.1). This
> computer is attached to the Internet and will share the
> connection with others.
>
> /stefano
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of James
> > Sent: 19 February 2002 18:44
> > To: [EMAIL PROTECTED]
> > Subject: Re: [expert] Hot to remove the default route to 0.0.0.0
> >
> >
> > Stefano,
> >    Are you using DHCP or a Static IP number and route?
> >
> > James
> >
> >
> > On Tue, 19 Feb 2002 16:05:38 +0100
> > "Stefano POGLIANI" <[EMAIL PROTECTED]> wrote:
> >
> > > For sure I did something wrong when installing MDK 8.1, but
> > > I have a default route on eth0 which prevents me from using
> > > the internet.
> > >
> > > When I execute "route delete default" as root, everything comes back
> > > working.
> > >
> > > I would like to ask if anyone knows how to make this permanent,
> > > i.e. avoiding the default route on eth0.
> > >
> > > Grepping thru the /etc/rc.d files seem to point to some script
> > > under sysconfig, but I do not think this is the way to go...
> > > at least without knowing what to do.
> > >
> > > Thanks a lot for any help. Best regards
> > >
> > > /stefano
> > >
> > >
> >
> >


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .


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

Reply via email to