Дерево страниц
Перейти к концу метаданных
Переход к началу метаданных

Данный функционал позволяет ограничить скорость только для выбранного трафика


Создать ACL для классификации трафика по порту:

console(config)# mac access-list extended 1
console(config-ext-macl)# permit any any

Прикрепить ACL на требуемый порт (gi0/2)

console(config)# interface gi 0/2
console(config-if)# mac access-group 1 in

Создать Class-map, привязать ACL к ней

console(config)# Class-map 1001
console(config-cls-map)# match access-group mac-access-list 1

console(config-cls-map)# set class 1010  

Создать meter и указать ограничение в kbps

console(config)# meter 1
console(config-meter)# meter-type avgRate cir 10000 mode bytes

Создать Policy-map, привязать к ней class-map, а также привязать созданный ранее meter

console(config)# Policy-map 1001

console(config-ply-map)# set policy class 1010 default-priority-type ipdscp 0
console(config-ply-map)# set meter 1

exceed-action drop - всё что выше ограничения, будет отброшено.