设置方法如下:
一、 确保安装了网卡并工作正常
使用命令#ifcong eth0查看网卡状态是否正常,并在系统中不要设置默认路由(网关),让
ADSL拨号后自动获得. 如果已经设置了默认路由,使用以下方法删除:
在文件 /etc/syscong/network 中删除 GATEWAY= 这一行,然后以root执行:
#/etc/init.d/network restart重启网卡
二、 安装PPPOE客户端软件
下载源代码软件包http://www.roaringpenguin.com/les/download/rp-pppoe-
3.10.tar.gz
解压缩 #tar zxf rp-pppoe-3.10.tar.gz
配置编译#cd rp-pppoe-3.10/src
#./congure
# make
# make install
# cd ../
执行脚本# ./go将自动进行编译和安装
# /usr/sbin/adsl-setup进行配置
三、配置过程如下:
当出现
>>> 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:
输入 主/次DNS Ip地址 ,这表示使用ADSL拨号自动获得的DNS服务器IP地址
当出现
>>> Please enter your PPPoE password:
输入ADSL帐号的密码
当出现
>>> Choose a type of rewall (0-2):
输入 0 ,不使用防火墙
当出现
>>> Accept these settings and adjust conguration les (y/n)?
如果输入的信息正确,输入 y ,完成配置,否则,输入 n 重新输入。
四、启动PPPOE客户端软件
使用命令
#/usr/sbin/adsl-start 启动PPPOE客户端软件,进行连接
/usr/sbin/adsl-stop 关闭连接.
五、测试
当连接成功后,使用命令
#ifcong
评论1