Re: [問題] 使用5.2.1版本...pppoe的設定
貼給你看一下
我的FreeBSD ADSL的設定
/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.2.2.5 2001/07/13 10:55:23 brian Exp $
#################################################################
default:
set log Phase tun command
set ifaddr 10.0.0.1/0 10.0.0.2/0
adsl:
set device PPPoE:rl0
set mru 1492
set authname i_am_user_name@hinet.net======>>設定這裡
set authkey i_am_password=====>>設定這裡
set dial
set login
add default HISADDR
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 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
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
#
/etc/rc.conf .........................
# -- sysinstall generated deltas -- # Mon Aug 16 16:32:44 2004
# Created: Mon Aug 16 16:32:44 2004
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
network_interface="auto"
ifconfig_rl0="inet 10.0.0.1 netmask 255.0.0.0 -arp up"
ppp_enable="YES"
ppp_mode="ddial"
ppp_profile="adsl"
defaultrouter="10.0.0.1"
gateway_enable="YES"
#ppp_enable="yes"
#ppp_mode="ddial"
#ppp_profile="adsl"
#ppp_user="root"
kern_securelevel_enable="NO"
nfs_reserved_port_only="YES"
sendmail_enable="YES"
#ppp_user="root"
kern_securelevel_enable="NO"
nfs_reserved_port_only="YES"
sendmail_enable="YES"
sshd_enable="YES"
usbd_enable="YES"
# This file now contains just the overrides from /etc/defaults/rc.conf.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# Enable network daemons for user convenience.
# Created: Sat Aug 21 01:24:37 2004
# This file now contains just the overrides from /etc/defaults/rc.conf.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# Enable network daemons for user convenience.
# Created: Sat Aug 21 02:54:42 2004
# This file now contains just the overrides from /etc/defaults/rc.conf.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# Enable network daemons for user convenience.
# Created: Sat Aug 21 14:17:26 2004
--
夫兵者不祥之器物或惡之故有道者不處君子居則貴左用兵則貴右兵者不祥之器非君子
之器不得已BLOG http://www.wretch.twbbs.org/blog 安西教練 我想寫日記 嗚嗚下
矣吉事尚左凶事尚右偏將軍居左上將軍居右言以喪禮處之殺人之眾以哀悲泣之戰勝以
喪禮處之道常無名樸雖小天下莫能臣侯王若能守之萬物將自賓天地相合以降甘露民莫
之令而自均始制有名名亦既有夫亦將知止知 220-133-33-144.HINET-IP.hinet.net海
作者在 04/10/02 1:04:01 從 220-133-33-144.HINET-IP.hinet.net 修改這篇文章
討論串 (同標題文章)
完整討論串 (本文為第 11 之 13 篇):
FreeBSD 近期熱門文章
PTT數位生活區 即時熱門文章