分类: LINUX
2010-11-28 11:24:06
配置PPPOE客户端软件
安装完软件包后,必须配置pppoe的配置文件/etc/ppp/pppoe.conf,从而让ADSL拨号时使用配置文件中的用户名、密码等参数。
我们不必手工改动这个文件,可以使用adsl-setup这个工具进行配置:
#/usr/sbin/adsl-setup 这个命令将会给出一个字符界面的向导,要求您输入您的用户名、IP地址、网关、DNS服务器以及密码等信息,
请按照提示做,除了用户名和密码,其他的一般直接回车是用默认设置。
当出现
>>> 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 value (default no):
输入 no
当出现
>>> Enter the DNS information here:
输入 server ,这表示使用ADSL拨号自动获得的DNS服务器IP地址
当出现,如果还不清楚,请到windows转到dos用ipconfig/all看看你的dns是多少
>>> 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 重新输入。
启动PPPOE客户端软件
使用命令:
/usr/sbin/adsl-start 启动PPPOE客户端软件,进行连接,如果成功,将出现Connected;
如果不成功,请检查网线、ADSL MODEM等物理设备,并查看 /var/log/messages中的信息
/usr/sbin/adsl-stop 关闭和ISP的连接
/usr/sbin/adsl-status 查看当前连接的状态
开机自动启动:
在/etc/rc.d/rc.local 中加入 pppoe-start & 或是 adsl-start &
chinaunix网友2010-11-30 11:05:48
很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com