看板FreeBSD
标 题Re: 请问ADSL固定IP设定
发信站BalaBBS (Wed Sep 1 10:21:40 2004)
转信站ptt!ctu-reader!ctu-peer!news.nctu!news.csie.ncyu!news.ncyu!news.ccu!ne
请问一下各位先进,我也有设定固定 IP, 但是 FBSD 中的设定还不是很清楚,
所以总是只在 rc.conf 中设为 DHCP 的方式才能上网,
请问我的设定要改些什麽地方才会以该固定 IP 连线呢?
我的 /etc/rc.conf
ppp_enable="YES"
ppp_mode="ddial"
ppp_nat="NO"
ppp_profile="pppoe"
ifconfig_rl0="inet 220.134.xx.xx"
# ifconfig_rl0="DHCP"
/etc/ppp/ppp.conf
pppoe:
set device PPPoE:rl0
set mtu 1492
set speed sync
enable lqr
set lqrperiod 5
set cd 5
set dial
set login
set timeout 0
set authname
[email protected]
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
enable dns
set dns 168.95.192.1
※ 引述《[email protected] (最糟糕的状况....)》之铭言:
> ※ 引述《[email protected] (darksnow)》之铭言:
> : hinet非固定制的都要用PPPoE吧....
> 我找到方法了
> 设定ppp.conf後
> rc.conf就可以指定到这个ip了...更一搬固定ip的差别只有在
> 需要设定ppp.conf
--
"There are no differences but differences of degree between
different degrees of difference and no difference at all."
- William James, under the influence of nitrous oxide.
--
【芭乐的故乡 bala.twbbs.org】 From:218-163-156-129.dynamic.hinet.net