测试环境: OS:Redhat 9.0 (vmware虚拟机中安装的) Kernel version:2.4.20-8 所需软件: rp-pppoe-3.5-8.i386.rpm rp-pppoe-3.5.tar.gz 软件下载可在ftp://61.139.52.111/Linux/Other/下找到 ADSL Modem类型: SmartAX MT800 华为的产品 内置IP为192.168.1.1 配置过程: 1、 网卡配置。 eth0为拨号网卡,IP:192.168.1.2掩码均为255.255.255.0 2、 PPPoE软件的升级与安装 安装rp-pppoe。以root身份执行 rpm -Uvh rp-pppoe-3.5-8.i386.rpm 2‘ 如果是通过源代码安装的话。请按下面的步骤进行 tar zxvf rp-pppoe-3.5.tar.gz cd rp-pppoe-3.5 ./go 在上面的go运行时,系统自动会进行以下3的步骤。 3、 PPPoE客户端配置 在rp-pppoe-3.5-8.i386.rpm安装完毕后,接下来就可进行PPPoE客户端配置了。过程如下。 #/usr/sbin/adsl-setup >>> Enter your PPPoE user name: ——此处输入拨号账号的用户名 >>> 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 >>> Enter the demand value (default no): ——输no >>> Enter the DNS information here: ——直接回车好了 >>> Please enter your PPPoE password: ——输入拨号上网的口令 >>> Choose a type of firewall (0-2): ——输0 >>> Accept these settings and adjust configuration files (y/n)? ——输y 4、 拨号连接管理 启动: adsl-start 成功连接后,屏幕显示Connected。 此时这台linux已可以上网浏览了。 关闭: adsl-stop 测试当前ADSL连接状态: adsl-status 5、 开机自启动 为了使Linux服务器能够自动拨号,执行下面步骤。 1)chkconfig --add adsl 2)ntsysv 3)选中ADSL 4)OK退出 疑难问题: 1、拨号成功了,可不能上网? 这个问题比较复杂,参考doc/HOW-TO-CONNECT文档 发现下面一些东西: DO NOT assign an IP address to the Ethernet card. DO NOT configure the card to come up at boot time. 就是说在使用ADSL拨号上网时,不需要设定网卡的一些属性什么的。我已经设置了,那又该怎么办呢? 很简单:先ifconfig eth0 down然后重新adsl-setup多半就可以了。 |
|