|
|
楼主 |
发表于 2009-10-16 16:08:36
|
显示全部楼层
/etc/ppp/ppp.conf:
#################################################################
# 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.10 2004/11/19 17:12:56 obrien 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. (cuad0 = COM1, cuad1 = COM2)
#
set device pppoe:fxp1
set log Chat Command Phase
enable chat pap passwdauth
allow mode direct
enable proxy
enable MSCHAPv2
disable deflate pred1
deny deflate pred1
disalbe ipv6cp
set mru 1492
set mtu 1492
set ifaddr 10.0.0.1 10.0.1.2-10.0.1.254
set dns 202.98.5.68 202.98.1.11
set speed sync
set timeout 1800
set login
enable lqr
accept dns
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
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.
#
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 |
|