Linux中的ADSL拨号上网 Redhat 9.0
来源:百度文库 编辑:神马文学网 时间:2024/04/30 06:01:36
测试环境:
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多半就可以了。
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多半就可以了。
Linux中的ADSL拨号上网 Redhat 9.0
Linux - ADSL拨号上网 Redhat 7.3
Linux ADSL拨号上网--鲁尼思的港湾
Linux ADSL拨号上网--鲁尼思的港湾
ADSL拨号上网出现错误代码698!
ADSL拨号上网出现错误代码698
redhat linux rsync配置
ADSL拨号上网的小技巧荟萃
redhat linux 9.0 samba配置详解--mophis的博客
Linux下简单实用的防火墙配置 Redhat 9.0
RedHat Linux 9.0的安装+下载+入门指南(图文并茂)
RedHat Linux 9.0的安装+下载+入门指南
Redhat配置文件介绍 - Linux/APACHE
ADSL拨号上网用户应该如何预防黑客入侵
找回Redhat Linux 7.2的超级用户密码
RedHat Linux常见日志文件和常用命令
虚拟机安装RedHat Linux AS 5
《RedHat 企业Linux 用户基础》笔试试题
RedHat Enterprise Linux 基本网络配置
Redhat 和 Ubuntu linux安装VMware tools
Redhat Linux 硬盘挂载方法!!!
vsftp配置 Redhat 9.0
在Redhat Linux AS 4下实现软件RAID
Redhat linux 9下让PHP支持java类