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

Re: modem and no ping



You wrote:
> You need to remove the default gateway 10.0.0.1 on eth0.  The ppp
> defaultroute option won't replace an existing default route.

There are two ways i see:
1. Make your defaultroute to 10.0.0.1 have an higher metrik than the ppp route 
(which translates to ethernet defaultroute is more expensive than the ppp 
route, this makes the network subsystem to chose the ppp route if awailable).
2. Somewhere in your system there are ppp-up and ppp-down scripts. You can 
make them to tear down the 10.0.0.1 defaultroute on ppp-up, and set it up 
again on ppp-down.

Anyway, is the 10.0.0.1 pointing to the internet, or is the ppp conection 
needed for that ? or is it even vice versa ? In principle you need the 
0.0.0.0 Gateway only for the Internet. A local network is better described by 
using a Gateway 255.255.0.0 which would mean, that all packets whith targets 
in the range of 10.0.xxx.xxx are send to the ethernet device.

cheers
jan

> > > >baliola@diomedea:/$ /sbin/route -n
> > > >Kernel IP routing table
> > > >Destination     Gateway         Genmask         Flags Metric Ref   
> > > > Use
> >
> > Iface
> >
> > > >145.253.1.121   0.0.0.0         255.255.255.255 UH    0      0       
> > > > 0
> >
> > ppp0
> >
> > > >10.0.0.0        0.0.0.0         255.255.255.0   U     0      0       
> > > > 0
> >
> > eth0
> >
> > > >0.0.0.0         10.0.0.1        0.0.0.0         UG    0      0       
> > > > 0
> >
> > eth0
> >




Reply to: