- 论坛徽章:
- 0
|
按某个网址给的提示写了ppp.conf和rc.conf,但无法实现自动上网
ppp.conf内容如下
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:lo0
# 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 电话号码
set authname 帐号
set authkey 密码
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
rc.conf内容是
keymap="us.iso"
usbd_enable="YES"
ppp_enable="YES"
ppp_mode="ddial"
ppp_mprofile="adsl"
netway_enable="YES"
ppp_nat="YES"
netd_enable="YES"
natd_interface="tun0"
# -- sysinstall generated deltas -- # Thu Feb 8 00:40:45 2007
ifconfig_rl0="DHCP"
hostname="192.168.1.3"
手工连网用ppp -net -ddial adsl 似乎连上了.但ping www.freebsd.org失败说解析hostname失败之类![](static/image/smiley/default/em16.gif) |
|