蓝森林首页 | 返回主页 | 本站地图 | 站内搜索 | 联系信箱 |
 您目前的位置:首页 > 自由软件 > 技术交流 > 系统管理


    

蓝森林 http://www.lslnet.com 2006年8月18日 15:18


BSD下ADSL拨号的问题 (BSD版人太少了,谅解)

我的系统是BSD4.8,上网方式ADSL,现在偶用系统自己带的PPP来做的但是拨号没有反应。下面的是偶的配置文件:
我的是双网卡lnc0连接内部网络地址是:10.10.7.198,lnc1连接的ADSL

#################################################################
# PPP Sample Configuration File
# Originally written by Toshiharu OHNO
# Simplified 5/14/1999 by wself@cdrom.com
#
# See /usr/share/examples/ppp/ for some examples
#
# $FreeBSD: src/etc/ppp/ppp.conf,v 1.2.2.5 2001/07/13 10:55:23 brian Exp $
#################################################################

default:
set log Phase Chat LCP IPCP CCP tun command
ident user-ppp VERSION (built COMPILATIONDATE)

# Ensure that "device" references the correct serial port
# for your modem. (cuaa0 = COM1, cuaa1 = COM2)
#
set device PPPoE:lnc1

set speed sync
set mru 1492
set mtu 1492
set ctsrts off
set timeout 30 # 3 minute idle timer (the default)
disable lqr
deny lqr
add default HISADDR
enable dns # request DNS info (for resolv.conf)

papchap:
#
# edit the next three lines and replace the items in caps with
# the values which have been assigned by your ISP.
#

hz163:
set authname 456789@163
set authkey 456789
set dial
set login

set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR # Add a (sticky) default route
net enable yest HISADDR # Add a (sticky) default route

BSD下ADSL拨号的问题 (BSD版人太少了,谅解)

我的ppp.conf文件,参考一下吧,反正我用着很稳定。BSD版人不少啊,以后还是回BSD版问吧
default:
  set log Phase tun command
  enable dns
  set ifaddr 10.0.0.1/0 10.0.0.2/0
adsl:
  set device PPPoE:vr0
  set mru 1492
  set mtu 1492
  set authname lijinyu1
  set authkey 456123
  set dial
  set login
  add default HISADDR



Copyright © 1999-2000 LSLNET.COM. All rights reserved. 蓝森林网站 版权所有。 E-mail : webmaster@lslnet.com