jj@someM20# show interfaces
ge-0/1/0 {
unit 0 {
family inet {
filter {
input PIR-input;
}
}
}
}
ge-0/2/0 {
unit 0 {
family inet {
filter {
output CIR-output;
}
policer {
output 32-Meg;
}
}
}
}
jj@someM20# show firewall
policer site-x-PIR-in {
if-exceeding {
bandwidth-limit 20480000;
burst-size-limit 9k;
}
then discard;
}
policer site-y-PIR-in {
if-exceeding {
bandwidth-limit 10240000;
burst-size-limit 9k;
}
then discard;
}
policer site-z-PIR-in {
if-exceeding {
bandwidth-limit 10240000;
burst-size-limit 9k;
}
then discard;
}
policer site-x-CIR-out {
if-exceeding {
bandwidth-limit 10240000;
burst-size-limit 9k;
}
then loss-priority high;
}
policer site-y-CIR-out {
if-exceeding {
bandwidth-limit 512k;
burst-size-limit 9k;
}
then loss-priority high;
}
policer site-z-CIR-out {
if-exceeding {
bandwidth-limit 8192000;
burst-size-limit 9k;
}
then loss-priority high;
}
policer 32-Meg {
if-exceeding {
bandwidth-limit 32m;
burst-size-limit 9k;
}
then discard;
}
family inet {
filter PIR-input {
term site-x-PIR {
from {
address {
10.128.4.0/22;
}
}
then {
policer site-x-PIR-in;
loss-priority low;
forwarding-class best-effort;
}
}
term site-y-PIR {
from {
address {
10.128.8.0/22;
}
}
then {
policer site-y-PIR-in;
loss-priority low;
forwarding-class assured-forwarding;
}
}
term site-z-PIR {
from {
address {
10.128.12.0/22;
}
}
then {
policer site-z-PIR-in;
loss-priority low;
forwarding-class expedited-forwarding;
}
}
term default {
then {
count unclassified-in;
loss-priority low;
forwarding-class best-effort;
}
}
}
filter CIR-output {
term site-x-CIR {
from {
address {
10.128.4.0/22;
}
}
then policer site-x-CIR-out;
}
term site-y-CIR {
from {
address {
10.128.8.0/22;
}
}
then policer site-y-CIR-out;
}
term site-z-CIR {
from {
address {
10.128.12.0/22;
}
}
then policer site-z-CIR-out;
}
term default-out {
then count unclassified-out;
}
}
}
[edit]
jj@someM20#
jj@someM20# show class-of-service
interfaces {
ge-0/2/0 {
scheduler-map xyz;
shaping-rate 32m;
}
}
scheduler-maps {
xyz {
forwarding-class best-effort scheduler site-x;
forwarding-class assured-forwarding scheduler site-y;
forwarding-class expedited-forwarding scheduler site-z;
}
}
schedulers {
site-x {
transmit-rate 10240000;
buffer-size percent 40;
}
site-y {
transmit-rate 5120000;
buffer-size percent 20;
}
site-z {
transmit-rate 8192000;
buffer-size percent 30;
}
}
[edit]
jj@someM20#Вернуться в Третий уровень OSI: L3 switching, RIP/OSPF/EIGRP/BGP
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 0