配置物理接口的整形速率
要配置物理接口上的整形速率,请在层次结构级别包含 shaping-rate
语句 [edit class-of-service interfaces interface-name]
,或者在层次结构级别包含 output-traffic-control-profile
语句 [edit class-of-service interfaces interface-name]
。
您可以将峰值带宽速率指定为 bps,可以是完整的十进制数字,也可以作为十进制数字,后跟缩写 k
(1000)、 m
(1,000,000)或 g
(1,000,000)。对于物理接口,范围从 1000 到 6,400,000,000,000 bps。
对于具有 5 类 FPC 的 T4000 路由器上的物理接口,物理接口的整形速率值必须至少为 292 Kbps。的最大值 shaping-rate
受接口的最大传输速率限制。
以下是在 T4000 12x10 Gbps 物理接口 (xe-4/0/0) 上应用 5 Gbps 整形速率的两个示例配置:
在 [edit class-of-service interfaces interface-name
] 层次结构上应用整形速率:
[edit class-of-service] interfaces { xe-4/0/0 { shaping-rate 5g; } }
使用流量控制配置文件应用整形速率:
[edit class-of-service] traffic-control-profiles { output { shaping-rate 5g; } } interfaces { xe-4/0/0 { output-traffic-control-profile output; } }
要查看配置结果,请发出以下命令 show
:
show class-of-service interface interface-name
show interfaces interface-name extensive