PCC

本文介绍了路由器上针对多链路负载均衡的具体配置方法,包括如何设置连接标记、路由标记等,实现不同链路间的流量分配。此外还涉及了DDNS配置的相关细节。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

/ip firewall mangle
add action=mark-connection chain=input comment=adsl-1 in-interface=pppoe-out1 \
    new-connection-mark=pcc-adsl-1 passthrough=yes
add action=mark-routing chain=output connection-mark=pcc-adsl-1 \
    new-routing-mark=pcc-router1 passthrough=yes
add action=mark-connection chain=input comment=adsl-3 in-interface=pppoe-out3 \
    new-connection-mark=pcc-adsl-2 passthrough=yes
add action=mark-routing chain=output connection-mark=nth-adsl-3 \
    new-routing-mark=router-3 passthrough=yes
add action=mark-connection chain=prerouting comment=pcc1 new-connection-mark=\
    pcc-adsl-1 passthrough=yes per-connection-classifier=both-addresses:2/0
add action=mark-routing chain=prerouting connection-mark=pcc-adsl-1 \
    new-routing-mark=pcc-router1 passthrough=yes src-address-list=lanip
add action=mark-connection chain=prerouting comment=pcc2 new-connection-mark=\
    pcc-adsl-2 passthrough=yes per-connection-classifier=both-addresses:2/1
add action=mark-routing chain=prerouting connection-mark=pcc-adsl-2 \
    new-routing-mark=pcc-router2 passthrough=yes src-address-list=lanip
:global ddnsuser "2274950203"
:global ddnspass "TD850223"
:global ddnshost "5g.zzux.com"
:global ddnsinterface "pppoe-out1"
:global ddnslastip
:global ddnsip [ /ip address get [/ip address find dynamic=yes interface=$ddnsinterface ] address ]
:if ( [:typeof $ddnslastip]="nothing" ) do={ :global ddnslastip 0.0.0.0/0 }
:if ( [:typeof $ddnsip]="nothing" ) do={
  :log info ("DDNS: No ip address present on " . $ddnsinterface . ", please check.")
} else={

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值