linux纯系统下配置PPPOE拨号上网--Dr.com校园网账户拨号上网可用

linux纯系统下配置PPPOE拨号上网!!!

1、 rp-pppoe软件的安装(客户端)

wget https://www.roaringpenguin.com/files/download/rp-pppoe-3.12.tar.gz 下载

(1) 解压rp-pppoe #tar -zxvf rp-pppoe-3.12.tar.gz
(2) cd /rp-pppoe-3.12/src
(3) ./configure
(4) make && sudo make install
2、 sudo pppoe-setup //sudo apt-get install pppoe

    进行PPPoE客户端配置了。过程如下。
  >>> 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: ——输210.52.149.2(视当地运营商的DNS服务器IP而定)
  >>> Please enter your PPPoE password: ——输网通用户口令
  >>> Choose a type of firewall (0-2): ——输0
  >>> Accept these settings and adjust configuration files (y/n)? ——输y

  3、 修改/etc/ sysctl.conf
  将其中的
  net.ipv4.ip_forward = 0
  改为
  net.ipv4.ip_forward = 1
  4、 启动拨号连接
  #pppoe-start
  成功连接后,屏幕显示Connected。
  此时这台linux已可以上网浏览了。
  可以查看下pppoe连接状态
  #pppoe-status

猜你喜欢

转载自blog.csdn.net/qq_36905972/article/details/82660932