|
发表于 2004-5-7 21:05:26
|
显示全部楼层
最初由 window218 发表
里面很多英文(小弟英文不大好),请解释一下。
还有,如果设置好了,如何激活呢?如何断网呢?
这是我的配置文件,我是用 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.8 2001/06/21 15:42:26 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 /dev/cuaa1
set device PPPoE:rl0 (与你用的网卡有关, 用ifconfig 看看)
#set speed 115200
set speed sync
#set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
#set timeout 180 # 3 minute idle timer (the default)
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.
#
adsl:
#set phone PHONE_NUM
set authname username (自己替换)
set authkey password
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
拨号时用
ppp -ddial adsl
挂断时用
kill ppp_pid (ppp 的进程 id) |
|