|
发表于 2004-9-25 10:28:45
|
显示全部楼层
最初由 wide288 发表
哦,对了,以前我猫的路由是打开的。机器上设了网关,IP ,DNS 服务器IP 。现在上不了网。
那么说什么都不用设了?
不需要设置网关--留空 如果是单机ADSL IP设置成192.168.0.1
需要修改/etc/ppp/peer/dsl-provider
/etc/ppp/pap-secrets 文件
你可以将/etc/ppp/peers/dsl-provider内容清空 换成如下内容
#-----------------------------
pty "/usr/sbin/pppoe -I eth0 -T 80"
noipdefault
defaultroute
hide-password
lcp-echo-interval 60
lcp-echo-failure 3
connect /bin/true
noauth
persist
mtu 1492
user "这里是你的帐号"
usepeerdns
#--------------------------------
将 /etc/ppp/pap-secrets内容清空 换成
#-------------------------
# Every regular user can use PPP and has to use passwords from /etc/passwd
* (none) "" *
# UserIDs that cannot use PPP at all. Check your /etc/passwd and add any
# other accounts that should not be able to use pppd!
guest (none) "*" -
master (none) "*" -
root (none) "*" -
support (none) "*" -
stats (none) "*" -
# OUTBOUND connections
# Here you should add your userid password to connect to your providers via
# PAP. The * means that the password is to be used for ANY host you connect
# to. Thus you do not have to worry about the foreign machine name. Just
# replace password with your password.
# If you have different providers with different passwords then you better
# remove the following line.
#(none) * password
你的帐号 * 你的密码
#---------------------------------
注意:上面的帐号和密码中间一定要有* |
|