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

Re: modem up and running but no ping

ciao Martin Wegmann,

> ppp0      Link encap:Point-to-Point Protocol
>           inet addr:  P-t-P:  Mask:

your address:
the address of the other side of the cable:
(your gateway to internet)

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

here you can see that in the routing table the gateway is
( means everything that has not an explicit route)

so all your ping go to instead to


cat script/route-ppp.sh 
#!/bin/sh -x


# delete bad default route
route del default gw $FROM eth0
# add new default route
route add default gw $TO ppp0

call this script as:

try it.


/* Paolo Pedaletti,

Reply to: