xujing1000 发表于 2013-10-10 21:12:20

先留个记号,放便下次来

guohegong 发表于 2013-10-31 10:15:59

/ip firewall address-list add address=192.168.1.0/24 disabled=no list=lanip

#Vlan
/interface vlan add name=vlan1 vlan-id=101interface=ether1
/interface vlan add name=vlan2 vlan-id=102interface=ether1

#Bridge
/interface bridge add admin-mac=51:5C:A0:2E:94:01   name=bridge1 disabled=no
/interface bridge port add bridge=bridge1 interface=vlan1 disabled=no
/interface bridge add admin-mac=25:15:E8:04:F1:02   name=bridge2 disabled=no
/interface bridge port add bridge=bridge2 interface=vlan2 disabled=no

:for i from=1 to=2 do= {interface pppoe-client add name=("pppoe-out".$i) user=$i password=$i disabled=noadd-default-route=nomax-mru=1480 max-mtu=1480 interface=("bridge".$i)}
#ADSL1
/ip firewall mangleadd action=mark-connection chain=prerouting disabled=no dst-address-type=!local new-connection-mark=1 passthrough=yes per-connection-classifier=both-addresses:2/0 src-address-list=lanipcomment="\CF\DF\C2\B71"
/ip firewall mangleadd action=mark-routing chain=prerouting connection-mark=1 disabled=no new-routing-mark=R1 passthrough=yes src-address-list=lanip
/ip route adddisabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=R1

#ADSL2
/ip firewall mangleadd action=mark-connection chain=prerouting disabled=no dst-address-type=!local new-connection-mark=2 passthrough=yes per-connection-classifier=both-addresses:2/1 src-address-list=lanipcomment="\CF\DF\C2\B72"
/ip firewall mangleadd action=mark-routing chain=prerouting connection-mark=2 disabled=no new-routing-mark=R2 passthrough=yes src-address-list=lanip
/ip route adddisabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=R2

:for i from=1 to=2 do= {ip route add dst-address=0.0.0.0/0 gateway=("pppoe-out".$i) routing-mark=("R".$i)}
/ip route add disabled=no distance=1 dst-address=0.0.0.0/0gateway=pppoe-out1

关于Vlan的ID是从101开始的,比如Vlan1 对应vlanID是101   ......      这个我没在vlan交换机上测试,请高手们测试下

ROS-PCC多线脚本生成器.rar
2012-11-23 22:48 上传
点击文件名下载附件


180.22 KB, 下载次数: 46

abcabc8759 发表于 2013-11-6 21:55:26

我是懒人先收下了

thesuntec 发表于 2014-7-29 08:17:07

好东西,有空试下.

bszhjy 发表于 2014-9-2 23:20:03

这个东西不错,简化操作,提个建议,在加上断线重拨修复

sjyharry 发表于 2014-9-4 07:48:28

多谢楼主分享,这个脚本很方便,省了不少功夫

yuanjing518 发表于 2015-3-16 18:40:37

顶一下先!!!

hutao0007 发表于 2015-5-15 13:12:14

只有拨号的生成脚本没固定IP的么?

alfhb 发表于 2015-5-16 17:23:05

不错的东东    收下了

guicai1888 发表于 2015-7-23 18:01:55

感谢楼主提供,正在寻找PCC代码

davidldh 发表于 2015-8-3 23:14:21

很给力,收下了,谢谢分享!

shgyunfei 发表于 2020-11-20 11:38:28

记得买过一次

sn7696 发表于 2021-1-8 12:54:57

支持一下!!

bm7abs 发表于 2021-3-2 17:48:53

感谢楼主及各位高手用心!
页: 1 2 3 [4]
查看完整版本: ROS-PCC多线脚本生成器