vyos in or out 限流量

版权声明:更多精彩请关注 http://book.opschina.org, 或者加入QQ新群648503385,或者直接加微信:zzlyzq, 让天下没有难做的运维。< https://blog.csdn.net/vbaspdelphi/article/details/79424928
# shaper 只能用于out
set traffic-policy shaper eth1-2-outpu bandwidth 100Mbit
set traffic-policy shaper eth1-2-output default bandwidth 20%
set traffic-policy shaper eth1-2-output default ceiling 40%
set traffic-policy shaper eth1-2-output default queue-type fair-queue
set interfaces ethernet eth1 traffic-policy in eth1-2-input

# limiter 用于in 
set traffic-policy limiter eth1-2-input default bandwidth 20mbit
set traffic-policy limiter eth1-2-input default burst 50mb
set interface ethernet eth1 traffic-policy in eth1-2-input

猜你喜欢

转载自blog.csdn.net/vbaspdelphi/article/details/79424928