LinuxSir.cn,穿越时空的Linuxsir!

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

校园网连不上

[复制链接]
发表于 2005-10-15 21:34:22 | 显示全部楼层 |阅读模式
我装的是debian linux
能用pppoe拨号上internet
但是不拨号连学校的主页都ping不通
ping 主页提示unreachable
ping 学校ip提示unknown
我应该怎么解决啊
谢谢
发表于 2005-10-15 22:48:17 | 显示全部楼层
你的pppoe配置正确吗?
回复 支持 反对

使用道具 举报

发表于 2005-10-15 23:13:51 | 显示全部楼层
dns 没有弄好?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-10-16 09:58:01 | 显示全部楼层
我能上拨号上外网,pppoe应该是设置好了的。
在/etc/ppp/resolv.conf里

nameserver 218.2.135.1
nameserver 61.147.37.1

在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

# 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

# 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.
# 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 60
lcp-echo-failure 20
# Override any connect script that may have been set in /etc/ppp/options.
connect /bin/true
noauth
persist
mtu 1492
persist
mtu 1492

# 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 eth0
user "F01877357"


在/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

# The primary network interface
auto eth0
iface eth0 inet dhcp
name 浠ュお缃^彦^^^哏^缃^彦^汀


# please do not modify the following line
iface  inet static
iface   static

auto

iface  inet static

name 璋^缅^榷瑙h^^ㄦ^^^^配杈^隅^缘缂^

iface  inet static

provider ppp0

auto dsl-provider
auto dsl-provider
iface dsl-provider inet ppp
     provider dsl-provider
# please do not modify the following line
     pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf


auto eth0

    iface eth0 inet manual

auto eth0

    iface eth0 inet manual

auto eth0
auto eth0

    iface eth0 inet manual

究竟是哪里出错了?
谢谢
回复 支持 反对

使用道具 举报

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

本版积分规则

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