Configuring the Shaping Rate for Physical Interfaces
To configure the shaping rate on the physical interface, either include the
shaping-rate statement at the [edit class-of-service
interfaces interface-name] hierarchy level or include
the output-traffic-control-profile statement at the [edit
class-of-service interfaces interface-name] hierarchy
level.
You can specify a peak bandwidth rate in bps, either as a complete
decimal number or as a decimal number followed by the abbreviation k (1000), m (1,000,000), or g (1,000,000,000).
For physical interfaces, the range is from 1000 through 6,400,000,000,000
bps.
The maximum value of shaping-rate is limited by the maximum transmission rate of
the interface.
The following are two sample configurations for applying a shaping rate of 5 Gbps on a physical interface (xe-4/0/0):
Apply a shaping rate at the [edit class-of-service interfaces
interface-name] hierarchy:
[edit class-of-service]
interfaces {
xe-4/0/0 {
shaping-rate 5g;
}
}
Apply a shaping rate using a traffic control profile:
[edit class-of-service]
traffic-control-profiles {
shaping-output {
shaping-rate 5g;
}
}
interfaces {
xe-4/0/0 {
output-traffic-control-profile shaping-output;
}
}
To view the results of your configuration, issue the following show commands:
show class-of-service interface interface-name
show interfaces interface-name extensive