8/29/2007

Conexion adsl en mi Slackware

Quiero compartir con ustedes otro artículo que escribió Asclepio en su blog, que trata sobre mi distro favorita Slackware...


Siguiendo con mi humildísima Bitácora Slackware...

Bueno ya tengo mi slack en castellano y el teclado también :).. eso es lo mejor porque es bien molesto no tener mis queridisimas ñ y acentos... estos gringos jamás sabrán como escribir ñandú :D

Apreto Alt+F2 y escribo Firefox y me doi cuenta que todavía no configuro la conexiona internet!!... a Hacerlo entonces!!! (la conexion a internet)

Para esto como mi conexión es adsl escribo en consola y como root:

#pppoe-setup

A Slackware le gusta los setup... Y me sale lo siguiente:

# pppoe-setup
Welcome to the Roaring Penguin PPPoE client setup. First, I will run
some checks on your system to make sure the PPPoE client is installed
properly...

Looks good! Now, please enter some information:

USER NAME

>>> Enter your PPPoE user name : /aca metemos el nombre de usuario.. ads..../

INTERFACE

>>> Enter the Ethernet interface connected to the DSL modem
For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethn, where 'n' is a number.
(default eth0): /hace referencia a la tarjeta de red, en mi caso eth0 porque tengo una solamente :O/

Do you want the link to come up on demand, or stay up continuously?
If you want it to come up on demand, enter the idle time in seconds
after which the link should be dropped. If you want the link to
stay up permanently, enter 'no' (two letters, lower-case.)
NOTE: Demand-activated links do not interact well with dynamic IP
addresses. You may have some problems with demand-activated links.
>>> Enter the demand value (default no): /tiempo que queremos que este activa nuestra conexion (en seg), si ponemos no, quiere decir que queremos que este siempre activa. Yo por eso le puse no/

DNS

Please enter the IP address of your ISP's primary DNS server.
If your ISP claims that 'the server will provide DNS addresses',
enter 'server' (all lower-case) here.
If you just press enter, I will assume you know what you are
doing and not modify your DNS setup.
>>> Enter the DNS information here: /esto es el numero de ip que te da timofonica o el provedor de internerd... en mi caso no es asi por eso pongo server/

PASSWORD

>>> Please enter your PPPoE password:/contraseña orvio/
>>> Please re-enter your PPPoE password:/lee arriba :p/

FIREWALLING

Please choose the firewall rules to use. Note that these rules are
very basic. You are strongly encouraged to use a more sophisticated
firewall setup; however, these will provide basic security. If you
are running any servers on your machine, you must choose 'NONE' and
set up firewalling yourself. Otherwise, the firewall rules will deny
access to all standard servers like Web, e-mail, ftp, etc. If you
are using SSH, the rules will block outgoing SSH connections which
allocate a privileged source port.

The firewall choices are:
0 - NONE: This script will not set any firewall rules. You are responsible
for ensuring the security of your machine. You are STRONGLY
recommended to use some kind of firewall rules.
1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation
2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway
for a LAN
>>> Choose a type of firewall (0-2): /Configuracion de firewall... esta explicado ahi mismo, pero nunca esta de mas remarcar, 0 si no queres firewall, 1 para una conexion casera y 2 en caso de tener una conexion compartida/


** Summary of what you entered ** /resumen de la configuracion que hicimos/

Ethernet Interface: eth0
User name: ads...
Activate-on-demand: No
DNS addresses: Supplied by ISP's server
Firewalling: STANDALONE

>>> Accept these settings and adjust configuration files (y/n)? y
Adjusting /etc/ppp/pppoe.conf
Adjusting /etc/ppp/pap-secrets and /etc/ppp/chap-secrets
(But first backing it up to /etc/ppp/pap-secrets-bak)
(But first backing it up to /etc/ppp/chap-secrets-bak)



Congratulations, it should be all set up!

Type 'pppoe-start' to bring up your PPPoE link and 'pppoe-stop' to bring
it down. Type 'pppoe-status' to see the link status.

Y estaría lista la configuración adsl para la conexión a internet, ahora escribimos en consola:

pppoe-start /para echar a correr la conexión/

Apretamos de nuevo Alt+F2 y escribimos Firefox... y oh! magia!! tenemos internet en nuestro navegador :O...

Para terminar la conexión en caso que sea necesario escribimos en la consola:

pppoe-stop

Pta: Pero voi a tener que escribir todas las veces esto en la consola para conectarme??
Rta: naaaaaaaa... yo hice esto para hacer que se conecte automaticamente mi Slackware al inicio...

Atl+F2 --->Konsole --->su --->vim /etc/rc.d/rc.local y agregue el siguiente script

# Iniciando ADSL
echo "Iniciando ADSL, Momento que soi lento..."
pppoe-start

guardé y cerré and voila!!
La próxima vez que iniciamos nuestro lindo Slackware ya vamos a estar conectado.
Lo que esta entre comillas ("") en el script se puede modificar a gusto... por ejemplo yo tenia puesto "Asclepio el más bonito" :D...

Modem: wan/lan modelo dual xavi - x8124r

Eso por ahora... ya me aburrí de ahí sigo con mi bitacorita Slackware...

Fuente:
Muchas gracias Asclepio por tu colaboración !!!

2 comentarios:

Anónimo dijo...

Yo uso debian y para configurar ADSL fueron los mismos pasos. Ahora estoy tratando de usar los servidores DNS de opendns.com, pero cada vez que agrego las IP's correspondientes en /etc/resolv.conf hay algun programa que me los vuelve a cambiar... todavia no se cual.
Saludos!
Pedro

El Vecino de Socrates dijo...

Asi es, son muy parecidos los pasos, solo que Debian trabaja con el conocido pppoeconf para configurar... Cuando hice esta misma configuracion en mi Debian, tuve que hacer un apt-get install rp-pppoe.so que es un plugin que facilita mucho las cosas... :)

Ojala te vaya con los DNS...


saludos

Usuarios Online