ข่าว: ข่าวประกาศ

  • 20 เมษายน 2024, 05:21:37

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น

ผู้เขียน หัวข้อ: การติดตั้ง PPPoE Server อย่างง่ายบน Ubuntu 7.10  (อ่าน 21510 ครั้ง)

admin

  • Administrator
  • Hero Member
  • *****
  • กระทู้: 3820
    • ดูรายละเอียด
    • อีเมล์
การติดตั้ง PPPoE Server อย่างง่ายบน Ubuntu 7.10
« เมื่อ: 30 เมษายน 2008, 03:20:37 »
โดยใช้โปรแกรม rp-pppoe เป็นตัวทำหน้าที่เป็น pppoe-server และใช้การ Authentication อ้างอิงจาก text file ซึ่งเป็นแบบง่าย ๆ โดยไม่ต้องใช้ RADIUS Server

ขั้นตอนการติดตั้ง

1. apt-get install pppoe

2. config /etc/ppp/options

lock
crtscts
nobsdcomp
nodeflate
nopcomp

3. config /etc/ppp/pppoe-server-options

auth
require-chap
default-mru
default-asyncmap
lcp-echo-interval 60
lcp-echo-failure 5
ms-dns a.b.c.d
ms-dns e.f.g.h
noipdefault
noipx
nodefaultroute
noproxyarp
noktune
netmask 255.255.255.255
logfile /var/log/pppd.log

4. config /etc/ppp/chap-secrets

ีuser1 * pass1 172.16.35.10

5. start your pppoe-server like this:

pppoe-server -I eth0 -L 10.0.0.1

เรียบร้อย
« แก้ไขครั้งสุดท้าย: 14 พฤษภาคม 2008, 14:11:56 โดย admin »
<a href="http://www.hadyaiinternet.com/images/inetcafe.swf" target="_blank" rel="noopener noreferrer" class="bbc_link bbc_flash_disabled new_win">http://www.hadyaiinternet.com/images/inetcafe.swf</a>

admin

  • Administrator
  • Hero Member
  • *****
  • กระทู้: 3820
    • ดูรายละเอียด
    • อีเมล์
Re: การติดตั้ง PPPoE Server อย่างง่ายบน Ubuntu 7.10
« ตอบกลับ #1 เมื่อ: 14 พฤษภาคม 2008, 14:10:41 »
ฝั่ง Server

root@server:/etc# ifconfig ppp0
ppp0      Link encap:Point-to-Point Protocol 
          inet addr:10.0.0.1  P-t-P:172.16.35.10  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:249 errors:0 dropped:0 overruns:0 frame:0
          TX packets:341 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:19668 (19.2 KB)  TX bytes:203692 (198.9 KB)

root@server:/etc#

ฝั่ง Client

root@client:~# ifconfig ppp0
ppp0      Link encap:Point-to-Point Protocol 
          inet addr:172.16.35.10  P-t-P:10.0.0.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:341 errors:0 dropped:0 overruns:0 frame:0
          TX packets:249 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:203692 (198.9 KB)  TX bytes:19668 (19.2 KB)

root@client:~#

<a href="http://www.hadyaiinternet.com/images/inetcafe.swf" target="_blank" rel="noopener noreferrer" class="bbc_link bbc_flash_disabled new_win">http://www.hadyaiinternet.com/images/inetcafe.swf</a>