Hadyai Internet R&D LAB

แหล่งความรู้ => Server => Linux Server System => ข้อความที่เริ่มโดย: admin ที่ 30 เมษายน 2008, 03:20:37

หัวข้อ: การติดตั้ง PPPoE Server อย่างง่ายบน Ubuntu 7.10
เริ่มหัวข้อโดย: admin ที่ 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

เรียบร้อย
หัวข้อ: Re: การติดตั้ง PPPoE Server อย่างง่ายบน Ubuntu 7.10
เริ่มหัวข้อโดย: admin ที่ 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:~#