Skip to Content

关于pppoe(adsl)拨号上网的解决方法

我今天回家发现电脑XP系统崩溃了,幸好有我的puppy,U盘插上,重启机器,OK,
但是尝试了半天也无法上网,
我的系统版本是4.0 安装了中文扩展包的,
我首先按照PPPOE管理工具的设置,做了一遍,输入了账号,密码,端口,在选择DNS的时候,工具提示说,输入server是系统默认的从网络isp那里获得dns,如果直接回车的话,那么系统就认为你懂得设置dns,就会乎略,同时它提到软件存在一个bug,就是输入server有时不管用,那么就要从新设置向导,选择直接回车。
我首先输入server 试了试,能链接成功,但是打不开网页,为了排除其他原因,我使用了一个我知道的网站做了测试,网址是http://218.207.67.66 幸好我知道ip地址,我输入这个地址后,网页上返回了 it works ,这就说明网络是通的,但是输入www.sohu.com 却显示未找到服务器。于是可以判断出是dns出了问题。
我有做了一遍配置,这次在dns这里 直接回车,试了一下,还是不行。
接下来我又通过命令ifconfig 显示网络的ip地址,我是希望找到dns该如何输入,我找了半天,也没有找到一个可以输入dns的命令。
后来我想起我还有一本linux命令查询词典,查阅了一遍,也找不到一个于DNS有关的命令,最后在附录上发现了一些系统的重要的配置文件,看了一下,突然想到,在linux下,设备的一些地址配置是一个叫做conf扩展名的文件保存的,我看了下这些文件的保存目录,是在etc下,于是我就到puppy的etc下找看看有没有pppoe相关的,
结果找到一个ppp的文件夹,在里面有个pppoe.conf文件和conf.bak文件,显然就是它了,我打开找了一下,发现了这个文件确实是当前的pppoe文件配置,因为我在里面找到了我输入的adsl账号。
继续向下找,找到一个dns的关键字,就是它了,一共有两个,dns1 dns2 在后面加上我知道的dns地址,保存,退出,连接pppoe看看咋样。
测试一下,靠,还是上不去!!!
这个怎么办,莫非是DNS地址输入错了,我输的单位的dns单位用的是移动的专线,家里面是铁通的,怎么办,换dns,打电话,找铁通,结果告诉我两个,一主一备,都输上,保存,退出,拨号连接,打开firefox,输入www.sohu.com等待,显示页面载入出错,Firefox 无法在 www.sohu.com 找到该服务器。 靠,再次失败。
继续找问题,我这次开始研究这个文件,在dns关键字的上方,发现一段话:
# DNS type: SERVER=obtain from server; SPECIFY=use DNS1 and DNS2;
# NOCHANGE=do not adjust.
DNSTYPE=NOCHANGE
看来问题出在这里了,虽然我在下面输入了dns,但是,因为这个dnstype选项没有选对,导致系统没有使用dns1和dns2.
修改 DNSTYPE=SPECIFY
再次测试网络,hohoo! 久违的搜狐的页面就打开喽。爽!!!
-----------------------------
如果你也和我遇到一样的问题,可以试试这个方法,
在使用pppoe配置工具的时候,dns那一项直接回车
然后在修改DNSTYPE=SPECIFY
然后输入
DNS1=61.232.206.102
DNS2=211.98.4.1
保存文件,再播一次试试看,
我提供给大家几个dns
211.138.13.66 移动
211.143.60.56 移动
61.232.206.102 铁通
211.98.4.1 铁通
-------------------------------------
下面是我的pppoe.conf文件


-----
#***********************************************************************
#
# pppoe.conf
#
# Configuration file for rp-pppoe. Edit as appropriate and install in
# /etc/ppp/pppoe.conf
#
# NOTE: This file is used by the pppoe-start, pppoe-stop, pppoe-connect and
# pppoe-status shell scripts. It is *not* used in any way by the
# "pppoe" executable.
#
# Copyright (C) 2000 Roaring Penguin Software Inc.
#
# This file may be distributed under the terms of the GNU General
# Public License.
#
# LIC: GPL
# $Id: pppoe.conf,v 1.11 2005/08/09 02:49:12 dfs Exp $
#***********************************************************************

# When you configure a variable, DO NOT leave spaces around the "=" sign.

# Ethernet card connected to DSL modem
ETH='eth0'

# PPPoE user name. You may have to supply "@provider.com" Sympatico
# users in Canada do need to include "@sympatico.ca"
# Sympatico uses PAP authentication. Make sure /etc/ppp/pap-secrets
# contains the right username/password combination.
# For Magma, use
USER='×××××××'

# Bring link up on demand? Default is to leave link up all the time.
# If you want the link to come up on demand, set DEMAND to a number indicating
# the idle time after which the link is brought down.
DEMAND=no
#DEMAND=300

# DNS type: SERVER=obtain from server; SPECIFY=use DNS1 and DNS2;
# NOCHANGE=do not adjust.
DNSTYPE=SPECIFY

# Obtain DNS server addresses from the peer (recent versions of pppd only)
# In old config files, this used to be called USEPEERDNS. Changed to
# PEERDNS for better Red Hat compatibility
PEERDNS=no

DNS1=61.232.206.102
DNS2=211.98.4.1

# Make the PPPoE connection your default route. Set to
# DEFAULTROUTE=no if you don't want this.
DEFAULTROUTE=yes

### ONLY TOUCH THE FOLLOWING SETTINGS IF YOU'RE AN EXPERT

# How long pppoe-start waits for a new PPP interface to appear before
# concluding something went wrong. If you use 0, then pppoe-start
# exits immediately with a successful status and does not wait for the
# link to come up. Time is in seconds.
#
# WARNING WARNING WARNING:
#
# If you are using rp-pppoe on a physically-inaccessible host, set
# CONNECT_TIMEOUT to 0. This makes SURE that the machine keeps trying
# to connect forever after pppoe-start is called. Otherwise, it will
# give out after CONNECT_TIMEOUT seconds and will not attempt to
# connect again, making it impossible to reach.
CONNECT_TIMEOUT=30

# How often in seconds pppoe-start polls to check if link is up
CONNECT_POLL=2

# Specific desired AC Name
ACNAME=

# Specific desired service name
SERVICENAME=

# Character to echo at each poll. Use PING="" if you don't want
# anything echoed
PING="."

# File where the pppoe-connect script writes its process-ID.
# Three files are actually used:
# $PIDFILE contains PID of pppoe-connect script
# $PIDFILE.pppoe contains PID of pppoe process
# $PIDFILE.pppd contains PID of pppd process
CF_BASE=`basename $CONFIG`
PIDFILE="/var/run/$CF_BASE-pppoe.pid"

# Do you want to use synchronous PPP? "yes" or "no". "yes" is much
# easier on CPU usage, but may not work for you. It is safer to use
# "no", but you may want to experiment with "yes". "yes" is generally
# safe on Linux machines with the n_hdlc line discipline; unsafe on others.
SYNCHRONOUS=no

# Do you want to clamp the MSS? Here's how to decide:
# - If you have only a SINGLE computer connected to the DSL modem, choose
# "no".
# - If you have a computer acting as a gateway for a LAN, choose "1412".
# The setting of 1412 is safe for either setup, but uses slightly more
# CPU power.
CLAMPMSS=1412
#CLAMPMSS=no

# LCP echo interval and failure count.
LCP_INTERVAL=20
LCP_FAILURE=3

# PPPOE_TIMEOUT should be about 4*LCP_INTERVAL
PPPOE_TIMEOUT=80

# Firewalling: One of NONE, STANDALONE or MASQUERADE
FIREWALL=NONE

# Linux kernel-mode plugin for pppd. If you want to try the kernel-mode
# plugin, use LINUX_PLUGIN=/etc/ppp/plugins/rp-pppoe.so
LINUX_PLUGIN=

# Any extra arguments to pass to pppoe. Normally, use a blank string
# like this:
PPPOE_EXTRA=""

# Rumour has it that "Citizen's Communications" with a 3Com
# HomeConnect DSL Modem DualLink requires these extra options:
# PPPOE_EXTRA="-f 3c12:3c13 -S ISP"

# Any extra arguments to pass to pppd. Normally, use a blank string
# like this:
PPPD_EXTRA=""


########## DON'T CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING
# If you wish to COMPLETELY overrride the pppd invocation:
# Example:
# OVERRIDE_PPPD_COMMAND="pppd call dsl"

# If you want pppoe-connect to exit when connection drops:
# RETRY_ON_FAILURE=no
#686
那网通的呢、、
还是没怎么看明白,我是网通的我怎么知道我的DNS呢?、
谢谢~!
#765
可以去百度搜一下 各个省的DNS都不一样的。不过我觉得即使你设置铁通或电信的DNS也是可以用的
#687
我是网通的,拨号之后也能上网,但只能上校园网,外网上不去,因为需要PPPOE 的防盗接插件,此插件只能在微软的操作系统上用,没有for linux的,请问高手那我改如何才能上外网呢?
#766
装WINe 试试看
#1513
关于pppoe(adsl)拨号上网的解决方法:
在windowsxp下浏览器 选项中找到你的pppoe上网真名用这个真名在puppylinuxPPPOE管理工具中登录 输入你的密码即可
#1759
铁通的用linux 的pppoe拔号上网,还只能用他铁通的DNS才能正确ping通网页,用其它的DNS还真不能进行域名解析,让我瞎忙了半天,晕死。
#1762
http://www.minilinux.net/sites/default/files/eio_ppt.jpg
右建点击论坛里的图片属性显示的地址都是这个论坛的网址,不知道怎么上传的,


#1766
《天仙配》油画挺好看的,哪里搞到的,把原地址貼出来
#2366
sasaqqdan 的头像
这不是《天仙配》,原油画也是有版权保护的,恕不发送。
#2368
我來畫一個給您download
不過得先學畫油畫
這就立刻馬上去學
#2364
如果知道DNS地址,直接就在pppoe配置问DNS的时候输入DNS的IP地址就行了。(laolin-a puppy new user)
#8590
windows可以让服务器自动给我们定DNS,为什么linux就不行呢?

发表新评论

  • 你可以在文本中使用BBCode标记语言。 URL会自动被转为链接。

更多关於格式化选项的信息

CAPTCHA
请验证您是否是机器人。
Image CAPTCHA
Enter the characters shown in the image.