LINUX下的ADSL拨号上网大体有2种方法:一是用系统自带的图形界面(在网络里面建立新拨号连接,类似于WIN下),一是用命令行。下面呢我就主要介绍一下在命令行环境下配置上网。
  一、解压缩
  #tar xvfz rp-pppoe-3.2.tar.gz #cd rp-pppoe-3.2
  二、进行编译和安装
  运行脚本#./go将自动进行编译和安装,最后,调用/usr/sbin/adsl-setup进行配置,具体解释见三。
  三、 配置PPPOE客户端软件
  安装完软件包后,必须配置pppoe的配置文件/etc/ppp/pppoe.conf,从而让ADSL拨号时使用配置文件中的用户名、密码等参数。我们不必手工改动这个文件,可以使用adsl-setup这个工具进行配置:
  #/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:
  输入 server ,这表示使用ADSL拨号自动获得的DNS服务器IP地址
  当出现
  >>> 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 重新输入。