Configurazione di pppconfig

OS X, Linux e tutti gli altri OS

Configurazione di pppconfig

Messaggioda balubeto » lun lug 03, 2006 6:13 pm

CIAO

Ho provato a configurare una connessione analogica ad Internet con il provider email.it usando il programma pppconfig ma non riesco neanche a "telefonare". Tramite la GUI di pppconfig, ho creato i seguenti file:

Codice: Seleziona tutto
PLUTO:/etc/chatscripts# cat provider                                     
# This is the chat script used to dial out to your default service provider.
# Please customize the entries enclosed in parenthesis to match your setup.
# Only the "provider" file will be handled by poff and pon (unless with
# extra command line arguments).
#
# Remember to edit /etc/ppp/peers/provider accordingly.
#
# ATZW2 as a default init string
# - On all hayes compatible modems, W2 will correctly report the connect
#   speed.
#
ABORT        BUSY
ABORT        "NO CARRIER"
ABORT        VOICE
ABORT        "NO DIALTONE"
""           ATZW2
OK           ATDT<put phone number here>
ogin         <put login name here>
word         \q<put password here>


Codice: Seleziona tutto
PLUTO:/etc/chatscripts# cat email.it
# This chatfile was generated by pppconfig 2.3.11.
# Please do not delete any of the comments.  Pppconfig needs them.
#
# ispauth PAP
# abortstring
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED
# modeminit
'' ATZ
# ispnumber
OK-AT-OK "ATDP7022852801"
# ispconnect
CONNECT \d\c
# prelogin

# ispname
# isppassword
# postlogin

# end of pppconfig stuff


e

Codice: Seleziona tutto
PLUTO:/etc/ppp/peers# cat provider                                                                                     
# example configuration for a dialup connection authenticated with PAP or CHAP
#
# This is the default configuration used by pon(1) and poff(1).
# See the manual page pppd(8) for information on all the options.

# MUST CHANGE: replace myusername@realm with the PPP login name given to
# your by your provider.
# There should be a matching entry with the password in /etc/ppp/pap-secrets
# and/or /etc/ppp/chap-secrets.
user "myusername@realm"

# MUST CHANGE: replace ******** with the phone number of your provider.
# The /etc/chatscripts/pap chat script may be modified to change the
# modem initialization string.
connect "/usr/sbin/chat -v -f /etc/chatscripts/pap -T ********"

# Serial device to which the modem is connected.
/dev/modem

# Speed of the serial line.
115200

# Assumes that your IP address is allocated dynamically by the ISP.
noipdefault
# Try to get the name server addresses from the ISP.
usepeerdns
# Use this connection as the default route.
defaultroute

# Makes pppd "dial again" when the connection is lost.
persist

# Do not ask the remote to authenticate.
noauth


Codice: Seleziona tutto
PLUTO:/etc/ppp/peers# cat email.it                                                                                     
# This optionfile was generated by pppconfig 2.3.11.
#
#
hide-password
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/email.it"
debug
/dev/modem
115200
defaultroute
noipdefault
user "[email protected]"
remotename email.it
ipparam email.it


Quando, pero`, faccio per collegarmi ad Internet con il comando pon email.it, non si connette in quanto, esaminando il suo log, si scopre che:

Codice: Seleziona tutto
PLUTO:/etc/ppp/peers# plog
Jul  3 17:44:38 localhost chat[7279]:  -- got it
Jul  3 17:44:38 localhost chat[7279]: send (ATDP7022852801^M)
Jul  3 17:44:39 localhost chat[7279]: expect (CONNECT)
Jul  3 17:44:39 localhost chat[7279]: ^M
Jul  3 17:44:39 localhost chat[7279]: ATDP7022852801^M^M
Jul  3 17:44:43 localhost chat[7279]: NO DIALTONE
Jul  3 17:44:43 localhost chat[7279]:  -- failed
Jul  3 17:44:43 localhost chat[7279]: Failed (NO DIALTONE)
Jul  3 17:44:43 localhost pppd[7278]: Connect script failed
Jul  3 17:44:44 localhost pppd[7278]: Exit.


Dove sbaglio?

GRAZIE

CIAO
Balubeto
balubeto

Veterano
 
Messaggi: 133
Iscritto il: sab apr 29, 2006 1:18 pm

Messaggioda Blackfede » mer lug 05, 2006 2:12 pm

Umm non ho esperienza con il 56k, ma leggendo in fondo, leggo "NO DIALTONE" potrebbe essere dovuto al fatto che prima di comporre il numero il modem cerca il segnale di linea...mi ricordo che ai tempi del 56k (e windows) dovevo dirgli di non cercare il segnale e comporre il numero...prova un po` a vedere!
I troll sono solo dei dementi che finisco in /dev/null
-------------------------------------------
I video giochi non influenzano i bambini. Voglio dire, se Pac-man avesse influenzato la nostra generazione, staremmo tutti saltando in sale scure, masticando pillole magiche e ascoltando musica elettronica ripetitiva...e dopo qualche anno ci furono i rave party!
Avatar utente
Blackfede

Eroe
 
Messaggi: 1227
Iscritto il: gio gen 16, 2003 10:18 am
Località: Parma

Messaggioda AmigaCori » mer lug 05, 2006 3:27 pm

Vero, il modem sono stati pensati per gli utenti USA, quindi si aspettano di trovare il "tuuuuuuuu" che è presente nelle loro linee quando è libera la linea, se non c'è significa che è occupato o la linea è assente, quindi il modemo non parte.

Gli utenti non USA, devono obbligare il modem 56k ad ignorare l'attesa del tono, appunto come ha detto BlackFede.


....siamo schiavi di questi 'mericani :ahah:
Admin. di NSA www.NonSoloAmiga.com
Twitter: https://twitter.com/NonSoloAmiga
Facebook: http://www.facebook.com/NonSoloAmiga
Gruppo FB: http://www.facebook.com/groups/NonSoloAmiga/
Youube: http://www.youtube.com/user/NonSoloAmiga
AmigaCori

Supremo
 
Messaggi: 4527
Iscritto il: gio feb 26, 2004 4:48 pm

Messaggioda balubeto » mer lug 05, 2006 5:15 pm

Quindi, come devo fare a fare in modo che il modem componga il numero senza aspettare il segnale di linea?

GRAZIE

CIAO
Balubeto
balubeto

Veterano
 
Messaggi: 133
Iscritto il: sab apr 29, 2006 1:18 pm

Messaggioda AmigaCori » gio lug 06, 2006 1:20 am

Elimina questa voce:
ABORT "NO DIALTONE"
commentandola con un #.

Oppure cerca tramite GUI la voce DIALTONE...

Ricordo che l'ho eliminta da GUi io...
Admin. di NSA www.NonSoloAmiga.com
Twitter: https://twitter.com/NonSoloAmiga
Facebook: http://www.facebook.com/NonSoloAmiga
Gruppo FB: http://www.facebook.com/groups/NonSoloAmiga/
Youube: http://www.youtube.com/user/NonSoloAmiga
AmigaCori

Supremo
 
Messaggi: 4527
Iscritto il: gio feb 26, 2004 4:48 pm


Torna a Altri sistemi operativi

Chi c’è in linea

Visitano il forum: Nessuno e 3 ospiti