# Este pppoe.conf é utilizado em uma conexão de Speedy Home em Sao paulo 
# para o provedor UOL, foi comentada a linha sobre o modem 3Com atravez do 
# editor vi e os dados da conexão informados nas perguntas de adsl-setup
# veja mais em pppoe.txt neste diretorio (site)
#***********************************************************************
#
# pppoe.conf
#
# Configuration file for rp-pppoe.  Edit as appropriate and install in
# /etc/ppp/pppoe.conf
#
# NOTE: This file is used by the adsl-start, adsl-stop, adsl-connect and
#       adsl-status shell scripts.  It is *not* used in any way by the
#       "pppoe" executable.
#
# Copyright (C) 2000 Roaring Penguin Software Inc.
#
# This file may be distributed under the terms of the GNU General
# Public License.
#
# $Id: pppoe.conf,v 1.7 2001/09/14 19:07:39 dfs Exp $
#***********************************************************************

# When you configure a variable, DO NOT leave spaces around the "=" sign.

# Ethernet card connected to ADSL modem
ETH='eth1'

# ADSL user name.  You may have to supply "@provider.com"  Sympatico
# users in Canada do need to include "@sympatico.ca"
# Sympatico uses PAP authentication.  Make sure /etc/ppp/pap-secrets
# contains the right username/password combination.
# For Magma, use xxyyzz@magma.ca
USER='zagolinux@uol.com.br'

# Bring link up on demand?  Default is to leave link up all the time.
# If you want the link to come up on demand, set DEMAND to a number indicating
# the idle time after which the link is brought down.
DEMAND=no
#DEMAND=300

# DNS type: SERVER=obtain from server; SPECIFY=use DNS1 and DNS2;
# NOCHANGE=do not adjust.
DNSTYPE=SPECIFY

# Obtain DNS server addresses from the peer (recent versions of pppd only)
USEPEERDNS=no

DNS1=200.246.5.2
DNS2=200.230.128.6

# Make the PPPoE connection your default route.  Set to
# DEFAULTROUTE=no if you don't want this.
DEFAULTROUTE=yes

### ONLY TOUCH THE FOLLOWING SETTINGS IF YOU'RE AN EXPERT

# How long adsl-start waits for a new PPP interface to appear before
# concluding something went wrong.  If you use 0, then adsl-start
# exits immediately with a successful status and does not wait for the
# link to come up.  Time is in seconds.
#
# WARNING WARNING WARNING:
#
# If you are using rp-pppoe on a physically-inaccessible host, set
# CONNECT_TIMEOUT to 0.  This makes SURE that the machine keeps trying
# to connect forever after adsl-start is called.  Otherwise, it will
# give out after CONNECT_TIMEOUT seconds and will not attempt to
# connect again, making it impossible to reach.
CONNECT_TIMEOUT=30

# How often in seconds adsl-start polls to check if link is up
CONNECT_POLL=2

# Specific desired AC Name
ACNAME=

# Specific desired service name
SERVICENAME=

# Character to echo at each poll.  Use PING="" if you don't want
# anything echoed
PING="."

# File where the adsl-connect script writes its process-ID.
# Three files are actually used:
#   $PIDFILE       contains PID of adsl-connect script
#   $PIDFILE.pppoe contains PID of pppoe process
#   $PIDFILE.pppd  contains PID of pppd process
CF_BASE=`basename $CONFIG`
PIDFILE="/var/run/$CF_BASE-adsl.pid"

# Do you want to use synchronous PPP?  "yes" or "no".  "yes" is much
# easier on CPU usage, but may not work for you.  It is safer to use
# "no", but you may want to experiment with "yes".  "yes" is generally
# safe on Linux machines with the n_hdlc line discipline; unsafe on others.
SYNCHRONOUS=no

# Do you want to clamp the MSS?  Here's how to decide:
# - If you have only a SINGLE computer connected to the ADSL modem, choose
#   "no".
# - If you have a computer acting as a gateway for a LAN, choose "1412".
#   The setting of 1412 is safe for either setup, but uses slightly more
#   CPU power.
CLAMPMSS=1412
#CLAMPMSS=no

# LCP echo interval and failure count.
LCP_INTERVAL=20
LCP_FAILURE=3

# PPPOE_TIMEOUT should be about 4*LCP_INTERVAL
PPPOE_TIMEOUT=80

# Firewalling: One of NONE, STANDALONE or MASQUERADE
FIREWALL=MASQUERADE

# Linux kernel-mode plugin for pppd.  If you want to try the kernel-mode
# plugin, use LINUX_PLUGIN=/etc/ppp/plugins/rp-pppoe.so
LINUX_PLUGIN=

# Any extra arguments to pass to pppoe.  Normally, use a blank string
# like this:
PPPOE_EXTRA=""

# Rumour has it that "Citizen's Communications" with a 3Com
# HomeConnect ADSL Modem DualLink requires these extra options:
# This option is also required for the same modem with Brasil
# Telecom in Curitiba/PR and probably other states too.

# comentada pelo zago PPPOE_EXTRA="-f 3c12:3c13 -S ISP"

# Any extra arguments to pass to pppd.  Normally, use a blank string
# like this:
PPPD_EXTRA=""


***************************************************************
	De: 	Jorge Godoy <godoy@ieee.org>
Para: 	sub <sub@horizon.com.br>
Cc: 	linux-br@bazar2.conectiva.com.br
Assunto: 	Re: (linux-br) script milagreiro...
Data: 	29 May 2003 14:09:29 -0300	
sub <sub@horizon.com.br> writes:

> 1.  (*) text/plain          ( ) text/html           

Por favor, não use HTML.


Na próxima vez, envie para a lista mensagens que foram respondidas na
lista. Tomei a liberdade de reencaminhar esta, já que pode ser a
dúvida de outros assinantes. 

> a situação é a seguinte:
>
> tenho srv onde eth0 é rede local e eth1 é internet. acontece que após
> fazer a conexão adsl (ppp) ele não navega pra fora. tenho q comandar
> route add default ppp0, senão não vai.
> se a conexão cai ele refaz automaticamente, mas, tenho q comandar o
> route novamente....
> é isso!
> a propósito, estou usando ppp com mascaramento, ou seja, a interface
> eth1 tem endereço de rede fixo (192.168.x.x).

O seu caso é exatamente o caso que eu estava prevendo.

O pppd possui uma opção para fazer com que a rota criada por ele seja
a rota padrão. Há algo no pppoe.conf, inclusive com a explicação em um
comentário, para colocar a rota levantada como padrão para a máquina.

Sugiro, então, que você olhe o conteúdo do pppoe.conf e ajuste a opção
para 'yes'.


Sds,

***************************************************************

	De: 	Andreas <andreas@conectiva.com.br>
Para: 	Henrique Cesar Ulbrich <henrique@digerati.com.br>
Cc: 	linux-br@bazar.conectiva.com.br
Assunto: 	Re: (linux-br) -Speedy Home com CL9 não navega
Data: 	29 May 2003 09:51:26 -0300	
On Wed, May 28, 2003 at 11:19:42PM -0300, Henrique Cesar Ulbrich wrote:
> No CL9 foi a mesma ladainha. Experimente descomentar a linha (ou 
> comentá-la) e veja se funciona.

Por favor, verifique se é assim mesmo. O rp-pppoe do CL9 possui um patch
que faz o script adsl-setup tentar detectar o tipo de modem adsl conectado
e comentar ou não essa linha automaticamente.

> Outra coisa, sua eth0 NÃO PODE estar confifurada!!!!

Hmm, comigo ela sempre esteve configurada desde que tenho adsl (quase 3 anos
a essa altura). Sim, a documentação do rp-pppoe diz para não configurar a
eth0, mas nunca tive problemas. Sempre deixei-a configurada para poder dar
telnet no modem, snmp, etc.

***************************************************************


***************************************************************


***************************************************************
