電訊茶室's Archiver

角色 發表於 2013-3-10 01:10

【RouterOS】——PPPoE Server

[i=s] 本帖最後由 角色 於 2013-3-10 17:30 編輯 [/i]

为了建立一个PPPoE Server的环境,以方便后面的文章编写(PPPoE Client),所以在这方面下点功夫。

Literature Search:

在官网【1】关于PPPoE Server的建立有描述,但是这个章节里只说怎样建立,却没有说其他要注意的地方,就算跟做,不成功的机会率很高,因为它没有说明其他的模块,如WAN,Firewall,NAT等等。其他文章如【2,3】都是这样。而在【4】有简单说整个的PPPoE server,PC连接后怎样上网。在文章中【5】,可以看到最简单的PPPoE Server的建立。在【7-9】整台系统(WAN,NAT,Firewall)写的比较清晰,还有在计费方面都有描述。

References:
【1】[url]http://wiki.mikrotik.com/wiki/Manual:Interface/PPPoE[/url]
【2】[url]http://www.office80.com/HPFFiles/20100609/5CE0F494-7C4C-44A4-B7F5-499E54794A72-2010060909173.Html[/url]
【3】[url]http://linux.net527.cn/Linuxwendang/Freebsd/43006.html[/url]
【4】[url]http://blog.nirkabel.org/2007/05/29/pppoe-server-howto-for-mikrotik-routeros-29/[/url]
【5】[url]http://seoroot.com/blog/networking/setting-up-mikrotik-pppoe-server.html[/url]
【6】[url]http://blog.cscworm.net/?p=2408[/url]
【7】[url]http://mikrotikservers.blogspot.hk/2012/05/mikrotik-pppoe-server-with-user-manager.html[/url]
【8】[url]http://blog.163.com/szy8706@yeah/blog/static/62713185201272441120229/[/url]

角色 發表於 2013-3-10 01:11

[i=s] 本帖最後由 角色 於 2013-3-30 10:31 編輯 [/i]

经过Literature search后,定下目标为:

1. 建立WAN port
2. 建立LAN port
3. 建立Firewall
4. 建立NAT
5. 建立PPPoE Server (看8#帖子)

整套系统建立好后,用电脑和router,可以拨号上网。

角色 發表於 2013-3-10 02:14

备用帖子

角色 發表於 2013-3-10 15:45

在还没有设置PPPoE Server是,是否把某一个DHCP interface变成PPPoE server port呢?例如我们的default router IP 段是192.168.88.0/24, 那么那个port是用static ip,然后通过它来做PPPoP IP Pool呢?

角色 發表於 2013-3-29 22:46

不知道member是否有用过RB做PPPoE Server呢?

角色 發表於 2013-3-29 22:46

不知道member是否有用过RB做PPPoE Server呢?

怎样做都不成功。:L

角色 發表於 2013-3-29 23:11

[i=s] 本帖最後由 角色 於 2013-3-29 23:46 編輯 [/i]

最后都终于成功了。

题外话, 如果不是搞什么pool,好想这个比较简单:
[url]http://www.mikrotik.com/documentation/manual_2.5/Interface/PPPoE.html[/url]

角色 發表於 2013-3-30 10:05

[i=s] 本帖最後由 角色 於 2013-3-30 10:24 編輯 [/i]

Objective: How to make the interface ether10 become a PPPoE Server port?

Procedures:

1a) Remove the relationship between the ether10-slave-local to ether6-master-local
1b) Rename interface name to "ether10-pppoe-s"

winbox: Interface

Double click ether10-slave-local and modify as shown in Figure 1 with the following changes

Name: ether10-pppoe-s
Master Port: none

[attach]2368[/attach]
Figure 1: Changes on name and master port

2. Create pppoe-pool

winbox: IP->Pools->+

a) To give a name of the ip pool = pppoe-pool
b) Set ip pool range = 192.168.44.10-192.168.44.254


[attach]2369[/attach]
Figure 2

3) Create PPPoE Server on Interface ether10-pppoe-s

winbox: PPP

a) Click [Interface], press + and select PPPoE Server

[attach]2370[/attach]
Figure 3

4) Define PPP Profile

winbox: PPP->Profiles->+


[attach]2371[/attach]
Figure 4

5) Define PPPoE login credential

[attach]2372[/attach]
Figure 5

6) Set PPPoE Server,

[attach]2373[/attach]
Figure 6

頁: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.