LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
123
返回列表 发新帖
楼主: hhf3498

我装的是0.7,adsl拨号已经成功,可是就是访问不了网页,也ping不通??

[复制链接]
发表于 2005-4-30 00:27:55 | 显示全部楼层
Post by KeNiX
:comp
把 route 命令的输出post 上来看看......


:confused:

珍贵的第一贴啊。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-30 09:30:52 | 显示全部楼层
首先感谢大家的帮助,虽然还没解决问题。diony兄,我这的却是有两块网卡的,你一个是nforce的,一个是reltek8139的,都是板载网卡。以前一直用redhat,suse,mandrake拨号都没问题的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-30 09:31:09 | 显示全部楼层
首先感谢大家的帮助,虽然还没解决问题。diony兄,我这的却是有两块网卡的,一个是nforce的,一个是reltek8139的,都是板载网卡。以前一直用redhat,suse,mandrake拨号都没问题的。另外我是用/etc/rc.d/adsl start来启动adsl的。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-30 10:34:02 | 显示全部楼层

从arch里取文件来了!!

pppeo.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 adsl-start, adsl-stop, adsl-connect and
#       adsl-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.10 2002/04/09 17:28:38 dfs Exp $
#***********************************************************************

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

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

# ADSL 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='******************'

# 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=202.106.0.20
DNS2=202.106.196.115

# 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 adsl-start waits for a new PPP interface to appear before
# concluding something went wrong.  If you use 0, then adsl-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 adsl-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 adsl-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 adsl-connect script writes its process-ID.
# Three files are actually used:
#   $PIDFILE       contains PID of adsl-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-adsl.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 ADSL 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 ADSL 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 adsl-connect to exit when connection drops:
# RETRY_ON_FAILURE=no


message.log
Apr 30 10:14:02 huang PPP generic driver version 2.4.2
Apr 30 10:14:03 huang udev[7898]: creating device node '/dev/ppp'
Apr 30 10:14:03 huang pppd[7928]: pppd 2.4.3 started by root, uid 0
Apr 30 10:14:03 huang pppd[7928]: Using interface ppp0
Apr 30 10:14:03 huang pppd[7928]: Connect: ppp0 <--> /dev/pts/3
Apr 30 10:14:03 huang pppoe[7952]: PPP session is 4209
Apr 30 10:14:03 huang pppd[7928]: Remote message: Welcome to use MA5200, Huawei Tech.^J^M
Apr 30 10:14:03 huang pppd[7928]: PAP authentication succeeded
Apr 30 10:14:03 huang pppd[7928]: local  IP address 221.216.56.224
Apr 30 10:14:03 huang pppd[7928]: remote IP address 24.24.24.24

这是最后一点信息。

adsl-start的信息:.connect
回复 支持 反对

使用道具 举报

发表于 2005-4-30 12:31:47 | 显示全部楼层
remote IP address还真是24.24.24.24呀。呵呵。有意思。

看来两块网卡成了拨号的障碍了……汗。不过如果你有两块网卡,ifconfig的时候应该可以看到啊。至少要有个sit0,竟然没有……还有,怎么可能有两块儿板载网卡,汗……

试试把nforce那块完全禁用掉(cmos里或者主板跳线)。
我这里刚开始有两块8139,无论如何都无法上网。后来拔掉了一块,就ok了。很怪……

实在不行,就找个0.6的iso装上,然后再升级好了。记得刚开始有个兄弟就这么解决了,不过好麻烦……
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-30 12:48:09 | 显示全部楼层
diony兄,按照你的签名档的方法终于可以上网了呵呵!!万分感谢!!!
这些东西可能没什么用,不过你大可以试试,呵呵。
1、那个option空文件大可以删掉,不要让它存在。
2、rc.conf里的eth1去掉。
3、还不行就给eth0一个合法的内网ip,就像10.0.0.1啊什么的。网关就不用了。
4、试试在rc.conf的服务那一段里加入pppd。(之前先看看/etc/rc.d下有没有pppd)
5、在/etc/modprobe.conf里,alias eth0 8139too试试。
6、如果你并不使用iptables,系统中已经安装了它的话,就把它移除掉。pacman -Rd iptables。避免它有什么规则影响到网络
不过还是用nforce的网卡,载/modprobe.conf里做了他的别名,然后iptables -F就可以了,我估计就是iptables的问题,呵呵!!已经装上gnome了!!
回复 支持 反对

使用道具 举报

发表于 2005-4-30 13:01:30 | 显示全部楼层
呵呵。看到兄弟能上就太好了
那个不是签名档呀,呵呵,手动加了个-----------而已。
回复 支持 反对

使用道具 举报

发表于 2005-4-30 19:36:22 | 显示全部楼层
#route
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表