接口速度为千兆但电路为 10mbs - 如何将接口设置为电路带宽?

网络工程 思科 路由器
2021-07-19 12:34:58

我有一个千兆接口连接到运营商 ATT 路由器上的接口。连接到该接口的以太网电路的带宽为 10mbs。有没有办法设置接口的速度以匹配电路的带宽?

如果 QoS 应用于我的千兆接口,它会被应用并知道 10mb 的速率限制吗?

1个回答
! Assign a bandwidth of 10Mbps to the interface
! This doesn't shape or police, it's just an administrative bandwidth
interface Gi0/0
 bandwidth 10000

! Create a policy-map to shape to 95% of an interface's bandwidth
! 95% to allow room for overhead or differences between your shaper and their policer
policy-map PM.WAN.OUT
 class class-default
  shape average percent 95

! Apply the policy-map to the interface in the outbound direction
! Inbound your options are policing or letting the carrier shape/police the traffic
interface Gi0/0
 service-policy output PM.WAN.OUT