[FUG-BR] [RESOLVIDO] Re: ADSL/PPPoE Speedy no FreeBSD 6.2-RELEASE (usando ppp)

Rivanor P. Soares rivanor em gmail.com
Quinta Março 22 09:27:21 BRT 2007


On 3/22/07, Alessandro de Souza Rocha <etherlinkii em gmail.com> wrote:
> Em 22/03/07, Rivanor P. Soares<rivanor em gmail.com> escreveu:
> > On 3/22/07, Nenhum_de_Nos <matheusber em gmail.com> wrote:
> > > olá,
> > >
> > > 2. não achei em breve busca o que faz "set speed sync". mas,
> > > disconfiaria desta opção pois Adsl, tem o A = Asynchronous !
> > > normalmente síncrona seria upload = download e num conheço serviço de
> > > DSL no Brasil que seja assim (talvez até exista e seja o seu, isso num
> > > sei). Já tentou o config mostrado em [2] ? bem simples, mas é
> > > basicamente o que tenho aqui e funciona blz há muito tempo :)
> > >
> > > qquer coisa,
> > >
> > > matheus
> > >
> > > --
> > > We will call you cygnus,
> > > The God of balance you shall be
> > >
> >
> > Obrigado Matheus e Ricardo Sanchesz (!),
> >
> > Funcionou com o seguinte arquivo ppp.conf:
> >
> > default:
> >  set log Phase tun command
> > speedy:
> >  set device PPPoE:ste0
> >  set authname id em domain.com
> >  set authkey ***********
> >  set dial
> >  set login
> >  nat enable yes
> >  add default HISADDR
> >
> > O curioso é que depois de subir o link, não foi adicionada uma rota
> > default na tabela de roteamento. Isso deveria acontecer, certo?
> >
> > Abs,
> > --
> > Rivanor
> > -------------------------
> >
>
> olha eu nao sei como funciona speed mais as configuracoes para usa o
> velox eu deixo assim da uma olhada ver se te ajuda em alguma coisa
> default:
>
>   set device PPPoE:rl0:ISP
>
>   enable lqr
>
>   enable tcpmssfixup
>
>   set lqrperiod 6
>
>   set mru 1492
>
>   set mtu 1492
>
>   set timeout 0
>
>   set log phase tun0
>
>   add default HISADDR
>
>   enable dns
>
>   set authname XXXXXX em telemar.com.br
>
>   set authkey  XXXXXX
>
> --
> Alessandro de Souza Rocha
> Administrador de Redes e Sistemas
> Freebsd-BR User #117
> -------------------------
>

Valeu Alessandro,

Cara, é tudo uma questão de ler a man page. Fui analisando cada
entrada diferente que tinha no seu arquivo de conf e lendo sobre, na
man page do ppp. Olha o que fala sobre 'add default HISADDR' :

     At this point, your machine has a host route to the peer.  This means
     that you can only make a connection with the host on the other side of
     the link.  If you want to add a default route entry (telling your machine
     to send all packets without another routing entry to the other side of
     the PPP link), enter the following command:

           PPP ON awfulhak> add default HISADDR

     The string `HISADDR' represents the IP address of the connected peer.  If
     the ``add'' command fails due to an existing route, you can overwrite the
     existing route using:

           PPP ON awfulhak> add! default HISADDR

     This command can also be executed before actually making the connection.
     If a new IP address is negotiated at connection time, ppp will update
     your default route accordingly.

Ou seja, ele é reponsável por atualizar a tabela de roteamento,
adicionando o IP da outra ponta PPP como a saída padrão pra todos os
pacotes. E usando o ponto de exclamação (!) antes do 'add' ainda dá
pra sobrescrever caso já exista uma rota default.

Valeu,
-- 
Rivanor


Mais detalhes sobre a lista de discussão freebsd