linux中实现adsl拨号上网

来源:互联网 发布:51单片机论坛 编辑:程序博客网 时间:2024/05/05 21:45

安装PPPOE客户端

下载地址:
http://www.roaringpenguin.com/pengui...e_rp-pppoe.php
下载 rp-pppoe-3.6.tar.gz
安装:
tar -zxvf rp-pppoe-3.6.tar.gz
cd rp-pppoe-3.6.
./go
当出现
>>> Enter your PPPoE user name :
输入ADSL帐号的用户名
当出现
>>> Enter the Ethernet interface connected to the ADSL 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):
输入 eth0 ,这是ADSL相连的网卡的名字
当出现
>>> Enter the demand values (default no):
输入 no
当出现
>>> Enter the DNS inforMation here:
输入相应的DNS服务器IP地址 (一般有2个)
当出现
>>> Please enter your PPPoE password:
输入ADSL帐号的密码
当出现
>>> Choose a type of firewall (0-2):
输入 0 ,不使用防火墙
当出现
>>> Accept these settings and adjust configuration files (y/n)?
如果输入的信息正确,输入 y ,完成配置,否则,输入 n 重新输入。

使用:
拨号 adsl-start
断开 adsl-stop
查看 adsl-status 

如果ppp0不能打开, 可通过tail /var/log/messages查找出错来源

原创粉丝点击