PPPD - kai problhmatakia

Michalas Othon mixalas at forthnet.gr
Wed Feb 19 01:09:48 EET 1997


 Epanerxomai:

Prin balw to detach eixa to e3hs fainomeno:
1. Etrexe kanonika pppd
2. Arxize na stelnei kai na lambanei rip
3. Epanalambane thn antalagh rip 3 fores (dhladh 3*30sec = 1,5 lepta)

kai meta PAPALA!!!

to de pppd fainotan na trexei.

Efaga ta moustakia mou me to routed kai sth shnexeia me to
gated nomizontas pws ekei einai to problhma.

Egraya diafora apelpismena e-mail kai katebasa kamia 100sth
selides odhgiwn ( mexri pou ema8a thn parametropoihsh tou
gated ap'e3w)

...Tipote ....

Telika kai, sxedon, aneu logou ebala to -detach kai 3afnika katalaba ti ginotan

Apla epefte h grammh .......... :)

Xwris na sbhnei to CD twn modem kai xwris kanena mhnuma apo
to pppd paroti htan se katastash -d


Telika egraya to e3hs script

me onoma

/othon/othon.sh

- -------------------
#!/bin/sh
#
ps -aux | grep pppd > /tmp/mi.temp
LOOK=`grep detach /tmp/mi.temp`

if [ -n "$LOOK" ] ; then

    \rm -f /tmp/mi.temp

else

# Programma ekkinhshs mias grammhs ppp
# Othon MIchalas 10 Noe 1996
/usr/sbin/pppd -detach 38400 /dev/cua1 194.219.80.146:194.219.80.145
netmask 255.255.255.240 mru 1500 mtu 1500 defaultroute  crtscts&

#--------------------Epe3hghsh
#           -detach ->gia na mhn peutei h grammh (xwris auto ......)
#           38400 ->h taxythta
#           /dev/cua1 ->to modem sthn com2
#          194.219.65.129 ->to ip ths dikhs mou pleuras
#          194.219.65.130 ->to ip ston cisco
#          netmask 255.255.255.224 ->to net mask
#          mru 1500, mtu 1500 -> auto einai to standart tou cisco
#          defaultroute -> enhmerwnei to route-table
#          crtscts -> otan einai Hardware ok enalaktika xonxoff alla 8elei
peiragma o #           cisco
#         & gia na mhn kolaei sto mpoutarisma logw tou -detach

sleep 15s
#---------------Epe3hghsh
#        auto gia na dinei xrono sto prwtokollo na anebei
#        den xreiazetai an trexeis ton gated

/sbin/route add default gw 194.219.80.145 netmask 255.255.255.240 metric 1
dev ppp0

#--------------Epe3hghsh
#       auto einai xrhsimo otan paizeis mono me ton routed
#       den xreiazetai an tre3eis ton gated (zhmia den kanei)

/gated/gdc.restart

# Auto einai energo otan trexeis gated prepei na kopei an trexeis routed


fi
- -------------------

Ebala kai sto
/usr/spool/cron/crontabs/root

thn akolou8h grammh :

0,5,10,15,20,25,30,35,40,45,50,55 * * * *       /othon/othon.sh

kai den 3anaasxolh8hka .


Auta apo paromoia katastash gia opoion tou fanei xrhsimo
sto na sthsei linux se mis8wmenh grammh.

(Gia DialUp apla to 3ekinas xeirokinhta.)

O8wn

=================================================
                                     Alfa - Group
=================================================
 ==-Kerkura - Corfu - Greece-==
ALFA - O.Mixalas  -- Al. Panagoulh 24  -- 491 00 Kerkura  --Greece


==-Roma - Italia-==
VSI  --  V. dei Mille 38/40  --  MailBox 301  --  00185 Roma  --  Italy

==-Saranda - Albania-==
I.A.G. - computer sh.p.k.  --  Skenderbeu 1  --  Saranda  --  Albany
- ----------------------------

==================================================================
For help on using this list (linux-greek-users), send a message to
"majordomo at argeas.argos.hol.gr" with one line of text: "help".
For any problem send e-mail to owner-linux-greek-users
==================================================================



More information about the Linux-greek-users mailing list