发信人: weekend(笨刚-伤心)
整理人: hackerbay(2002-09-06 16:48:52), 站内信件
|
安装时,取最小化安装
然后改以下三个文件,注意网卡名,还有账号密码。
重新启动,adsl就已经拨号成功了。
假设外网卡为xl1(连adsl),内网卡为xl0(连局域网)
/etc/rc.conf文件内容
hostname="adsl.mycomp.com.cn"
ifconfig_xl0="inet 192.168.0.1 up netmask 255.255.255.0"
ifconfig_xl1="up"
ipv6_enable="YES"
kern_securelevel_enable="NO"
keyrate="fast"
nfs_reserved_port_only="YES"
saver="fire"
sendmail_enable="NO"
sshd_enable="YES"
ppp_enable="YES" # Start user-ppp (or NO).
ppp_mode="dedicated" # Choice of "auto", "ddial", "direct" or "dedicated".
ppp_nat="YES" # Use PPP's internal network address translation or NO.
#ppp_profile="papchap" # Which profile to use from /etc/ppp/ppp.conf.
ppp_profile="default" # Which profile to use from /etc/ppp/ppp.conf.
ppp_user="root" # Which user to run ppp as
gateway_enable="YES"
/etc/ppp/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. (cuaa0 = COM1, cuaa1 = COM2)
#
# set device /dev/cuaa1
set device PPPoE:xl1
#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 0 # 3 minute idle timer (the default)
enable dns # request DNS info (for resolv.conf)
set authname 账号
set authkey 密码
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR
/etc/hosts文件内容
::1 localhost.eunion.com.cn localhost
127.0.0.1 localhost.eunion.com.cn localhost
192.168.0.1 adsl.mycomp.com.cn adsl
192.168.0.1 adsl.mycomp.com.cn.
---- 浪迹经年的游子,祈望一份关怀与牵挂 |
|