[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /etc/network/interfaces not strictly correct?



"Kevin Ross" wrote:

> > I rebooted woody after an uptime of 48 days to find my network
> > setup incomplete:
> > 
> > $ ping www.debian.org
> > PING www.debian.org (198.186.203.20): 56 data bytes
> > ping: sendto: Network is unreachable
> > ping: wrote www.debian.org 64 chars, ret=-1
> > 
> > Here's my /etc/network/interfaces file:
> > 
> > auto lo
> > iface lo inet loopback
> > auto eth0
> > iface eth0 inet static 
> >   address 142.130.48.235
> >   netmask 255.255.252.0
> > 
> > Anything wrong with that?
> 
> Yes, you need a default route.  Try adding:
> 
>     up route add default gw 142.130.48.1
>     down route del default gw 142.130.48.1
> 
> after the "netmask" line.

I added it this way:

iface eth0 inet static 
  address 142.130.48.235
  netmask 255.255.252.0
  gateway 142.130.48.1

Seems to work now (except for ping).

> > So I manually added a default route:
> > Now the web works, but strangely ping still fails:
> 
> Try using traceroute to see if the pings are being blocked somewhere along th
> e way.

Did.  I get stars (no returns) past my gateway.

Thanks,
Peter



Reply to: