[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Couldn't find interface ppp0: Dispositivo inexistente



Olá lista;

Não estou conseguindo conectar minha estação Debian de casa à Internet através do provedor IG, se alguém puder ajudar, agradecerei imensamente.

PROBLEMA

Em um Debian Sarge, instalado a partir dos CDs com a opção desktop, tento acessar o IG através do kppp. Ele disca e fica mostrando a mensagem “Efetuando login na rede...”, caindo em seguida e discando de novo.

O modem e a linha estão testados e 100% funcionais. A conta de acesso também está OK - testei em uma máquina Windows, tanto com o discador do IG quanto com uma conexão dial-up feita manualmente.

As configurações do kppp foram as mesmas de uma outra máquina Sarge que acessava o IG, a única diferença é que ela usava o KDE ao invés do Gnome da instalação padrão do Sarge Desktop que estou usando agora. A autenticação no kppp está configurada para PAP/CHAP

Catei algumas informações no Google e a seguir vai um resumo das configurações relevantes e dos testes que já fiz.

*** CONFIGURAÇÕES ***

MODEM Trellis 28800 na porta serial 1 reconhecido e funcional.

A porta serial existe e aparentemente está com as permissões corretas:
# ls -l /dev/ttyS*
crw-rw----  1 root dialout 4,  64 2005-12-11 21:37 /dev/ttyS0

O dispositivo /dev/ppp também parece estar com as permissões corretas:
# ls -l /dev/ppp
crw-rw----  1 root root 108, 0 2005-12-11 11:42 /dev/ppp

Meu usuário faz parte dos grupos dip e dialout:
# cat /etc/group
root:x:0:
(...)
dialout:x:20:sluz,danila,lais
dip:x:30:sluz,danila,lais
(...)
plugdev:x:46:sluz,danila,lais

Arquivo /etc/ppp/options  está conforme as informações que já encontrei.
privgroup dip
asyncmap 0
auth
crtscts
lock
hide-password
modem
proxyarp
lcp-echo-interval 30
lcp-echo-failure 4
noipx

Seguindo uma informação que encontrei no Google, verifiquei as permissões do arquivo pppd:
$ ls -l /usr/sbin/pppd
-rwsr-xr--  1 root dip 265880 2005-05-05 14:32 /usr/sbin/pppd

E fiz:
# chmod a+s /usr/sbin/pppd
$ ls -l /usr/sbin/pppd
-rwsr-sr--  1 root dip 265880 2005-05-05 14:32 /usr/sbin/pppd

Seguindo esta mesma orientação, também alterei as permissões do arquivo kppp:
$ ls -l /usr/bin/kppp
-rwsr-sr--  1 root dip 575192 2005-05-24 04:18 /usr/bin/kppp

Quando a máquina não está tentando conexão com a Internet, a interface ppp0 não aparece como saída do comando “ifconfig -a”. Mas durante a discagem ela aparece:
ppp0  Encapsulamento do Link: Protocolo Ponto-a-Ponto
          POINTOPOINT NOARP MULTICAST  MTU:1500  Métrica:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          colisões:0 txqueuelen:3
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

*** TESTE COM O KPPP ***

Quando disco utilizando o kppp, aparece o seguinte no console de onde o discador foi chamado:
Opener: received ExecPPPDaemon
In parent: pppd pid 5631
Couldn't find interface ppp0: Dispositivo inexistente
Couldn't find interface ppp0: Dispositivo inexistente
Couldn't find interface ppp0: Dispositivo inexistente
Couldn't find interface ppp0: Dispositivo inexistente
Kernel supports ppp alright.
Couldn't find interface ppp0: Dispositivo inexistente
Couldn't find interface ppp0: Dispositivo inexistente
Couldn't find interface ppp0: Dispositivo inexistente
Opener: received KillPPPDaemon
In killpppd(): Sending SIGTERM to 5631
It was pppd that died
pppd exited with return value 16
Sending 5616 a SIGUSR1
Opener: received RemoveSecret
Opener: received RemoveSecret
Opener: received OpenResolv
Opener: received OpenResolv
Opener: received RemoveLock
Opener: received PPPDExitStatus
Opener: received SetSecret
Opener: received SetSecret
Opener: received SetSecret
Opener: received SetSecret
Opener: received OpenLock

Enquanto isto, o arquivo /var/log/messages exibe o seguinte:
Dec 11 21:03:00 localhost pppd[5631]: pppd 2.4.3 started by sluz, uid 1000
Dec 11 21:03:00 localhost pppd[5631]: Using interface ppp0
Dec 11 21:03:00 localhost pppd[5631]: Connect: ppp0 <--> /dev/ttyS0
Dec 11 21:03:29 localhost pppd[5631]: Terminating on signal 15
Dec 11 21:03:35 localhost pppd[5631]: Connection terminated.
Dec 11 21:03:35 localhost pppd[5631]: Modem hangup
Dec 11 21:03:35 localhost pppd[5631]: Exit.

*** TESTE COM O WVDIAL (instalado via synaptic) ***
$ wvdial
--> WvDial: Internet dialer version 1.54.0
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT15002800
--> Waiting for carrier.
ATDT15002800
CONNECT 28800/V42BIS
                              BRRR-BA-SAR54-03
             PROIBIDO ACESSO NAO AUTORIZADO
             FORBIDDEN UNAUTHORIZED ACCESS
UQKT2
User Access Verification
Username:
--> Carrier detected.  Waiting for prompt.
Username:
--> Looks like a login prompt.
--> Sending: sluz
sluz
Password:
--> Looks like a password prompt.
--> Sending: (password)
% Authentication failed.
Username:
--> Looks like a login prompt.
--> Sending: sluz
sluz
Password:
--> Looks like a password prompt.
--> Sending: (password)
% Authentication failed.
--> Don't know what to do!  Starting pppd and hoping for the best.
--> Starting pppd at Sun Dec 11 22:17:26 2005
--> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
--> --> PAP (Password Authentication Protocol) may be flaky.
--> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
--> --> CHAP (Challenge Handshake) may be flaky.
--> pid of pppd: 6069
--> Using interface ppp0
--> Disconnecting at Sun Dec 11 22:17:56 2005
--> The PPP daemon has died: Fatal pppd error (exit code = 1)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.

Enquanto isto no arquivo /var/log/messages:
Dec 11 22:17:26 localhost pppd[6069]: pppd 2.4.3 started by sluz, uid 1000
Dec 11 22:17:26 localhost pppd[6069]: Using interface ppp0
Dec 11 22:17:26 localhost pppd[6069]: Connect: ppp0 <--> /dev/ttyS0
Dec 11 22:17:56 localhost pppd[6069]: LCP: timeout sending Config-Requests
Dec 11 22:17:56 localhost pppd[6069]: Connection terminated.
Dec 11 22:17:56 localhost pppd[6069]: tcflush failed: Input/output error
Dec 11 22:17:56 localhost pppd[6069]: tcsetattr: Invalid argument (line 1010)
Dec 11 22:17:56 localhost pppd[6069]: Exit.

Testei mudar as permissões de /etc/ppp/pap-secrets e de /etc/ppp/chap-secrets para 660, mas não adiantou nada. Voltei a permissão de ambos para 600 (permissão original).

Um “man pppd” mostrou a seguinte descrição para o exit code 1: “An immediately fatal error of some kind occurred, such as an essential system call failing, or running out of virtual memory” - que a mim não ajudou muito.

*** TESTE COM O pppd 1 ***
Utilizei o pppconfig e coloquei a autenticação como PAP, depois fiz “pppd call ig” e acompanhei a movimentação em /var/log/messages:
Dec 11 22:56:22 localhost pppd[6312]: pppd 2.4.3 started by root, uid 0
Dec 11 22:56:23 localhost chat[6313]: abort on (BUSY)
Dec 11 22:56:23 localhost chat[6313]: abort on (NO CARRIER)
Dec 11 22:56:23 localhost chat[6313]: abort on (VOICE)
Dec 11 22:56:23 localhost chat[6313]: abort on (NO DIALTONE)
Dec 11 22:56:23 localhost chat[6313]: abort on (NO DIAL TONE)
Dec 11 22:56:23 localhost chat[6313]: abort on (NO ANSWER)
Dec 11 22:56:23 localhost chat[6313]: abort on (DELAYED)
Dec 11 22:56:23 localhost chat[6313]: send (ATZ^M)
Dec 11 22:56:23 localhost chat[6313]: expect (OK)
Dec 11 22:56:24 localhost chat[6313]: ATZ^M^M
Dec 11 22:56:24 localhost chat[6313]: OK
Dec 11 22:56:24 localhost chat[6313]:  -- got it
Dec 11 22:56:24 localhost chat[6313]: send (ATDT15002808^M)
Dec 11 22:56:24 localhost chat[6313]: expect (CONNECT)
Dec 11 22:56:24 localhost chat[6313]: ^M
Dec 11 22:56:48 localhost chat[6313]: ATDT15002808^M^M
Dec 11 22:56:48 localhost chat[6313]: CONNECT
Dec 11 22:56:48 localhost chat[6313]:  -- got it
Dec 11 22:56:48 localhost chat[6313]: send (\d)
Dec 11 22:56:49 localhost pppd[6312]: Serial connection established.
Dec 11 22:56:49 localhost pppd[6312]: Using interface ppp0
Dec 11 22:56:49 localhost pppd[6312]: Connect: ppp0 <--> /dev/ttyS0
Dec 11 22:57:20 localhost pppd[6312]: LCP: timeout sending Config-Requests
Dec 11 22:57:20 localhost pppd[6312]: Connection terminated.
Dec 11 22:57:22 localhost chat[6354]: abort on (BUSY)
Dec 11 22:57:22 localhost chat[6354]: abort on (NO CARRIER)
Dec 11 22:57:22 localhost chat[6354]: abort on (VOICE)
Dec 11 22:57:22 localhost chat[6354]: abort on (NO DIALTONE)
Dec 11 22:57:22 localhost chat[6354]: abort on (NO DIAL TONE)
Dec 11 22:57:22 localhost chat[6354]: abort on (NO ANSWER)
Dec 11 22:57:22 localhost chat[6354]: abort on (DELAYED)
Dec 11 22:57:22 localhost chat[6354]: send (ATZ^M)
Dec 11 22:57:22 localhost chat[6354]: expect (OK)
Dec 11 22:57:24 localhost chat[6354]: ^M
Dec 11 22:57:24 localhost chat[6354]: NO CARRIER
Dec 11 22:57:24 localhost chat[6354]:  -- failed
Dec 11 22:57:24 localhost chat[6354]: Failed (NO CARRIER)
Dec 11 22:57:25 localhost pppd[6312]: Modem hangup
Dec 11 22:57:25 localhost pppd[6312]: Exit.

*** TESTE COM O pppd 2 ***
Modifique a autenticação para CHAP e tentei outra vez. O conteúdo de /var/log/messages foi:
Dec 11 23:01:51 localhost pppd[6383]: Exit.
Dec 11 23:02:12 localhost pppd[6388]: pppd 2.4.3 started by root, uid 0
Dec 11 23:02:13 localhost chat[6389]: abort on (BUSY)
Dec 11 23:02:13 localhost chat[6389]: abort on (NO CARRIER)
Dec 11 23:02:13 localhost chat[6389]: abort on (VOICE)
Dec 11 23:02:13 localhost chat[6389]: abort on (NO DIALTONE)
Dec 11 23:02:13 localhost chat[6389]: abort on (NO DIAL TONE)
Dec 11 23:02:13 localhost chat[6389]: abort on (NO ANSWER)
Dec 11 23:02:13 localhost chat[6389]: abort on (DELAYED)
Dec 11 23:02:13 localhost chat[6389]: send (ATZ^M)
Dec 11 23:02:13 localhost chat[6389]: expect (OK)
Dec 11 23:02:14 localhost chat[6389]: ATZ^M^M
Dec 11 23:02:14 localhost chat[6389]: OK
Dec 11 23:02:14 localhost chat[6389]:  -- got it
Dec 11 23:02:14 localhost chat[6389]: send (ATDT15002808^M)
Dec 11 23:02:14 localhost chat[6389]: expect (CONNECT)
Dec 11 23:02:14 localhost chat[6389]: ^M
Dec 11 23:02:40 localhost chat[6389]: ATDT15002808^M^M
Dec 11 23:02:40 localhost chat[6389]: CONNECT
Dec 11 23:02:40 localhost chat[6389]:  -- got it
Dec 11 23:02:40 localhost chat[6389]: send (\d)
Dec 11 23:02:41 localhost pppd[6388]: Serial connection established.
Dec 11 23:02:41 localhost pppd[6388]: Using interface ppp0
Dec 11 23:02:41 localhost pppd[6388]: Connect: ppp0 <--> /dev/ttyS0
Dec 11 23:03:12 localhost pppd[6388]: LCP: timeout sending Config-Requests
Dec 11 23:03:12 localhost pppd[6388]: Connection terminated.
Dec 11 23:03:13 localhost chat[6413]: abort on (BUSY)
Dec 11 23:03:13 localhost chat[6413]: abort on (NO CARRIER)
Dec 11 23:03:13 localhost chat[6413]: abort on (VOICE)
Dec 11 23:03:13 localhost chat[6413]: abort on (NO DIALTONE)
Dec 11 23:03:13 localhost chat[6413]: abort on (NO DIAL TONE)
Dec 11 23:03:13 localhost chat[6413]: abort on (NO ANSWER)
Dec 11 23:03:13 localhost chat[6413]: abort on (DELAYED)
Dec 11 23:03:13 localhost chat[6413]: send (ATZ^M)
Dec 11 23:03:13 localhost chat[6413]: expect (OK)
Dec 11 23:03:15 localhost chat[6413]: ^M
Dec 11 23:03:15 localhost chat[6413]: NO CARRIER
Dec 11 23:03:15 localhost chat[6413]:  -- failed
Dec 11 23:03:15 localhost chat[6413]: Failed (NO CARRIER)
Dec 11 23:03:16 localhost pppd[6388]: Modem hangup
Dec 11 23:03:16 localhost pppd[6388]: Exit.



Reply to: