找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2702|回复: 1

[负载平衡] 请高手指教

[复制链接]
发表于 2011-1-14 15:22:51 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
这样做负载均衡有问题吗?请高手指教
/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


routeros
 楼主| 发表于 2011-1-14 15:33:46 | 显示全部楼层
回复 freeskyre 的帖子

我两条带宽 一条60M 一条30M 这样设置会有问题吗
routeros
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-5-18 07:18 , Processed in 0.094538 second(s), 5 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表