step-by-step ppp

Steve Stavropoulos steve at math.upatras.gr
Fri May 31 06:46:01 EEST 2002


On Fri, 31 May 2002, Alex Papadopoulos wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Thursday 30 May 2002 05:08, Steve Stavropoulos wrote:
> > On Thu, 30 May 2002, Alex Papadopoulos wrote:
> > > Edw kai arketo kairo kanw prospa8eies na kanw dialup se ena ISDN
> > > modem pou exoume sth douleia. To problhma einai oti enw fainomenika
> > > syndeomai kai pairnw IP (remote kai local gia to ppp0), den yparxei
> > > IP connectivity. Telnet/ping/traceroute den paizoun.
> >
> >  route -n
> >
> >  Kata 99.9% aplws den exeis pei sto ppp sou na kanei default route
> > thn kainourgia sou syndesh.
>
> dystyxws to exw pei me to option defaultroute sto /etc/ppp/options
>
> Idou kai to output tou route -n prin kai meta to dialup:
>
> [root at helios alex]# /sbin/route -n
> Kernel IP routing table
> Destination   Gateway   Genmask   Flags Metric Ref    Use Iface
> 192.168.1.1     0.0.0.0     255.255.255.255 UH    0      0        0 ppp0
> 192.168.1.0     0.0.0.0     255.255.255.0   U     0      0        0 eth0
> 127.0.0.0       0.0.0.0      255.0.0.0       U     0      0        0 lo
> 0.0.0.0       192.168.1.1  0.0.0.0         UG    0      0        0 eth0
>

 Den fainetai swsto ayto! Ta paketa pros ton Gateway sou (192.168.1.1)
anti na staloun apo to i/f ppp0 stelnontai apo to eth0.

kane del to teleytaio entry sto routing table sou kai dwse to e3hs:

route add default gw 192.168.1.1 ppp0
(to pppd ekane to "route add default gw 192.168.1.1" xwris na balei to
ppp0 apo pisw mias kai ayto mpainei apo mono tou bash twn ypoloipwn entry
sto routing table sou. To giati den mphke swsta parakatw...)

 Pi8anotata etsi 8a doulepsei, alla to diktio sou exei ena POLY sobaro
la8os (kai ayto einai kai h aitia pou bghke eth0 ekei anti gia ppp0).
Exeis ena local network eth0 192.168.1.0/24 kai mia ppp syndesh me peer IP
to 192.168.1.1 to opoio omws EINAI MEROS tou eth0 sou. Opote apo th mia
gia na ftasei ena packet sto 192.168.1.1 mporei na paei apo to ppp0 kai
apo thn allh mporei na paei kai apo to eth0!
 H lysh loipon einai na baleis to eth0 na einai sto 192.168.0.0/24 kai na
afhseis ta ypoloipa opws einai.





More information about the Linux-greek-users mailing list