各位老大,帮我看看下面的代码做的双线有什么缺点不?
本帖最后由 cow_boys 于 2010-8-28 13:53 编辑/ip firewall mangle
add action=mark-connection chain=prerouting comment=nth_1 connection-state=\
new disabled=no new-connection-mark=nth_1 nth=2,1 passthrough=yes \
src-address=192.168.1.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=nth_1 \
disabled=no new-routing-mark=routing_1 passthrough=no src-address=\
192.168.1.0/24
add action=mark-connection chain=prerouting comment=nth_2 connection-state=\
new disabled=no new-connection-mark=nth_2 passthrough=yes src-address=\
192.168.1.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=nth_2 \
disabled=no new-routing-mark=routing_2 passthrough=no src-address=\
192.168.1.0/24
/ip firewall nat
add action=masquerade chain=srcnat comment=1 connection-mark=nth_1 disabled=\
no out-interface=pppoe-out1
add action=masquerade chain=srcnat comment=2 connection-mark=nth_2 disabled=\
no out-interface=pppoe-out2
/ip route
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
pppoe-out1 routing-mark=routing_1
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
pppoe-out2 routing-mark=routing_2
请教各位老大,这样做的双线:
1。QQ、MSN会每隔一段时间掉线不?
2。万一掉了一线,会断线不?
3。为什么标记nth_2那段不需要设nth值??
我原来是直接在默认路由的Gateway Interface设定pppoe-out1,pppoe-out2,实现的双线,ROS自动分配出口给客户机,但发现QQ,MSN每隔一段时间掉线,上网查过,这方法处理UDP数据包,一会走网关1,一会走网关2,所以掉线。所以想换上面的方法。 做pcc 做pcc
页:
[1]