garyhe
2001-12-26, 11:05 PM
小弟按照此篇做法去做但是還是無法成功請指點指點小弟吧~~!!
撥號時會出現某一行錯誤的訊息,並無說明是語法錯或何種錯誤
小弟按照此篇做法去做~~Thank's~~~!!!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PPPoE for FreeBSD 安裝指南
開始安裝PPPoE for FreeBSD 寬頻上網程式前必須:
確定網路配接卡/Ethernet Card 已完成安裝.
確定所使用的ADSL Modem/ATM Bridge 已可正常通作.
各寬頻上網設備燈號表
相關內容:
寬頻軟件問題討論區
其他OS PPPoE 安裝指南
各PPPoE 寬頻服務Login ID
Step 1
首先更改 kernel 的設定檔以令FreeBSD 加入支援pppoe , 然後重新compile kernel.
加入下列三句指令
options NETGRAPH
options NETGRAPH_PPPOE
options NETGRAPH_SOCKET
Step 2
編輯 /etc/rc.conf, 加入以下幾行:
設定為開機能夠啟動 ppp 功能
network_interfaces="auto" # Set network interfaces automatically
ifconfig_ed0="inet 192.168.1.3 netmask 255.255.255.0 -arp up"
ppp_enable="YES" # This enables PPP on startup (recommended)
ppp_mode="background"
ppp_profile="pppoe"
Step 3
編輯 /etc/ppp/ppp.conf, 加入以下幾行:
這個檔案原先的內容是預設為撥號上網, 因此必須修改一些選項,包括"set device PPPoE:vr0"、mru、mtu、"add default HISADDR" 等.
default:
set log Phase Chat LCP IPCP CCP tun command
nat enable yes
nat same_ports yes
nat use_sockets yes
set redial 15 28800
set reconnect 15 28800
pppoe:
set device PPPoE:ed0: # ed0 此處填你對外網路卡的 device
set mru 1492
set mtu 1492
set speed sync
enable lqr
set lqrperiod 5
set cd 5
set dial
set login
set timeout 0
set authname xxxxxxxx # <-- xxxxxxxx 填入寬頻戶口名稱
set authkey xxxxxxxx # <-- xxxxxxxx 填入密碼
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
Step 4
改完以後重開機, 即可於FreeBSD 下使用PPPoE 寬頻上網.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
贊助商連結
撥號時會出現某一行錯誤的訊息,並無說明是語法錯或何種錯誤
小弟按照此篇做法去做~~Thank's~~~!!!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PPPoE for FreeBSD 安裝指南
開始安裝PPPoE for FreeBSD 寬頻上網程式前必須:
確定網路配接卡/Ethernet Card 已完成安裝.
確定所使用的ADSL Modem/ATM Bridge 已可正常通作.
各寬頻上網設備燈號表
相關內容:
寬頻軟件問題討論區
其他OS PPPoE 安裝指南
各PPPoE 寬頻服務Login ID
Step 1
首先更改 kernel 的設定檔以令FreeBSD 加入支援pppoe , 然後重新compile kernel.
加入下列三句指令
options NETGRAPH
options NETGRAPH_PPPOE
options NETGRAPH_SOCKET
Step 2
編輯 /etc/rc.conf, 加入以下幾行:
設定為開機能夠啟動 ppp 功能
network_interfaces="auto" # Set network interfaces automatically
ifconfig_ed0="inet 192.168.1.3 netmask 255.255.255.0 -arp up"
ppp_enable="YES" # This enables PPP on startup (recommended)
ppp_mode="background"
ppp_profile="pppoe"
Step 3
編輯 /etc/ppp/ppp.conf, 加入以下幾行:
這個檔案原先的內容是預設為撥號上網, 因此必須修改一些選項,包括"set device PPPoE:vr0"、mru、mtu、"add default HISADDR" 等.
default:
set log Phase Chat LCP IPCP CCP tun command
nat enable yes
nat same_ports yes
nat use_sockets yes
set redial 15 28800
set reconnect 15 28800
pppoe:
set device PPPoE:ed0: # ed0 此處填你對外網路卡的 device
set mru 1492
set mtu 1492
set speed sync
enable lqr
set lqrperiod 5
set cd 5
set dial
set login
set timeout 0
set authname xxxxxxxx # <-- xxxxxxxx 填入寬頻戶口名稱
set authkey xxxxxxxx # <-- xxxxxxxx 填入密碼
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
Step 4
改完以後重開機, 即可於FreeBSD 下使用PPPoE 寬頻上網.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
贊助商連結