2011年2月27日

ADSL

  • 安裝 pppoeconf

    # apt-get install pppoeconf

  • 執行 pppoeconf

    在console下打pppoeconf,輸入你的相關adsl設定資訊,最後回到終端機,再用pon dsl-provider,相信就可以連線adsl了。

  • 簡單的啟動 script

    建立一個內容如下的 script 檔案,我們姑且就取名為 adsl:

    #!/bin/bash

    case "$1" in
    start)
    echo "starting ADSL service"
    /usr/bin/pon dsl-provider
    ;;
    stop)
    echo "stop ADSL connection"
    /usr/bin/poff dsl-provider
    ;;
    restart)
    echo "Stop && Starting ADSL connetion"
    $0 stop
    $0 start
    ;;
    esac

    編寫完畢之後將它放到 /etc/init.d 底下,以後想要啟動 adsl 時就下以下指令:

    # /etc/init.d/adsl start

Ref:
1. http://people.debian.org.tw/~moto/debian/DebianLessPain/Debian-Install-Guide-15.html
2.http://jonny.ubuntu-tw.net/2008/08/networkpppoe-adsl.html
3.http://jonny.ubuntu-tw.net/2009/10/manual-pppoe-on-debian.html

沒有留言: