找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2646|回复: 12

[负载平衡] 求教6条2MADSL+10M光纤固定IP PCC解决方案

  [复制链接]
发表于 2011-4-24 10:30:48 | 显示全部楼层 |阅读模式

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

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

×
1.jpg
小弟原用6条2MADSL宽带上网 带50台用户 因考虑到晚上流量比较大的时候会出现带宽不够的问题,准备拉一条10M光纤
想请问一下PCC负载叠加怎么做?
routeros
发表于 2011-4-24 11:25:14 | 显示全部楼层
强,小弟刚装的adsl老是拨号不上,日志提示LCP lowerdown
routeros
回复

使用道具 举报

发表于 2011-4-24 11:39:48 | 显示全部楼层
AD跑tcp,光纤跑默认路由
routeros
回复

使用道具 举报

 楼主| 发表于 2011-4-24 14:25:36 | 显示全部楼层
有方案脚本吗?
routeros
回复

使用道具 举报

 楼主| 发表于 2011-4-24 16:19:56 | 显示全部楼层
/ip firewall mangle
add action=change-mss chain=forward comment="" disabled=no new-mss=1440 protocol=tcp tcp-flags=syn

add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out1 new-connection-mark=pppoe-out1_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out2 new-connection-mark=pppoe-out2_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out3 new-connection-mark=pppoe-out3_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out4 new-connection-mark=pppoe-out4_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out5 new-connection-mark=pppoe-out5_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out6 new-connection-mark=pppoe-out6_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out7 new-connection-mark=pppoe-out7_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out8 new-connection-mark=pppoe-out8_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=no in-interface=pppoe-out9 new-connection-mark=pppoe-out9_conn passthrough=yes

add action=mark-routing chain=output comment="" connection-mark=pppoe-out1_conn disabled=no new-routing-mark=to_pppoe-out1 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=pppoe-out2_conn disabled=no new-routing-mark=to_pppoe-out2 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=pppoe-out3_conn disabled=no new-routing-mark=to_pppoe-out3 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=pppoe-out4_conn disabled=no new-routing-mark=to_pppoe-out4 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=pppoe-out5_conn disabled=no new-routing-mark=to_pppoe-out5 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=pppoe-out6_conn disabled=no new-routing-mark=to_pppoe-out6 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=pppoe-out7_conn disabled=no new-routing-mark=to_pppoe-out7 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=pppoe-out8_conn disabled=no new-routing-mark=to_pppoe-out8 passthrough=yes
add action=mark-routing chain=output comment="" connection-mark=pppoe-out9_conn disabled=no new-routing-mark=to_pppoe-out9 passthrough=yes

add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=LAN new-connection-mark=pppoe-out1_conn passthrough=yes per-connection-classifier=both-addresses:9/0 src-address=192.168.90.0/24
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=LAN new-connection-mark=pppoe-out2_conn passthrough=yes per-connection-classifier=both-addresses:9/1 src-address=192.168.90.0/24
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=LAN new-connection-mark=pppoe-out3_conn passthrough=yes per-connection-classifier=both-addresses:9/2 src-address=192.168.90.0/24
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=LAN new-connection-mark=pppoe-out4_conn passthrough=yes per-connection-classifier=both-addresses:9/3 src-address=192.168.90.0/24
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=LAN new-connection-mark=pppoe-out5_conn passthrough=yes per-connection-classifier=both-addresses:9/4 src-address=192.168.90.0/24
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=LAN new-connection-mark=pppoe-out6_conn passthrough=yes per-connection-classifier=both-addresses:9/5 src-address=192.168.90.0/24
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=LAN new-connection-mark=pppoe-out7_conn passthrough=yes per-connection-classifier=both-addresses:9/6 src-address=192.168.90.0/24
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=LAN new-connection-mark=pppoe-out8_conn passthrough=yes per-connection-classifier=both-addresses:9/7 src-address=192.168.90.0/24
add action=mark-connection chain=prerouting comment="" disabled=no dst-address-type=!local in-interface=LAN new-connection-mark=pppoe-out9_conn passthrough=yes per-connection-classifier=both-addresses:9/8 src-address=192.168.90.0/24

add action=mark-routing chain=prerouting comment="" connection-mark=pppoe-out1_conn disabled=no in-interface=LAN new-routing-mark=to_pppoe-out1 passthrough=yes src-address=192.168.90.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=pppoe-out2_conn disabled=no in-interface=LAN new-routing-mark=to_pppoe-out2 passthrough=yes src-address=192.168.90.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=pppoe-out3_conn disabled=no in-interface=LAN new-routing-mark=to_pppoe-out3 passthrough=yes src-address=192.168.90.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=pppoe-out4_conn disabled=no in-interface=LAN new-routing-mark=to_pppoe-out4 passthrough=yes src-address=192.168.90.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=pppoe-out5_conn disabled=no in-interface=LAN new-routing-mark=to_pppoe-out5 passthrough=yes src-address=192.168.90.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=pppoe-out6_conn disabled=no in-interface=LAN new-routing-mark=to_pppoe-out6 passthrough=yes src-address=192.168.90.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=pppoe-out7_conn disabled=no in-interface=LAN new-routing-mark=to_pppoe-out7 passthrough=yes src-address=192.168.90.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=pppoe-out8_conn disabled=no in-interface=LAN new-routing-mark=to_pppoe-out8 passthrough=yes src-address=192.168.90.0/24
add action=mark-routing chain=prerouting comment="" connection-mark=pppoe-out9_conn disabled=no in-interface=LAN new-routing-mark=to_pppoe-out9 passthrough=yes src-address=192.168.90.0/24


/ip route
add comment=1 disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=to_pppoe-out1 check-gateway=ping
add comment=2 disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=to_pppoe-out2 check-gateway=ping
add comment=3 disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out3 routing-mark=to_pppoe-out3 check-gateway=ping
add comment=4 disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out4 routing-mark=to_pppoe-out4 check-gateway=ping
add comment=5 disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out5 routing-mark=to_pppoe-out5 check-gateway=ping
add comment=6 disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out6 routing-mark=to_pppoe-out6 check-gateway=ping
add comment=7 disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out7 routing-mark=to_pppoe-out7 check-gateway=ping
add comment=8 disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out8 routing-mark=to_pppoe-out8 check-gateway=ping
add comment=9 disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\10.0.0.1 routing-mark=to_pppoe-out9 check-gateway=ping

add check-gateway=ping comment="pppoe-out1" disabled=no distance=10 dst-address=0.0.0.0/0 gateway=pppoe-out1
add check-gateway=ping comment="pppoe-out2" disabled=no distance=10 dst-address=0.0.0.0/0 gateway=pppoe-out2
add check-gateway=ping comment="pppoe-out3" disabled=no distance=10 dst-address=0.0.0.0/0 gateway=pppoe-out3
add check-gateway=ping comment="pppoe-out4" disabled=no distance=10 dst-address=0.0.0.0/0 gateway=pppoe-out4
add check-gateway=ping comment="pppoe-out5" disabled=no distance=10 dst-address=0.0.0.0/0 gateway=pppoe-out5
add check-gateway=ping comment="pppoe-out6" disabled=no distance=10 dst-address=0.0.0.0/0 gateway=pppoe-out6
add check-gateway=ping comment="pppoe-out7" disabled=no distance=10 dst-address=0.0.0.0/0 gateway=pppoe-out7
add check-gateway=ping comment="pppoe-out8" disabled=no distance=10 dst-address=0.0.0.0/0 gateway=pppoe-out8
add check-gateway=ping comment="pppoe-out9" disabled=no distance=10 dst-address=0.0.0.0/0 gateway=\10.0.0.1

/ip firewall nat
add action=masquerade chain=srcnat comment="1" disabled=no out-interface=pppoe-out1
add action=masquerade chain=srcnat comment="2" disabled=no out-interface=pppoe-out2
add action=masquerade chain=srcnat comment="3" disabled=no out-interface=pppoe-out3
add action=masquerade chain=srcnat comment="4" disabled=no out-interface=pppoe-out4
add action=masquerade chain=srcnat comment="5" disabled=no out-interface=pppoe-out5
add action=masquerade chain=srcnat comment="6" disabled=no out-interface=pppoe-out6
add action=masquerade chain=srcnat comment="7" disabled=no out-interface=pppoe-out7
add action=masquerade chain=srcnat comment="8" disabled=no out-interface=pppoe-out8
add action=masquerade chain=srcnat comment="9" disabled=no out-interface=pppoe-out9


/interface vlan
add arp=enabled comment="" disabled=no interface=WAN mtu=1500 name=vlan1 \
    use-service-tag=no vlan-id=56
add arp=enabled comment="" disabled=no interface=WAN mtu=1500 name=vlan2 \
    use-service-tag=no vlan-id=44
add arp=enabled comment="" disabled=no interface=WAN mtu=1500 name=vlan3 \
    use-service-tag=no vlan-id=31
add arp=enabled comment="" disabled=no interface=WAN mtu=1500 name=vlan4 \
    use-service-tag=no vlan-id=30
add arp=enabled comment="" disabled=no interface=WAN mtu=1500 name=vlan5 \
    use-service-tag=no vlan-id=58
add arp=enabled comment="" disabled=no interface=WAN mtu=1500 name=vlan6 \
    use-service-tag=no vlan-id=57
add arp=enabled comment="" disabled=no interface=WAN mtu=1500 name=vlan7 \
    use-service-tag=no vlan-id=60
add arp=enabled comment="" disabled=no interface=WAN mtu=1500 name=vlan8 \
    use-service-tag=no vlan-id=61
add arp=enabled comment="" disabled=no interface=WAN mtu=1500 name=pppoe-out9 \
    use-service-tag=no vlan-id=62

/interface bridge
add admin-mac=00:61:9A:EA:ED:BB ageing-time=5m arp=enabled auto-mac=no \
    comment="" disabled=no forward-delay=15s l2mtu=65535 max-message-age=20s \
    mtu=1500 name=ADSL-1 priority=0x8000 protocol-mode=none \
    transmit-hold-count=6
add admin-mac=00:57:0C:E6:643 ageing-time=5m arp=enabled auto-mac=no \
    comment="" disabled=no forward-delay=15s l2mtu=65535 max-message-age=20s \
    mtu=1500 name=ADSL-2 priority=0x8000 protocol-mode=none \
    transmit-hold-count=6
add admin-mac=00:09:30:B2:28:A6 ageing-time=5m arp=enabled auto-mac=no \
    comment="" disabled=no forward-delay=15s l2mtu=65535 max-message-age=20s \
    mtu=1500 name=ADSL-3 priority=0x8000 protocol-mode=none \
    transmit-hold-count=6
add admin-mac=00:03:47:97:3CE ageing-time=5m arp=enabled auto-mac=no \
    comment="" disabled=no forward-delay=15s l2mtu=65535 max-message-age=20s \
    mtu=1500 name=ADSL-4 priority=0x8000 protocol-mode=none \
    transmit-hold-count=6
add admin-mac=00:13:17:1F:F3:F7 ageing-time=5m arp=enabled auto-mac=no \
    comment="" disabled=no forward-delay=15s l2mtu=65535 max-message-age=20s \
    mtu=1500 name=ADSL-5 priority=0x8000 protocol-mode=none \
    transmit-hold-count=6
add admin-mac=00:E2:E6:C0:E2:FF ageing-time=5m arp=enabled auto-mac=no \
    comment="" disabled=no forward-delay=15s l2mtu=65535 max-message-age=20s \
    mtu=1500 name=ADSL-6 priority=0x8000 protocol-mode=none \
    transmit-hold-count=6
add admin-mac=00C:94:4D:17:15 ageing-time=5m arp=enabled auto-mac=no \
    comment="" disabled=no forward-delay=15s l2mtu=65535 max-message-age=20s \
    mtu=1500 name=ADSL-7 priority=0x8000 protocol-mode=none \
    transmit-hold-count=6
add admin-mac=00:DC:94:4D:17:19 ageing-time=5m arp=enabled auto-mac=no \
    comment="" disabled=no forward-delay=15s l2mtu=65535 max-message-age=20s \
    mtu=1500 name=ADSL-8 priority=0x8000 protocol-mode=none \
    transmit-hold-count=6

/interface bridge port
add bridge=ADSL-1 comment="" disabled=no edge=auto external-fdb=auto horizon=\
    none interface=vlan1 path-cost=10 point-to-point=auto priority=0x80
add bridge=ADSL-2 comment="" disabled=no edge=auto external-fdb=auto horizon=\
    none interface=vlan2 path-cost=10 point-to-point=auto priority=0x80
add bridge=ADSL-3 comment="" disabled=no edge=auto external-fdb=auto horizon=\
    none interface=vlan3 path-cost=10 point-to-point=auto priority=0x80
add bridge=ADSL-4 comment="" disabled=no edge=auto external-fdb=auto horizon=\
    none interface=vlan4 path-cost=10 point-to-point=auto priority=0x80
add bridge=ADSL-5 comment="" disabled=no edge=auto external-fdb=auto horizon=\
    none interface=vlan5 path-cost=10 point-to-point=auto priority=0x80
add bridge=ADSL-6 comment="" disabled=no edge=auto external-fdb=auto horizon=\
    none interface=vlan6 path-cost=10 point-to-point=auto priority=0x80
add bridge=ADSL-7 comment="" disabled=no edge=auto external-fdb=auto horizon=\
    none interface=vlan7 path-cost=10 point-to-point=auto priority=0x80
add bridge=ADSL-8 comment="" disabled=no edge=auto external-fdb=auto horizon=\
    none interface=vlan8 path-cost=10 point-to-point=auto priority=0x80


/interface pppoe-client add name=pppoe-out1 interface=ADSL-1 user=d password=d add-default-route=yes disabled=no
/interface pppoe-client add name=pppoe-out2 interface=ADSL-2 user=d password=d add-default-route=yes disabled=no
/interface pppoe-client add name=pppoe-out3 interface=ADSL-3 user=d password=d add-default-route=yes disabled=no
/interface pppoe-client add name=pppoe-out4 interface=ADSL-4 user=d password=d add-default-route=yes disabled=no
/interface pppoe-client add name=pppoe-out5 interface=ADSL-5 user=d password=d add-default-route=yes disabled=no
/interface pppoe-client add name=pppoe-out6 interface=ADSL-6 user=d password=d add-default-route=yes disabled=no
/interface pppoe-client add name=pppoe-out7 interface=ADSL-7 user=d password=d add-default-route=yes disabled=no
/interface pppoe-client add name=pppoe-out8 interface=ADSL-8 user=d password=d add-default-route=yes disabled=no

/ip address add address=10.0.0.5/255.255.255.0 interface=pppoe-out9
routeros
回复

使用道具 举报

 楼主| 发表于 2011-4-24 16:20:16 | 显示全部楼层
这个方案可行么?
routeros
回复

使用道具 举报

发表于 2011-4-24 20:48:09 | 显示全部楼层
哇,高人。学习了
routeros
回复

使用道具 举报

发表于 2011-4-24 21:08:27 | 显示全部楼层
    光纤跑80和GAMES!QQ和下载走AD
routeros
回复

使用道具 举报

发表于 2011-4-26 10:26:04 | 显示全部楼层
怎么走就的看你怎么应用了
routeros
回复

使用道具 举报

发表于 2011-4-30 01:27:30 | 显示全部楼层
怎样实施就看真实环境的应用了……
routeros
回复

使用道具 举报

发表于 2011-5-1 18:24:11 | 显示全部楼层
有意思。学习了。看看喵喵就好。呵呵!
routeros
回复

使用道具 举报

发表于 2011-5-13 10:40:14 | 显示全部楼层
光纤跑上行,ADSL跑下行
routeros
回复

使用道具 举报

发表于 2011-5-14 10:44:03 | 显示全部楼层
学习了
routeros
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-22 01:58 , Processed in 0.151739 second(s), 5 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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