[Contents] [Prev] [Next] [Index] [Report an Error]

Example: Configuring a Logical Bandwidth Policer

This example applies a logical bandwidth policer rate to two logical interfaces on interface ge-0/2/7. The policed rate on unit 0 is 2 Mbps (50 percent of 4 Mbps) and the policed rate on unit 1 is 1 Mbps (50 percent of 2 Mbps).

[edit firewall]
policer Logical_Policer {
logical-bandwidth-policer; # This applies the policer to logical interfaces
if-exceeding {
bandwidth-percent 50; # This applies 50 percent to the shaping-rate
burst-size-limit 125k;
}
then discard;
}
 
[edit class-of-service]
interfaces {
ge-0/2/7 {
unit 0 {
shaping-rate 4m # This establishes the rate to be policed on unit 0
}
unit 1 {
shaping-rate 2m # This establishes the rate to be policed on unit 1
}
}
}
[edit interfaces ge-0/2/7]
per-unit-scheduler;
vlan-tagging;
unit 0 {
vlan-id 100;
family inet {
policer {
input Logical_Policer;
output Logical_Policer;
}
address 172.1.1.1/30;
}
}
unit 1 {
vlan-id 200;
family inet {
policer {
input Logical_Policer;
output Logical_Policer;
}
address 172.2.1.1/30;
}
}

[Contents] [Prev] [Next] [Index] [Report an Error]