[linux] configuracia pppd

Ronald Pupala pupala na sse-za.sk
Pátek Říjen 13 11:39:28 CEST 2000


-----Pôvodná správa-----
Od: Duranik Marek Ing. <md na mail.viapvt.sk>
Pre: skupina <linux na rak.isternet.sk>
Dátum: 13. október 2000 9:00
Predmet: [linux] configuracia pppd


> Ak pouzijem na ponfiguraciu ppp so doposial pouzival KPPP
>to mi funguje. Cez linux configurator som nepochodil po
>spojeni ma vyhodilo.
>Skuasal som nasledovne
>
>Do adresara root som vytvoril subor vytoc s obsahom:
>#!/bin/bash
>/usr/sbin/pppd /dev/ttyS0 115200 connect "/usr/sbin/chat -v -t 50 -f \
>~/.initstring" crtscts defaultroute modem
>
chyba parameter username (user z chap-secret)
>Potom som vytvoril subor v /root  .initstring
>
>'' ATX3 OK ATDT01911 ername: xxx sword: yyy ~
>
>Po odklepnuti suboru vytoc dojde k spojeniu pocut vytocenie cisla trochu
>modem komunikuje a potom nastane prerusenie.
>Vypis z /var/log/messages je:
>
>Oct 12 11:11:32 fenix pppd[4673]: pppd 2.3.11 started by root, uid 0
>Oct 12 11:11:33 fenix chat[4674]: send (ATX3^M)
>Oct 12 11:11:33 fenix chat[4674]: expect (OK)
>Oct 12 11:11:33 fenix chat[4674]: ATX3^M^M
>Oct 12 11:11:33 fenix chat[4674]: OK
>Oct 12 11:11:33 fenix chat[4674]:  -- got it
>Oct 12 11:11:33 fenix chat[4674]: send (ATDT01911^M)
>Oct 12 11:11:33 fenix chat[4674]: expect (ername:)
>Oct 12 11:11:33 fenix chat[4674]: ^M
>Oct 12 11:12:03 fenix chat[4674]: ATDT01911^M^M
>Oct 12 11:12:03 fenix chat[4674]: CONNECT
115200/K56/LAPM/V42BIS/31200:TX/50000:RX^M
>Oct 12 11:12:07 fenix chat[4674]:
~^?}#@!}!#} }9}"}&} }*} } }#}%B#}%}%}&x'^]t}'}"}(}"1^~~^?}#@!}!$} }9}"}&} }*
} } }#}
>Oct 12 11:12:11 fenix chat[4674]:
%B#}%}%}&x'^]t}'}"}(}"|V~~^?}#@!}!%} }9}"}&} }*} } }#}%B#}%}%}&x'^]t}'}"}(}"
8^M~~^?}#
>Oct 12 11:12:13 fenix chat[4674]:
@!}!&} }9}"}&} }*} } }#}%B#}%}%}&x'^]t}'}"}(}"t`~~^?}#@!}!'} }9}"}&} }*} } }
#}%B#}
>Oct 12 11:12:17 fenix chat[4674]:
%}%}&x'^]t}'}"}(}"0;~~^?}#@!}!(} }9}"}&} }*} } }#}%B#}%}%}&x'^]t}'}"}(}"^?y~
~^?}#@!}!
>Oct 12 11:12:20 fenix
chat[4674]: )} }9}"}&} }*} } }#}%B#}%}%}&x'^]t}'}"}(}";"~~^?}#@!}!*} }9}"}&}
 }*} } }#}%B#}%}%}
>Oct 12 11:12:23 fenix chat[4674]: alarm
>Oct 12 11:12:23 fenix chat[4674]: Failed
>Oct 12 11:12:23 fenix pppd[4673]: Connect script failed
>Oct 12 11:12:24 fenix pppd[4673]: Exit.
>
>Z toho usuzujem ze je potrebne upravit .initstring ne
>'' ATX3 OK ATDT01911  ~
>

>Prezrel som si subory pap-secret a chap-secret a dopisal tam riadok
>xxx * yyy
>No ani tak to nefunguje.
>Vypis z /var/log/messages je:
>
>Oct 12 12:24:20 fenix pppd[4776]: pppd 2.3.11 started by root, uid 0
>Oct 12 12:24:21 fenix chat[4777]: send (ATX3^M)
>Oct 12 12:24:21 fenix chat[4777]: expect (OK)
>Oct 12 12:24:21 fenix chat[4777]: ATX3^M^M
>Oct 12 12:24:21 fenix chat[4777]: OK
>Oct 12 12:24:21 fenix chat[4777]:  -- got it
>Oct 12 12:24:21 fenix chat[4777]: send (ATDT01911^M)
>Oct 12 12:24:21 fenix chat[4777]: expect (~)
>Oct 12 12:24:21 fenix chat[4777]: ^M
>Oct 12 12:24:51 fenix chat[4777]: ATDT01911^M^M
>Oct 12 12:24:51 fenix chat[4777]: CONNECT
115200/K56/LAPM/V42BIS/31200:TX/50000:RX^M
>Oct 12 12:24:54 fenix chat[4777]: ~
>Oct 12 12:24:54 fenix chat[4777]:  -- got it
>Oct 12 12:24:54 fenix pppd[4776]: Serial connection established.
>Oct 12 12:24:54 fenix pppd[4776]: Using interface ppp0
>Oct 12 12:24:54 fenix pppd[4776]: Connect: ppp0 <--> /dev/ttyS0
>Oct 12 12:24:57 fenix pppd[4776]: Hangup (SIGHUP)
>Oct 12 12:24:57 fenix pppd[4776]: Modem hangup
>Oct 12 12:24:57 fenix pppd[4776]: Connection terminated.
>Oct 12 12:24:58 fenix pppd[4776]: Exit.
>
>Poradte co dalej?
>Ak som sa na internet prihlasoval cez KPPP musel som zadat DNS adresi inak
ma
>sice spojilo ale neslo www neslo....
>


DNS providera treba umiestnit do /etc/resolv.conf a este v /etc/ppp/config
zamenit volbu auth za noauth, pripadne auth zakomentovat, ak na noauth bude
hubovat.


Rony




Další informace o konferenci linux