SNR S2989G-48TX-RPS — настройка и диагностика COPP на сетевых устройствах [457/553]

Превью страниц Страница 457 / 553
SNR S2989G-48TX-DC [457/553] Copp configuration troubleshooting
S2989G-24TX Operation Manual
Chapter 8 Debugging and Diagnosis Configuration
8-10
Switch(config)#class-map c1
Switch(config-classmap-c1)#match access-group 1
Switch(config-classmap)# exit
Switch(config)#copp-policy-map p1
Switch(config-copp-policymap-p1)#class c1
Switch(config-copp-policymap-p1-class-c1)#policy packets-per-second 10
normal-burst-packets 20 exceed-action drop
Switch(config-copp-policymap-p1-class-c1)#exit
Switch(config-copp-policymap-p1)# #exit
Switch(config)#interface ethernet 1/0/1
Switch(config-if-ethernet1/0/1)# service-policy output p1
Example 2: Configure the COPP policy map on ethernet1/0/1 of Switch-1, limit the
packets of the source mac address of 00-00-11-22-33-44 as 10pps, and configure the
burst threshold as 20pps. Configure the priority as 1 and forward the packets whose
bandwidth exceeds the value.
Configuration steps:
Switch#config
Switch(config)#access-list 1100 permit host-source-mac 00-00-11-22-33-44
any-destination-mac
Switch(config)#class-map c1
Switch(config-classmap-c1)#match access-group 1100
Switch(config)#copp-policy-map p1
Switch(config-copp-policymap-p1)#class c1
Switch(config-copp-policymap-p1-class-c1)# policy packets-per-second 10
normal-burst-packets 20 exceed-action set-internal-priority 1 transmit
Switch(config-copp-policymap-p1-class-c1)#exit
Switch(config-copp-policymap-p1)# #exit
Switch(config)#interface ethernet 1/0/1
Switch(config-if-ethernet1/0/1)# service-policy output p1
8.4.4
COPP Configuration Troubleshooting
If the packets which belong to this network segment went on the cpu correctly. This
function can limit the rate of the packets going on the cpu, user can check if the
packets went on the cpu through the command of debug driver receive.
If the ACL is matched correctly. The ACL rule must be permit.
If the COPP policy map is configured correctly. COPP must be on the egress direction
on the port, it does not support the ingress direction.

Содержание

666

Узнайте, как настроить политику COPP на сетевых устройствах, ограничить скорость пакетов и устранить неполадки. Полезные шаги и советы для эффективной конфигурации.