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

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



> 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.

> 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 the way.

-- Kevin




Reply to: