zhy2155537 发表于 2012-3-18 13:03:56

第一次发帖,甚是不懂,求解答,小生万分感激!

   条件:2条ADSL 4M 一条(不同端口,从电信盒子里接出来的)   ,刚恢复出厂设置的 ROS 5.14系统
做两条 pppoe PCC后 只有pppoe -out1 又流量出口,另一口无流量.



有图 有设置,求解答,小生万分感激!

zhy2155537 发表于 2012-3-18 13:05:44

本帖最后由 zhy2155537 于 2012-3-18 13:59 编辑

这是 使用的脚本设置   



/ip firewall mangle
add action=mark-connection chain=inputdisabled=no in-interface=pppoe-out1 new-connection-mark=pppoe-out1-conn \
    passthrough=yes
add action=mark-connection chain=inputdisabled=no in-interface=pppoe-out2 new-connection-mark=pppoe-out2-conn \
    passthrough=yes
add action=mark-routing chain=outputconnection-mark=pppoe-out1-conn disabled=no new-routing-mark=to-pppoe-out1 \
    passthrough=yes
add action=mark-routing chain=outputconnection-mark=pppoe-out2-conn disabled=no new-routing-mark=to-pppoe-out2 \
    passthrough=yes
add action=accept chain=preroutingdisabled=no dst-address-type=local in-interface=LAN
add action=accept chain=preroutingdisabled=no dst-address-type=local in-interface=LAN
add action=mark-connection chain=preroutingdisabled=no dst-address-type=!local in-interface=LAN new-connection-mark=\
    pppoe-out1-conn passthrough=yes per-connection-classifier=src-address-and-port:2/0
add action=mark-connection chain=preroutingdisabled=no dst-address-type=!local in-interface=LAN new-connection-mark=\
    pppoe-out2-conn passthrough=yes per-connection-classifier=src-address-and-port:2/1
add action=mark-routing chain=preroutingconnection-mark=pppoe-out1-conn disabled=no in-interface=LAN \
    new-routing-mark=to-pppoe-out1 passthrough=yes
add action=mark-routing chain=preroutingconnection-mark=pppoe-out2-conn disabled=no in-interface=LAN \
    new-routing-mark=to-pppoe-out2 passthrough=yes

/ ip route
add dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=to-pppoe-out1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=to-pppoe-out2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=pppoe-out1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=pppoe-out2 distance=2 check-gateway=ping

/ip firewall nat
add action=masquerade chain=srcnatdisabled=no out-interface=pppoe-out1
add action=masquerade chain=srcnatdisabled=no out-interface=pppoe-out2

zhy2155537 发表于 2012-3-18 13:06:58

因为 身在 异乡, 在线求 解决方案!! 不胜感谢!!

peckpock 发表于 2012-3-18 13:23:04

src-address-and-port

zhy2155537 发表于 2012-3-18 13:52:45

peckpock 发表于 2012-3-18 13:23 static/image/common/back.gif
src-address-and-port

请教 一下,这里该写成什么呢?

zhy2155537 发表于 2012-3-18 14:07:26

:(:(:(:(:(:(:(:(:(:(

zhy2155537 发表于 2012-3-18 15:09:29

:Q:Q:Q:Q:Q:Q:Q:Q

zhy2155537 发表于 2012-3-18 18:40:18

哎 ,沉了沉了:Q:Q

tangdong 发表于 2012-3-18 18:49:23

add action=mark-connection chain=preroutingdisabled=no dst-address-type=!local in-interface=LAN new-connection-mark=\
    pppoe-out1-conn passthrough=yes per-connection-classifier=src-address-and-port:2/0
add action=mark-connection chain=preroutingdisabled=no dst-address-type=!local in-interface=LAN new-connection-mark=\
    pppoe-out2-conn passthrough=yes per-connection-classifier=src-address-and-port:2/1
add action=mark-routing chain=preroutingconnection-mark=pppoe-out1-conn disabled=no in-interface=LAN \
    new-routing-mark=to-pppoe-out1 passthrough=yes
add action=mark-routing chain=preroutingconnection-mark=pppoe-out2-conn disabled=no in-interface=LAN \
    new-routing-mark=to-pppoe-out2 passthrough=yes


木有看到这几条规则,自己手动加上去

fandl 发表于 2012-3-18 22:02:05

本帖最后由 fandl 于 2012-3-18 22:04 编辑

增加楼上提到的。

再删了路由表里的第3、第4条。

zhy2155537 发表于 2012-3-18 23:40:58

谢谢各位啊,明天再试试啦!!
页: [1]
查看完整版本: 第一次发帖,甚是不懂,求解答,小生万分感激!