[問題]freebsd 設定hinet計時制 pppoe - PCZONE 討論區

返回   PCZONE 討論區 > ▲ -- 電 腦 軟 體 討 論 區 > -- FreeBSD & Linux 討 論 版


PCZONE 討論區



通知

-- FreeBSD & Linux 討 論 版 因為本站採用 FreeBSD 作業系統,所以自己本身也多學了一些技巧,希望各位在這裡互相討論 Unix 作業系統及程式等相關問題。

會員
[問題]freebsd 設定hinet計時制 pppoe
哀 搞的我頭大....
看書設定
rc.conf
還有ppp.conf
但是都沒用......

我知道這問題很笨....但是沒辦法 硬著頭皮問
我的網路卡是3com 905c

我照書本裡面打的
ppp.conf
語法:
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:xl0: 
  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 我hinet帳號 
   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
rc.conf
語法:
network_interfaces="auto" 
  ifconfig_xl0="inet 10,0,0,1 netmask 255.0.0.0 -arp up" 
  ppp_enable="YES" 
  ppp_mode="ddial" 
  ppp_profile="pppoe" 
  defaultrouter="10.0.0.1" 
  gateway_enable="YES"
然後我打ppp pppoe

會出現
pppoe ON LOCALHOST>>
我就不知道要x嘛了....哀
請教教我吧~

回覆
會員

1. First you must change to the kernel configuration directory:

cd /usr/src/sys/i386/conf


2. In the kernel configuration directory, use your favorite text editor and
edit the
kernel file. For example, if you use emacs, you would type:

emacs KERNEL


3. Go to the end of the kernel file and add the following three lines:

options NETGRAPH
options NETGRAPH_PPPOE
options NETGRAPH_SOCKET


4. After adding these three lines, save the modified kernel file.
5. Type this command to set the kernel configuration:

config KERNEL


6. Now you must change to the kernel setup directory:

cd ../../compile/KERNEL


7. In the kernel setup directory, type the following three commands:

make depend
make
make install


Your kernel is now ready for PPPoE!

Configuring FreeBSD /etc/ppp/ppp.conf File
To edit the /etc/ppp/ppp.conf file, just use your favorite text editor.
Replace any existing file content with the lines below. Be sure the
"set device PPPoE:---" line is correct for your network interface
card. (We used ed1 for the NIC in this example.) Change the authname
and authkey to your sympatico user id (b1xxxxxx) and your password.


# /etc/ppp/ppp.conf

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:ed1:
set mru 1492
set mtu 1492
set speed sync
set speed sync
enable lqr
set lqrperiod 5
set cd 5
set dial
set login
set timeout 0
set authname [email protected]
set authkey yourpassword
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

# end of ppp configuration


Configuring FreeBSD /etc/rc.conf?File

The /etc/rc.conf file should be set up as follows for the ethernet interface
that goes to your DSL modem. (Again, this example uses ed1 for the NIC.)


# /etc/rc.conf
# /etc/rc.conf

network_interfaces="auto"巠 #Set network interfaces automatically
ifconfig_ed1="inet 10.0.0.1 netmask 255.0.0.0 -arp up"
ppp_enable="YES" #This enables PPP on startup (recommended)
ppp_mode="background"
ppp_profile="pppoe"

#end of?/etc/rc.conf


Rebooting the System

After you have compiled the kernel to support PPPoE and have edited
the /etc/ppp/ppp.conf and /etc/rc.conf files with the right configuration,
you can reboot your system. If you enabled ppp in the /etc/rc.conf as recommende
/etc/rc.conf file, you can use this command to connect to the Internet
manually:
.

vi /etc/rc.conf
ppp_enable="YES"
ppp_mode="ddial"
ppp_profile="pppoe"
試試看吧我朋友給我的,我還沒設過
回覆
會員

我解決了
原來是我新買的
3com 905c網路卡
根本是不能用....

害我搞半天
謝謝回覆~
回覆
獎金獵人

原本想說幫你一個忙得...

沒想到你已經OK姥...@@

之前我也常常有網路方面的困擾...

您有買那本黑色的書嗎?

回覆
主題工具


類似的主題
主題 主題作者 討論版 回覆 最後發表
【問題】TECOM WL5401 PPPoE 問題 ryoichi -- 網 路 硬 體 版 0 2009-02-07 04:56 PM
【教學】自動重撥 PPPoE ADSL 連線 (For Linux & FreeBSD) dekuo -- FreeBSD & Linux 討 論 版 17 2009-01-20 10:09 PM
PPPoE?? chuang7318 ---- ADSL 軟 硬 體 技 術 1 2002-01-23 06:46 PM
PPPoE 資料量會比固接的大嗎? yusiung ---- ADSL 軟 硬 體 技 術 2 2001-06-20 08:34 PM
PPPoE 何處可以下載呢? jecy ---- ADSL 軟 硬 體 技 術 1 2001-05-08 10:12 PM






 XML   RSS 2.0   RSS 
本站使用 vBulletin 合法版權程式
站務信箱 : [email protected]

本論壇所有文章僅代表留言者個人意見,並不代表本站之立場,討論區以「即時留言」方式運作,故無法完全監察所有即時留言,若您發現文章可能有異議,請 email :[email protected] 處理。