Chinaunix首页 | 论坛 | 博客
  • 博客访问: 19266909
  • 博文数量: 7460
  • 博客积分: 10434
  • 博客等级: 上将
  • 技术积分: 78178
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-02 22:54
文章分类

全部博文(7460)

文章存档

2011年(1)

2009年(669)

2008年(6790)

分类: BSD

2008-11-07 09:45:45

本文简述了 下 PPPoE 的设置。BSD爱好者乐园 Zn(f;p&[ Q2R0io r

"l~a"?P:QC

#################################################################
# 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

 #设置为相应的网卡设备, 用 ifconfig 查看
 set device PPPoE:xl0 

 #改为下面这行
 set speed sync
 
 #下面几行注释掉

 #set speed 115200
 #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)

adsl:
 #
 # 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
手动拨号:
1M/Jw6K8MWac
# ppp -ddial adsl
开机自动拨号:
sJ3B h4e`在 /etc/rc.conf 里加入下面几行
'z1[WKU[+R;e
ppp_enable="YES"
ppp_mode="ddial"
ppp_nat="YES"
ppp_profile="adsl"
阅读(1516) | 评论(0) | 转发(0) |
0

上一篇:理解inode

下一篇:agef - Usenet news 管理工具

给主人留下些什么吧!~~