我使用瞻博网络 EX2200 作为在一台交换机上具有多个切换端口的客户的 demarc/CPE 设备。我需要确保在他们所有的端口中,他们使用的带宽不会超过他们订购的带宽。
我已经阅读了瞻博网络文档定义 CoS 调度程序,但我仍然不确定是按接口还是按调度程序应用出口整形器。
我的配置片段如下。端口 0/1/0-3 是客户的下游,而端口 0/1/0 是上游。
# show class-of-service
interfaces {
ge-0/0/0 {
scheduler-map all-cust;
}
ge-0/0/1 {
scheduler-map all-cust;
}
ge-0/0/2 {
scheduler-map all-cust;
}
ge-0/0/3 {
scheduler-map all-cust;
}
ge-0/1/0 {
shaping-rate 20971520;
}
}
scheduler-maps {
all-cust {
forwarding-class best-effort scheduler all-cust;
}
}
schedulers {
all-cust {
shaping-rate 31457280;
}
}