zjs100 发表于 2006-12-1 16:51:07

快速建立PPPoe服务器脚本---脚本的风采

1、先要对ROS进行复位(以后你想再入什么再加了)
2、将脚本通过FTP复制进ROS
3、在ROS端输入im pppoe.rsc
这样就成功建立了你的ppoe服务器了

注:要先对脚本进行修改喔!以下是脚的样本
/ip address
add address=10.0.0.223/24 interface=ether1
#加入外网的IP:10.0.0.223地址在ether1的网卡上
/ip pool
add name=mypool ranges=192.168.0.2-192.168.0.254
#增加PPPoe服务的地址池
/ppp profile
add name="myserver" local-address=192.168.0.1 remote-address=mypool use-compression=default use-vj-compression=default \
    use-encryption=default only-one=default change-tcp-mss=default rate-limit=512k/2048k comment=""
#增加PPPoe服务地址192.168.0.1,并设置上/下行的速度512k/2048k,要多个组就自己复制后,自己改了。
/ppp secret
add name=abc password=111 service=pppoe profile=myserver
#增加PPPoe用户的用户名aaa和密码111,所属的服务组为myserver,要多个用户就自己复制后,自己改了。
/ interface pppoe-server server
add service-name="mypppoe" interface=ether2 max-mtu=1480 max-mru=1480 \
    authentication=pap,chap,mschap1,mschap2 keepalive-timeout=10 \
    one-session-per-host=no max-sessions=0 default-profile=myserver \
    disabled=no
#建立PPPoe服务
/ ip firewall nat
add chain=srcnat out-interface=ether1 action=masquerade comment="" disabled=no
#进行NAT地址转换,网卡是ether1
/ ip route
add dst-address=0.0.0.0/0 gateway=10.0.0.222 scope=255 target-scope=10 \
    comment="added by setup" disabled=no
#设置网关10.0.0.222

[ 本帖最后由 cracks 于 2007-11-4 12:51 编辑 ]

cracks 发表于 2007-11-4 12:51:07

学习..........

ywboy 发表于 2008-4-10 21:12:48

学习一下

chen200200 发表于 2008-9-11 12:35:09

gsdfgds

dassgsdfgsdfgsdf

chen200200 发表于 2008-9-11 12:42:32

fasdfs

fasfasfasfasdfas

网络-浪子 发表于 2008-9-11 17:53:22

把简单的事情搞复杂了

haoboss 发表于 2008-9-12 01:24:04

学习一下 :)

nhao 发表于 2008-9-13 18:45:36

虽然不知道如何用,顶先,谢谢楼主!!!

jjmmily 发表于 2008-9-13 19:20:25

第一次使用用这脚本很不错的。。

某天某人 发表于 2008-9-18 21:21:32

一会试试

lydiypt 发表于 2008-9-23 03:24:46

怎么复位

zwj.cn 发表于 2008-9-23 11:22:58

顶 需要

lzj5623 发表于 2008-9-23 20:34:59

学习!!!:lol
页: [1]
查看完整版本: 快速建立PPPoe服务器脚本---脚本的风采