PPPOE: Como definir o número de chamada fixo

0

Estou enfrentando problemas com a conexão PPPOE,

Registos de erros:

Dec 29 15:50:20 rahul-home pppd[4141]: PPP session is 1769
Dec 29 15:50:20 rahul-home pppd[4141]: Connected to 00:27:0e:14:d1:04 via interface eth0
Dec 29 15:50:20 rahul-home pppd[4141]: Using interface ppp0
Dec 29 15:50:20 rahul-home pppd[4141]: Connect: ppp0 <--> eth0
Dec 29 15:50:20 rahul-home NetworkManager[1131]: <warn> /sys/devices/virtual/net/ppp0: couldn't determine device driver; ignoring...
Dec 29 15:50:20 rahul-home NetworkManager[1131]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Dec 29 15:50:20 rahul-home NetworkManager[1131]:    SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
Dec 29 15:50:20 rahul-home pppd[4141]: CHAP authentication failed: bad username or password
Dec 29 15:50:20 rahul-home pppd[4141]: CHAP authentication failed
Dec 29 15:50:20 rahul-home pppd[4141]: Connection terminated.
Dec 29 15:50:20 rahul-home NetworkManager[1131]:    SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Dec 29 15:50:20 rahul-home avahi-daemon[859]: Withdrawing workstation service for ppp0.
Dec 29 15:50:22 rahul-home pppd[4141]: Terminating on signal 15
Dec 29 15:50:22 rahul-home pppd[4141]: Exit.

Log de sucesso

Dec 29 15:50:24 rahul-home pppd[4189]: PPP session is 22450
Dec 29 15:50:24 rahul-home pppd[4189]: Connected to 00:07:e9:a5:a8:85 via interface eth0
Dec 29 15:50:24 rahul-home pppd[4189]: Using interface ppp0
Dec 29 15:50:24 rahul-home pppd[4189]: Connect: ppp0 <--> eth0
Dec 29 15:50:24 rahul-home NetworkManager[1131]: <warn> /sys/devices/virtual/net/ppp0: couldn't determine device driver; ignoring...
Dec 29 15:50:24 rahul-home NetworkManager[1131]:    SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Dec 29 15:50:24 rahul-home NetworkManager[1131]:    SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found.
Dec 29 15:50:24 rahul-home pppd[4189]: CHAP authentication succeeded: Welcome.
Dec 29 15:50:24 rahul-home pppd[4189]: CHAP authentication succeeded
Dec 29 15:50:24 rahul-home pppd[4189]: peer from calling number 00:07:E9:A5:A8:85 authorized
Dec 29 15:50:24 rahul-home pppd[4189]: local  IP address xx.xx.xx.xx
Dec 29 15:50:24 rahul-home pppd[4189]: remote IP address 172.31.29.1
Dec 29 15:50:24 rahul-home pppd[4189]: primary   DNS address xx.xx.xx.xx
Dec 29 15:50:24 rahul-home pppd[4189]: secondary DNS address xx.xx.xx.xx

Minha observação

Eu testei com n tentativas, mas notei que o discador se conecta quando ele usa o número de chamada peer 00:07:E9:A5:A8:85 , mas não consigo consertar isso. com ajuda de man pppd , tentei seguir a opção em /etc/ppp/options

allow-number 00:07:E9:A5:A8:85  # Tested showing not authorized
remotenumber 00:07:E9:A5:A8:85  # Tested but not working

Solução temporária

#!/bin/bash

# Retry pppoe until get connected

rndc stop

interval=2
n=0
pppstats && { echo "Internet is working"; exit 1; }
until nc -vzw1 titanic 80 
do
    poff -a ||
    pon dsl-provider
    sleep $interval 
    ((n++))
done

echo "Dialer Connected after total retry: $n"
plog
/etc/init.d/bind9 start

Especificações

Distributor ID: Ubuntu
Description:    Ubuntu 13.10
Release:    13.10
Codename:   saucy

pppd version 2.4.5

Pergunta

Como faço para definir o número de chamadas fixas no pppoe?

    
por Rahul Patil 29.12.2013 / 12:18

1 resposta

0

Depois de ativar os registros de depuração, encontrei a solução

O problema foi

Existem dois grupos no nosso ISP local, podemos ver usando:

root@rahul-home:~# pppoe-discovery 
AC-Ethernet-Address: 00:07:e9:a5:a8:85
Access-Concentrator: spidernet
       Service-Name: spidernet
--------------------------------------------------
AC-Ethernet-Address: 00:27:0e:14:d1:04
Access-Concentrator: Fivenet
       Service-Name: 5network
--------------------------------------------------

o número de chamada que eu estava perguntando é, na verdade, ACNAME 00:07:e9:a5:a8:85 , por exemplo, spider.

Agora, a pergunta é: Como definir a correção ACNAME e o nome do serviço?

Eu verifiquei man pages mas não encontrei relacionado ao mesmo, mas depois do Google eu encontrei o solution , que é Bug reportado em 2010, mas ainda não atualizado man pages.

e a solução

precisamos ir para o arquivo de configuração / etc/ppp/peers/dsl-provider . Existe uma linha: plugin rp-pppoe.so ethX

Onde podemos especificar várias opções, como:

plugin rp-pppoe.so rp_pppoe_service SERVICE_NAME rp_pppoe_ac ACCESS_CONCENTRATOR ethX

    
por Rahul Patil 29.12.2013 / 13:24