[問題]freebsd 設定hinet計時制 pppoe

顯示結果從第 1 筆 到 4 筆,共計 4 筆
  1. #1
    會員 frank214 的大頭照
    註冊日期
    2002-04-24
    討論區文章
    23

    [問題]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嘛了....哀
    請教教我吧~



  2. #2
    會員 DiCkMan 的大頭照
    註冊日期
    2002-03-24
    討論區文章
    715
    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"
    試試看吧我朋友給我的,我還沒設過

  3. #3
    會員 frank214 的大頭照
    註冊日期
    2002-04-24
    討論區文章
    23
    我解決了
    原來是我新買的
    3com 905c網路卡
    根本是不能用....

    害我搞半天
    謝謝回覆~

  4. #4
    獎金獵人
    註冊日期
    2002-02-08
    討論區文章
    2,184
    原本想說幫你一個忙得...

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

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

    您有買那本黑色的書嗎?

類似的主題

  1. 已經申請到Hinet計時制固定ip,如何架站?
    作者:calihong 所在討論版:☉ -- 架 站 DIY 討 論 版
    回覆: 11
    最後發表: 2005-08-21, 01:58 AM
  2. 【問題】請問HINET ADSL計時制
    作者:oldlabel 所在討論版:---- ADSL 軟 硬 體 技 術
    回覆: 1
    最後發表: 2002-04-02, 09:53 AM
  3. 【求助】請問有人用ip分享器成功設定hinet 計時制adsl嗎?
    作者:collard 所在討論版:-- 網 路 硬 體 版
    回覆: 4
    最後發表: 2002-03-01, 10:41 AM
  4. HiNet計時制
    作者:tonylee362 所在討論版:---- ADSL 抱 怨 與 鼓 勵
    回覆: 0
    最後發表: 2001-08-06, 05:38 PM
  5. ADSL計時制(HiNet)需設定...............
    作者:apaul 所在討論版:---- ADSL 軟 硬 體 技 術
    回覆: 1
    最後發表: 2001-02-22, 04:50 PM

 

freebsd pppoe hinet 架站

發表文章規則

  • 不可以發表新主題
  • 不可以回覆文章
  • 不可以上傳附加檔案
  • 不可以編輯自己的文章
  •