freebsd下adsl拨号,适应于在家上网的朋友
#下以为/etc/ppp/ppp.conf的内容
#注意,default与adsl顶格。
#set device PPPOE后边的设备名,可以通过ifconfig查看
你运行ifconfig.看下设备名,把我下边的vr0换成你的
注意default:及adsl项格写,下边的语句有空格,空几个都行。
adsl:后边的authname authkey还成你的adsl帐号的
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 PPPoE:vr0
set speed sync
set mru 1492
set mtu 1492
set ctsrts off
set timeout 30
disable lqr
deny lqr
add default HISADDR
enable dns
adsl:
set authname la9093090
set authkey 730527
set dial
set login
set ifaddr 10.0.0.1/0 10.0.0.2/0
ppp.conf配置好后,保存。
拨号上网: