双线分流
两条外网线,一条60M,一条30M,这样设置有问题吗/ip address
add address=10.255.6.1/28 broadcast=\
10.255.6.15 comment="" disabled=no \
interface=LAN network=10.255.6.0
add address=122.200.79.2/30 broadcast=\
122.200.79.3 comment="" disabled=no \
interface=hjsz network=122.200.79.0
add address=221.122.28.2/29 broadcast=\
221.122.28.0 comment="" disabled=no \
interface=xyht network=221.122.28.3
/ip route
add comment="" disabled=yes distance=1 \
dst-address=0.0.0.0/0 gateway=\
122.200.79.1 routing-mark=1 scope=30 \
target-scope=10
add comment="" disabled=yes distance=1 \
dst-address=0.0.0.0/0 gateway=221.122.28.1 \
routing-mark=2 scope=30 target-scope=10
/interface ethernet
set 0 arp=enabled auto-negotiation=yes \
cable-settings=default comment="" \
disable-running-check=yes disabled=no \
full-duplex=yes mac-address=\
90:E6:BA:1A:9A:56 mtu=1500 name=LAN speed=\
100Mbps
set 1 arp=enabled auto-negotiation=yes \
cable-settings=default comment="" \
disable-running-check=yes disabled=no \
full-duplex=yes mac-address=\
00:02:B3:B3:8E:75 mtu=1500 name=wan2 \
speed=100Mbps
set 2 arp=enabled auto-negotiation=yes \
cable-settings=default comment=\
"\D0\C5\D3\AF\BA\E3\CC\A9" \
disable-running-check=yes disabled=no \
full-duplex=yes mac-address=\
1C:AF:F7:64:51:86 mtu=1500 name=wan1 \
speed=100Mbps
/ip firewall nat
add action=src-nat chain=srcnat comment=1 \
connection-mark=1 disabled=yes \
to-addresses=122.200.79.2
add action=src-nat chain=srcnat comment=2 \
connection-mark=2 disabled=yes \
to-addresses=221.122.28.2
/ip firewall mangle
add action=mark-connection chain=prerouting \
comment=1 connection-state=new disabled=\
yes in-interface=LAN new-connection-mark=1 \
nth=1,0 passthrough=yes
add action=mark-routing chain=prerouting \
comment="" connection-mark=1 disabled=yes \
in-interface=LAN new-routing-mark=1 \
passthrough=yes
add action=mark-connection chain=prerouting \
comment=2 connection-state=new disabled=\
yes in-interface=LAN new-connection-mark=2 \
nth=1,1 passthrough=yes
add action=mark-routing chain=prerouting \
comment="" connection-mark=2 disabled=yes \
in-interface=LAN new-routing-mark=2 \
passthrough=yes
add action=change-mss chain=forward comment="" \
disabled=yes new-mss=1480 protocol=tcp \
tcp-flags=syn
add action=accept chain=prerouting comment="" \
disabled=yes
你这2条线是一个运营商吗?如果是,你一条30一条60,你就把你下面的客户数量分成3份,按1:2的比例分标记走这2条线,你这样带宽利用最合理。 如果不是,要做策略,:victory: 回复 zooyo 的帖子
没法分配用户,他们上网的时间不确定,我以前就是这样分做标记得,但每天的需要人调,要不就一条堵死一条空闲 回复 qinfei 的帖子
怎样做策略啊 这么说不是同一个运营商?脚本生成器就有,直接生成脚本
页:
[1]