1. Skip to Menu
  2. Skip to Content
  3. Skip to Footer>

พื้นที่ลงโฆษณา

Thin Client Server

พื้นที่ลงโฆษณา

Linux Authentication

พื้นที่ลงโฆษณา

PPPoE

PDF Print E-mail

Written by Mr. Sontaya Photibut Saturday, 02 May 2009 16:08

การติดตั้ง PPPoE (Point to Point Protocol over Ethernet)

อุปกรณ์:

    ZyXEL PRESTIGE 600

    PC Linux Server

    ISP : TOT

 IP Adress:                         eth0 : 192.168.1.13

                                   eth1 : 192.168.250.3

                                   ZyXEL PRESTIGE 600 Modem : 192.168.250.1

Install Software (YaST)

  •  

      # pppoe-setup

  • # tar -zxvf rp-pppoe-3.8.tar.gz

    # cd rp-pppoe-3.8

    # cd src

    # ./configure

    # make

    # make install

    สร้าง Connection ADSL และ คอนฟิกค่าต่าง ดั่งนี้

 
Login Name

    Enter your Login Name (default root): Name Account From ISP

    (ขึ้นอยู่กับ ISP ที่ใช้)

    Interface

    (defualt eth0) : eth1 (Interface ที่ต่อเข้า Modem)

    DNS

    - Enter the DNS information here : 192.168.1.13  (ในกรณีที่เครื่องของคุณทำหน้าที่เป็น DNS Server

    ด้วยเลยใส่ 192.168.1.13 ถ้าไม่ได้ติดตั้ง DNS ก็ให้ใส่ IP Address DNS ของ ISP)

    (ถ้าเครื่องของถุณทำหน้าที่เป็น DNS Server อยู่แล้วก็ใส่ IP Address ได้เลย ในที่นี้ใส่ 192.168.1.13) 

    Password

    - Please Enter your Password : เบอร์โทรศัพ์คุณ

    - Please re-enter your Passowrd : เบอร์โทรศัพ์คุณ

    Userctrl

    - (default yer) : Enter

    Firewall

    - Choose a type of firewall (0-2) : 2

    - Do you want to start this connection at boot time ?

      Please enter no or yes (default no) : Enter

    ทำการ Start PPPoE เพื่อหมุนโมเด็ม ใช้คำสั่ง

    # pppoe-connect

    ใช้คำสั่ง ifconfig เพื่อดูว่าสร้าง connection ได้หรือไม่

    # ifconfig -a

    Create init.d (เพื่อที่จะให้ connect internet ตอน Start Server)

    # vim /etc/init.d/pppoe

    #!/bin/sh
    # Script by Mr. Sontaya Photibut
    #Tweak this
    restart_time=120

    #From AUTOCONF
    prefix=/usr
    exec_prefix=${prefix}

    #Paths to programs
    PPPoE_Start=${exec_prefix}/sbin/pppoe-start
    PPPoE_Stop=${exec_prefix}/sbin/pppoe-stop
    PPPoE_Status=${exec_prefix}/sbin/pppoe-status

    test -x "$PPPoE_Start" || exit 5

    #Shell functions sourced from /etc/rc.status:
    . /etc/rc.status

    #First reset status of this service
    rc_reset

    case "$1" in
            start)
                    echo -n "Bringing up PPPoE link"
                            startproc -sq $PPPoE_Start
                            rc_status -v
                    ;;
            stop)
                    echo -n "Shutting down Bringing up PPPoE link"
                    killproc -TERM $PPPoE_Stop
                    rc_status -v
                    ;;
            restart)
                    $0 stop
                    $0 start
                    rc_status
                    ;;
                                                                                          

            reload)
                    echo -n "Reload service PPPoE"
                    rc_failed 3
                    rc_status -v
                    ;;
            status)
                    echo -n "Checking for PPPoE link:"
                    checkproc $PPPoE_Status
                    rc_status -v
                    ;;
            *)
                    echo "Usage: $0 {start|stop|status|restart|force-reload|reload}"
                    exit 1
                    ;;
            esac
            rc_exit
     
    Save

    # chmod 744 /etc/init.d/pppoe

    Run Level
     
    # yast runlevel

    - Enable pppoe Service

    Command

    # pppoe-connect
     
    # pppoe-status

    # pppoe-stop

    Check connection

    # ifconfig

    eth0      Link encap:Ethernet  HWaddr 00:17:31:C0:8F:EC
              inet addr:192.168.250.13  Bcast:192.168.250.255  Mask:255.255.255.0
              inet6 addr: fe80::217:31ff:fec0:8fec/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:107815 errors:0 dropped:0 overruns:0 frame:0
              TX packets:90542 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:103678478 (98.8 Mb)  TX bytes:13183609 (12.5 Mb)
              Interrupt:209 Base address:0xa000

    eth1      Link encap:Ethernet  HWaddr 00:15:E9:F0:66:85
              inet addr:192.168.1.13  Bcast:192.168.1.255  Mask:255.255.255.0
              inet6 addr: fe80::215:e9ff:fef0:6685/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:210791 errors:0 dropped:0 overruns:0 frame:0
              TX packets:160863 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:64254641 (61.2 Mb)  TX bytes:141437705 (134.8 Mb)
              Interrupt:58 Base address:0x2000

    ppp0      Link encap:Point-to-Point Protocol
              inet addr:125.24.135.122  P-t-P:125.24.128.1  Mask:255.255.255.255
              UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
              RX packets:97150 errors:0 dropped:0 overruns:0 frame:0
              TX packets:81425 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:3
              RX bytes:92607673 (88.3 Mb)  TX bytes:10461040 (9.9 Mb)

     

    Note : 

*** Ask your DSL ISP Provider if it uses non-standard PPPoE frames

*** Fon Dynamic IP Address use get a new IP Address # /etc/ppp/ip-up

*** file configurations /etc/ppp/pap-secrets and /etc/ppp/chap-secrets

*** Hang up by killing the ppp daemon or using the following command: ifdown ppp0


     



 

 

   



Comments (0)Add Comment

Write comment

security code
Write the displayed characters


busy
 

SUSE Linux Enterprise Cool Solutions

  • Watch the future of Retail

    On YouTube I've published a three-part video of a presentation I did in early July 2010 to IBM retail partners. The sound volume is a bit low, and this was all recorded with a little flip mino camera, so please excuse the bad quality.

    The three video snippets are mainly intended for any of you who want to use Linux in retail as a solution provider and are wondering how solutions from Novell can help you be more successful.

    Nevertheless, especially the first part about how we see the future of the Point of Service might also be interesting to you if you are a decision maker in retail or just curious about how the future in retail IT may look like.

    The new features in SUSE Linux Enterprise Point of Service 11 Service Pack 1 are only mentioned briefly in this presentation. Watch out for more blog posts to come on Service Pack 1.

    This is Joachim Werner blogging live from the SUSE offices in Nuremberg, Germany.

    http://www.youtube.com/watch?v=WdYEeLIou7s
    http://www.youtube.com/watch?v=3Awr3tPpo2Y
    http://www.youtube.com/watch?v=pwwKpoEI9GI

  • Create an Appliance with SUSE Studio -- you could win $10,000

    They're looking for inventive minds to build the most innovative software appliances. Publish your unique appliance to the new SUSE® Gallery™ and enter into a contest to win $10,000!

    The contest runs from July 27 - September 30, 2010, so brush off your mad skills and pop on over here for all the details.

    It must not be too hard.... in the past year, more than 400,000 Linux appliances were built using SUSE Studio, with nearly 3 million downloads. SUSE Gallery is the place to strut your stuff and show off the appliances you have built with SUSE Studio. It also serves as a centralized online showcase where SUSE Studio users can browse and use both commercial and community-oriented appliances.

    Good luck! Make Cool Solutions proud.

  • See us at SHARE, Boston!

    The next SHARE event is approaching quickly - it takes place in Boston from August 1-5 at Hynes Convention Center: http://www.share.org/Events/UpcomingConference/tab...

    If you are attending, don´t miss the chance to meet our experts for System z, and visit us at Booth #319. To name just a few, watch out for Kim Lorusso (IBM Alliance Marketing Manager and Cool Blogger), Patrick Quairoli (Technical Alliance Manager), Marcus Kraft (Linux on mainframe "pioneer" and Product Manager for SUSE Linux Enterprise Server for System z), David Getzin (Partner Executive for IBM), John Jolly (Sys z Architect), and others. Chat with them about the SUSE Linux Enterprise Consolidation Suite tailored for IBM Solution Edition for Enterprise Linux. Don´t know what that is? Read more here: http://www.novell.com/products/systemz/els.html
    And get the latest about the new zEnterprise System - you bet that will be one of the "ruling" topics.

    Or listen to Mike Friesenegger, one of our most experienced Technical Specialists, when he talks about "ASP.NET on zLinux: A New Workload" (Tues Aug 3, 9:30-10:30AM, Room 305) and about how to " Implement the SUSE Linux Enterprise High Availability Extension on System z" (Tues Aug 3, 11AM-12PM, Room 208). And you´ll have the opportunity to hear from customers like Nationwide Insurance why and how they use SLES for System z.

    And as a side note - for those who have travel constraints and cannot attend personally, SHARE offers the option to participate online - just check out http://www.share.org/Events/UpcomingConference/SHA...

  • IBM zEnterprise System - Get the hard facts

    This week on Thursday IBM made a ground-breaking announcement about the revolutionary zEnterprise System - you might have read my article here on Cool Solutions:
    http://www.novell.com/communities/node/11670/ibm-f...

    Curious now about getting details and some hard facts? Just download the data sheet from IBM and see how it works. Want to discuss how this new system relates to SUSE Linux Enterprise ? Leave a comment or drop me an email at chabow@novell.com

    AttachmentSize
    11394070.pdf385.48 KB
  • What do you think about this country/language selector?

    The web team at Novell is tweaking the way people choose the language they want to read the website in. (Of course, this doesn't affect this communities section, which is only provided in English. But it does affect a lot of the marketing pages on novell.com. )

    We'd like your feedback, especially if you like to read the rest of Novell.com in a language other than English. Take a look at this design, and let us know what you think by posting comments.

    Thanks for your input!

    View design here.

Sponsors List