当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 4 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : [问题]求教,从原来的静态IP转用ADSL后,无法建立连接
帖子发表于 : 2007-03-20 8:03 

注册: 2006-04-29 14:54
帖子: 1187
地址: 山东
送出感谢: 0 次
接收感谢: 0 次
我原来是使用的济南的百灵宽带,静态IP,这两天刚转用ADSL,但无法建立连接。具体过程如下:

一开始,我并没有修改网络中的设置,直接在终端运行sudo pppoeconf,但提示,虽然可以打到网卡但“Access Concentrator of your provider did not respond”。后来将网络中的设置的静态IP删掉,改成DHCP还是不行。
然后我就安装了RP-PPPOE,但安装后点击生成的Tk打头的菜单项时(已经建立了网络连接项),启动建立的网络连接时总是显示超时。于是就把这个再次删除了。

后来我再次尝试sudo pppoeconf,这次不再提示上次的Access Concentrator of your provider did not respond错误了,可以正常配置下去,但配置完后,输入pon dsl-provider后无任何反应就返回了。运行plog,提示localhost pppd couldn't get channel number。运行另一个命令ifconfig ppp0说是找不到设备。执行pppoe-start,提示TIMED OUT(超时)。就算在设置时加入自己找到的DNS服务器也不行。

PS:使用ping 127.0.0.1结果正常。

我的系统是7.04,硬件连接没问题,因为在XP下可以用。

请各位DX指教一下,谢谢!

附:
/etc/resolv.conf
引用:
nameserver 202.102.152.3
nameserver 202.102.128.68

/etc/ppp/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 xxyyzz@magma.ca
USER='la9319337'

# 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=169.254.8.248
DNS2=202.102.128.68

# 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


/etc/ppp/pppoe-server-option
引用:
# PPP options for the PPPoE server
# LIC: GPL
require-pap
login
lcp-echo-interval 10
lcp-echo-failure 2


/etc/network/interfaces
引用:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback


iface eth0 inet dhcp

auto eth0

auto dsl-provider
iface dsl-provider inet ppp
provider dsl-provider


_________________
学会看置顶帖、精华帖。
学会使用搜索。
常见问题解答和发帖需知


页首
 用户资料  
 
2 楼 
 文章标题 :
帖子发表于 : 2007-03-23 23:21 

注册: 2007-03-17 20:54
帖子: 13
送出感谢: 0 次
接收感谢: 0 次
跟LZ一样!!
不能配置拨号!!!
怎么办阿!!!


_________________
hp compaq nx6120
PM 1.73 / 60G / GMA900 / 512M × 2 / Broadcom 网卡


页首
 用户资料  
 
3 楼 
 文章标题 :
帖子发表于 : 2007-10-24 11:37 

注册: 2007-03-16 16:40
帖子: 12
送出感谢: 0 次
接收感谢: 0 次
跟LZ一样!!
不能配置拨号!!!
怎么办阿!!!


页首
 用户资料  
 
4 楼 
 文章标题 :
帖子发表于 : 2007-10-24 12:47 

注册: 2006-12-18 1:05
帖子: 274
送出感谢: 0 次
接收感谢: 0 次
nameserver 202.102.152.3
nameserver 202.102.128.68

DNS1=169.254.8.248 (这个我ping了一下也不通)
DNS2=202.102.128.68
重新拨号后,这里应该是一样(同/etc/ppp/pppoe.conf)的吧。你的怎么不同?

把RP-PPPOE删了吧。pppoeconf拨号挺好用的。sudo poff -a 后再重新sudo pppoeconf看看。


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 4 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 4 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译