RouterOS PPPOE Server 服务器设置

来源:互联网 发布:乐高机器人软件 编辑:程序博客网 时间:2024/06/03 17:56
 

实现要求,用RouterOS架设PPPOE Server服务


PPPoE服务名称:PPPoE_Server (多个服务器请勿重复)

拨号网卡:ether1 (设置PPPoE通过拨号服务的网卡)

IP地址池:10.119.99.2-10.119.99.62 设置连接PPPoE服务器的客户端IP地址池(此IP地址池建议不要与局域网IP段一致,否则出错)

PPPoE网关:10.119.99.1 (即PPPoE客户端获取IP时的网关地址,也可以设置为IP地址池的名称,即IP和网关加减1)

首选DNS:202.96.104.1
备用DNS:202.96.104.2

IP地址池名称:PPPoE_Pool (设置多个PPPoE服务时标识不能重复)

模板标识:PPPoE_Profile (设置多个PPPoE服务时模板标识不能重复)

PPPoE客户端限速 上传:512k 下载:1M

空闲超时:00:05:00 连接超时:00:00:30

使用压缩 使用VJ压缩 使用加密

一个帐号只能一个用户登陆


先建立拨号地址池 地址池范围:10.119.99.2-10.119.99.62


新建立一个PPPOE Server服务,名称为:PPPOE_Server


建立PPPOE Profile,属性看我红框中的值


添加PPPOE 拨号帐户,当然如果你帐号多,手工添加麻烦,可以用脚本批量添加,代码如下


/ ppp secret add name="adsl1" password="123456" service=pppoe profile=PPPoE_Profile

/ ppp secret add name="adsl2" password="123456" service=pppoe profile=PPPoE_Profile

/ ppp secret add name="adsl3" password="123456" service=pppoe profile=PPPoE_Profile

/ ppp secret add name="adsl4" password="123456" service=pppoe profile=PPPoE_Profile

/ ppp secret add name="adsl5" password="123456" service=pppoe profile=PPPoE_Profile

/ ppp secret add name="adsl6" password="123456" service=pppoe profile=PPPoE_Profile

/ ppp secret add name="adsl7" password="123456" service=pppoe profile=PPPoE_Profile

/ ppp secret add name="adsl8" password="123456" service=pppoe profile=PPPoE_Profile

/ ppp secret add name="adsl9" password="123456" service=pppoe profile=PPPoE_Profile



到此就基本完成架设了,

原创粉丝点击