LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2162|回复: 20

pon dsl-provider 的问题

[复制链接]
发表于 2005-11-14 08:11:47 | 显示全部楼层 |阅读模式
我用的是ADSL  ,我用PPPOEC0NF 设置我的用户名和密码 然后在pon dsl-provider 说是rp.pppoe loaded   可是PING WWW.163.COM
 楼主| 发表于 2005-11-14 08:13:46 | 显示全部楼层
不好意思 没打完
可是PING  www.163.com 不通, 我把mtu改成了1412 也不行,
这是我的/ETC/PPP/PEERS/DSL-PROVIDER # Configuration file for PPP, using PPP over Ethernet
# to connect to a DSL provider.
#
# See the manual page pppd(8) for information on all the options.

##
# Section 1
#
# Stuff to configure...

# MUST CHANGE: Uncomment the following line, replacing the user@provider.net
# by the DSL user name given to your by your DSL provider.
# (There should be a matching entry in /etc/ppp/pap-secrets with the password.)
#user myusername@myprovider.net

# Use the pppoe program to send the ppp packets over the Ethernet link
# This line should work fine if this computer is the only one accessing
# the Internet through this DSL connection. This is the right line to use
# for most people.
#pty "/usr/sbin/pppoe -I eth0 -T 80 -m 1452"

# An even more conservative version of the previous line, if things
# don't work using -m 1452...
#pty "/usr/sbin/pppoe -I eth0 -T 80 -m 1412"

# If the computer connected to the Internet using pppoe is not being used
# by other computers as a gateway to the Internet, you can try the following
# line instead, for a small gain in speed:
#pty "/usr/sbin/pppoe -I eth0 -T 80"


# The following two options should work fine for most DSL users.

# Assumes that your IP address is allocated dynamically
# by your DSL provider...
noipdefault
# Try to get the name server addresses from the ISP.
usepeerdns
# Use this connection as the default route.
# Comment out if you already have the correct default route installed.
defaultroute

##
# Section 2
#
# Uncomment if your DSL provider charges by minute connected
# and you want to use demand-dialing.
#
# Disconnect after 300 seconds (5 minutes) of idle time.

#demand
#idle 300

##
# Section 3
#
# You shouldn't need to change these options...

hide-password
lcp-echo-interval 20
lcp-echo-failure 3
# Override any connect script that may have been set in /etc/ppp/options.
connect /bin/true
noauth
persist
mtu 1412

# RFC 2516, paragraph 7 mandates that the following options MUST NOT be
# requested and MUST be rejected if requested by the peer:
# Address-and-Control-Field-Compression (ACFC)
noaccomp
# Asynchronous-Control-Character-Map (ACCM)
default-asyncmap

plugin rp-pppoe.so eth1
user "tx_62138467_gmy@syctt"

有时.,不知道为什么,就可以PING 通过, 但是大部分时间不行,
请问这是什么原因呀
回复 支持 反对

使用道具 举报

发表于 2005-11-14 10:17:30 | 显示全部楼层
1,域名解析正常么?
2,eth0 或者 eth1 是否设置了gateway ?

拨号成功后,请帖出 /sbin/route 的输出参考下
回复 支持 反对

使用道具 举报

发表于 2005-11-14 11:09:33 | 显示全部楼层
设置一个dns
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-14 17:24:40 | 显示全部楼层
我可是连接不上呀
这是我的PLOG
Nov 14 17:08:28 localhost pppd[3243]: Cannot determine ethernet address for proxy ARP
Nov 14 17:08:28 localhost pppd[3243]: local  IP address 222.33.9.60
Nov 14 17:08:28 localhost pppd[3243]: remote IP address 10.240.1.1
Nov 14 17:08:28 localhost pppd[3243]: primary   DNS address 211.98.2.4
Nov 14 17:08:28 localhost pppd[3243]: secondary DNS address 211.98.4.1
Nov 14 17:10:01 localhost pppd[3712]: Plugin rp-pppoe.so loaded.
Nov 14 17:10:01 localhost pppd[3713]: pppd 2.4.3 started by root, uid 0
Nov 14 17:10:36 localhost pppd[3713]: Timeout waiting for PADS packets
Nov 14 17:10:36 localhost pppd[3713]: Unable to complete PPPoE Discovery
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-14 17:25:32 | 显示全部楼层
这个是ROUTE
debian:~# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 eth1
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-14 17:26:25 | 显示全部楼层
这是运行DHCLIENT 的结果
debian:/mnt/e# dhclient
Internet Software Consortium DHCP Client 2.0pl5
Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
All rights reserved.

Please contribute if you find this software useful.
For info, please visit http://www.isc.org/dhcp-contrib.html

ppp0: unknown hardware address type 512
sit0: unknown hardware address type 776
ppp0: unknown hardware address type 512
sit0: unknown hardware address type 776
Listening on LPF/ppp0/<null>
Sending on   LPF/ppp0/<null>
Listening on LPF/sit0/<null>
Sending on   LPF/sit0/<null>
Listening on LPF/eth0/00:00:e8:18:e2:5e
Sending on   LPF/eth0/00:00:e8:18:e2:5e
Listening on LPF/lo/<null>
Sending on   LPF/lo/<null>
Listening on LPF/eth1/00:0a:eb:28:f0:00
Sending on   LPF/eth1/00:0a:eb:28:f0:00
Sending on   Socket/fallback/fallback-net
DHCPDISCOVER on ppp0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on sit0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 4
DHCPREQUEST on eth1 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
SIOCADDRT: File exists
bound to 192.168.1.2 -- renewal in 1800 seconds.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-14 17:27:28 | 显示全部楼层
还有我在/etc/resolv.conf 中把两个NAMESERVE 改成我给铁通打电话问的DNS了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-14 17:28:13 | 显示全部楼层
可还是PING  什么都不行
回复 支持 反对

使用道具 举报

发表于 2005-11-14 17:43:26 | 显示全部楼层
这个不用dhcpclient。

把/etc/network/interfaces的内容贴出来。
回复 支持 反对

使用道具 举报

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

本版积分规则

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