Welcome to Evernet User Manual on To 17.08.2017 [05:56 UTC]

pppd logi

tulosta

Pppd:n logikirjoitukset

Pppd:n logikirjoitukset kertovat osaltaan, kuinka modeemiyhteyden muodostus onnistuu. Monet vikatilanteet on havaittavissa, jos tietää, mitä logista etsiä.

Laajennettujen logikirjoitusten aktivointi

Pppd:n asetustiedostossa - oletuksena /etc/ppp/options - on parametri debug, jolla pppd saadaan kertomaan hiukan tarkemmin tekemisistään. Avaa tiedosto pääkäyttäjänä valitsemaasi editoriin, esim:

gksudo gedit /etc/ppp/options


Etsi tiedostosta tämän näköinen kappale...

# Increase debugging level (same as -d).  If this option is given, pppd
# will log the contents of all control packets sent or received in a
# readable form.  The packets are logged through syslog with facility
# daemon and level debug. This information can be directed to a file by
# setting up /etc/syslog.conf appropriately (see syslog.conf(5)).  (If
# pppd is compiled with extra debugging enabled, it will log messages
# using facility local2 instead of daemon).
# debug

... ja poista risuaita ja välilyönti debug-vipusen edestä. Tallennna tiedosto, ja saat logiin kaiken tarpeellisen.

Esimerkki onnistuneesta yhteydenmuodostuksesta

All esimerkki pppd:n logikirjoituksista 3G-yhteyden pystytyksen yhteydessä. Tässä debug-kytkin on asetettu päälle options-tiedostoon.

Logissa näkyy selkeästi esimerkiksi:
- sarjaporttiyhteyden muodostus
- PPP-yhteyden asetusten neuvottelu vastapään kanssa
- IP-asteusten muutokset

Jan 25 09:41:13 atu-n200-ubu pppd[11474]: pppd 2.4.5 started by root, uid 0
Jan 25 09:41:15 atu-n200-ubu pppd[11474]: Script /usr/sbin/chat -V -s -S -f /etc/chatscripts/provider
 2>/tmp/chat.log finished (pid 11475), status = 0x0
Jan 25 09:41:15 atu-n200-ubu pppd[11474]: Serial connection established.
Jan 25 09:41:15 atu-n200-ubu pppd[11474]: using channel 25
Jan 25 09:41:15 atu-n200-ubu pppd[11474]: Using interface ppp0
Jan 25 09:41:15 atu-n200-ubu pppd[11474]: Connect: ppp0 <--> /dev/ttyUSB2
Jan 25 09:41:16 atu-n200-ubu pppd[11474]: sent [LCP ConfReq id=0x1  
  ]
Jan 25 09:41:16 atu-n200-ubu pppd[11474]: rcvd [LCP ConfReq id=0xf  
   ]
Jan 25 09:41:16 atu-n200-ubu pppd[11474]: sent [LCP ConfAck id=0xf  
   ]
Jan 25 09:41:16 atu-n200-ubu pppd[11474]: rcvd [LCP ConfAck id=0x1  
  ]
Jan 25 09:41:16 atu-n200-ubu pppd[11474]: sent [LCP EchoReq id=0x0 magic=0x4f22ca27]
Jan 25 09:41:16 atu-n200-ubu pppd[11474]: rcvd [LCP DiscReq id=0x10 magic=0x15e4ff9]
Jan 25 09:41:16 atu-n200-ubu pppd[11474]: rcvd [CHAP Challenge id=0x1 <7047b03c30292259063cbed17e195720>, 
name = "UMTS_CHAP_SRVR"]
Jan 25 09:41:16 atu-n200-ubu pppd[11474]: sent [CHAP Response id=0x1 , 
name = "user"]
Jan 25 09:41:16 atu-n200-ubu pppd[11474]: rcvd [LCP EchoRep id=0x0 magic=0x15e4ff9 4f 22 ca 27]
Jan 25 09:41:16 atu-n200-ubu pppd[11474]: rcvd [CHAP Success id=0x1 ""]
Jan 25 09:41:16 atu-n200-ubu pppd[11474]: CHAP authentication succeeded
Jan 25 09:41:16 atu-n200-ubu pppd[11474]: CHAP authentication succeeded
Jan 25 09:41:16 atu-n200-ubu pppd[11474]: sent [CCP ConfReq id=0x1   ]
Jan 25 09:41:16 atu-n200-ubu pppd[11474]: sent [IPCP ConfReq id=0x1   

 ]
Jan 25 09:41:16 atu-n200-ubu pppd[11474]: rcvd [LCP ProtRej id=0x11 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
Jan 25 09:41:16 atu-n200-ubu pppd[11474]: Protocol-Reject for 'Compression Control Protocol' (0x80fd) received
Jan 25 09:41:17 atu-n200-ubu pppd[11474]: rcvd [IPCP ConfNak id=0x1   
 ]
Jan 25 09:41:17 atu-n200-ubu pppd[11474]: sent [IPCP ConfReq id=0x2   
 ]
Jan 25 09:41:18 atu-n200-ubu pppd[11474]: rcvd [IPCP ConfReq id=0xa]
Jan 25 09:41:18 atu-n200-ubu pppd[11474]: sent [IPCP ConfNak id=0xa ]
Jan 25 09:41:18 atu-n200-ubu pppd[11474]: rcvd [IPCP ConfRej id=0x2 ]
Jan 25 09:41:18 atu-n200-ubu pppd[11474]: sent [IPCP ConfReq id=0x3   
]
Jan 25 09:41:18 atu-n200-ubu pppd[11474]: rcvd [IPCP ConfReq id=0xb]
Jan 25 09:41:18 atu-n200-ubu pppd[11474]: sent [IPCP ConfAck id=0xb]
Jan 25 09:41:18 atu-n200-ubu pppd[11474]: rcvd [IPCP ConfNak id=0x3   
]
Jan 25 09:41:18 atu-n200-ubu pppd[11474]: sent [IPCP ConfReq id=0x4   
]
Jan 25 09:41:18 atu-n200-ubu pppd[11474]: rcvd [IPCP ConfAck id=0x4   
]
Jan 25 09:41:18 atu-n200-ubu pppd[11474]: Could not determine remote IP address: defaulting to 10.64.64.64
Jan 25 09:41:18 atu-n200-ubu pppd[11474]: Cannot determine ethernet address for proxy ARP
Jan 25 09:41:18 atu-n200-ubu pppd[11474]: local  IP address 85.76.84.245
Jan 25 09:41:18 atu-n200-ubu pppd[11474]: remote IP address 10.64.64.64
Jan 25 09:41:18 atu-n200-ubu pppd[11474]: primary   DNS address 195.197.54.100
Jan 25 09:41:18 atu-n200-ubu pppd[11474]: secondary DNS address 195.74.0.47
Jan 25 09:41:18 atu-n200-ubu pppd[11474]: Script /etc/ppp/ip-up started (pid 11477)
Jan 25 09:41:18 atu-n200-ubu pppd[11474]: Script /etc/ppp/ip-up finished (pid 11477), status = 0x0


(Tässä näkyvät "Could not..." ja "Cannot..." -ilmoitukset eivät ole vaarallisia. Näistä tulossa lisää asiaa vianhakuohjeiden yhteyteen näille sivuille.)

Epäonnistunut yhteysyritys

Alla yritys, joka on päättynyt chat scriptin virhekoodiin 4. (Tästä lisää chat-scriptin logikirjoitussivulla.)

Jan 25 09:51:19 atu-n200-ubu pppd[11555]: pppd 2.4.5 started by root, uid 0
Jan 25 09:51:20 atu-n200-ubu pppd[11555]: Script /usr/sbin/chat -V -s -S -f /etc/chatscripts/provider 
2>/tmp/chat.log finished (pid 11556), status = 0x4
Jan 25 09:51:20 atu-n200-ubu pppd[11555]: Connect script failed
Jan 25 09:51:32 atu-n200-ubu pppd[11555]: Terminating on signal 15
Jan 25 09:51:32 atu-n200-ubu pppd[11555]: Exit.


Logit yhteyden katkaisussa

Kun yhteys katkaistaan tai katkeaa, kirjoittaa pppd logiin katkaisun syyn ja tilastot yhteydestä:

Jan 25 09:50:11 atu-n200-ubu pppd[11474]: Terminating on signal 15
Jan 25 09:50:11 atu-n200-ubu pppd[11474]: Connect time 8.9 minutes.
Jan 25 09:50:11 atu-n200-ubu pppd[11474]: Sent 56910 bytes, received 374925 bytes.
Jan 25 09:50:11 atu-n200-ubu pppd[11474]: Script /etc/ppp/ip-down started (pid 11541)
Jan 25 09:50:11 atu-n200-ubu pppd[11474]: sent [LCP TermReq id=0x2 "User request"]
Jan 25 09:50:11 atu-n200-ubu pppd[11474]: rcvd [LCP TermAck id=0x2]
Jan 25 09:50:11 atu-n200-ubu pppd[11474]: Connection terminated.
Jan 25 09:50:12 atu-n200-ubu pppd[11474]: Script /etc/ppp/ip-down finished (pid 11541), status = 0x0
Jan 25 09:50:12 atu-n200-ubu pppd[11474]: Exit.


Paluukoodit

Pppd kertoo ongelmatilanteessa Exit status-koodin, mikä voi olla jokin seuraavista:



1. Pppd has detached, or otherwise the connection was successfully established and terminated at the peer's request.
2. An immediately fatal error of some kind occurred, such as an essential system call failing, or running out of virtual memory.
3. An error was detected in processing the options given, such as two mutually exclusive options being used.
4. Pppd is not setuid-root and the invoking user is not root.
5. The kernel does not support PPP, for example, the PPP kernel driver is not included or cannot be loaded.
6. Pppd terminated because it was sent a SIGINT, SIGTERM or SIGHUP signal.
7. The serial port could not be locked.
8. The serial port could not be opened.
9. The connect script failed (returned a non-zero exit status).
10. The command specified as the argument to the pty option could not be run.
11. The PPP negotiation failed, that is, it didn't reach the point where at least one network protocol (e.g. IP) was running.
12. The peer system failed (or refused) to authenticate itself.
13. The link was established successfully and terminated because it was idle.
14. The link was established successfully and terminated because the connect time limit was reached.
15. Callback was negotiated and an incoming call should arrive shortly.
16. The link was terminated because the peer is not responding to echo requests.
17. The link was terminated by the modem hanging up.
18. The PPP negotiation failed because serial loopback was detected.
19. The init script failed (returned a non-zero exit status).
20. We failed to authenticate ourselves to the peer.



Näistä tulossa esimerkkejä 3G-yhteysapuriin.

Kysymykset, kommentit ja korjaukset

Lisäkysymykset, kokemukset ja ideat yllä olevista ovat tervetulleita EUM foorumille

Voit myös käyttää Siptune.com:n yhteydenottolomaketta sähköpostipalautteen lähettämiseen.

Kommentit, kysymykset ja uudet kaverit ovat tervetulleita myös Siptunen Facebook-sivuille.








Tämän sivun avustajat: Laura ja admin .
Sivua viimeksi muutettu Keskiviikko, 28. Huhtikuuta, 2010 [16:53:14 UTC].


Etsi
:
Kirjautuminen
[ Rekisteröidy | Olen unohtanut salasanani ]
standardi | salattu
Kieli: fi
Pikaviestin