CoPP

初期設定

drop

iosv-0(config)#access-list 100 permit icmp any any
iosv-0(config)#class-map COPP
iosv-0(config-cmap)#match access-group 100
iosv-0(config-cmap)#exit
iosv-0(config)#policy-map COPP_P
iosv-0(config-pmap)#class COPP
iosv-0(config-pmap-c)#drop
iosv-0(config-pmap-c)#exit
iosv-0(config-pmap)#exit
iosv-0(config)#control-plane
iosv-0(config-cp)#service-policy in COPP_P
iosv-0(config-cp)#
*Jul 10 12:16:50.707: %CP-5-FEATURE: Control-plane Policing feature enabled on Control plane aggregate path

マップ多すぎ。
ACL→クラスマップ→ポリシーマップ→コントロールプレーン→サービスポリシー

iosv-1#ping 192.168.12.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.12.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)

police

iosv-0(config)policy-map COPP_P
iosv-0(config-pmap)#class COPP
iosv-0(config-pmap-c)#no drop
iosv-0(config-pmap-c)#police 6000
iosv-0(config-pmap-c)#police ?
<8000-2000000000>  Target Bit Rate (bIts per second) (postfix k, m, g
optional; decimal point allo
cir                Committed information rate
rate               Specify police rate, PCR for hierarchical policies or SCR
for single-level ATM 4.0 policer policies
iosv-0(config-pmap-c)#police 8000
iosv-0(config-pmap-c-police)#

ポリシーマップにてpoliceを設定する。

iosv-1#ping
Protocol [ip]:
Target IP address: 192.168.12.1
Repeat count [5]: 1000
Datagram size [100]: 300
Timeout in seconds [2]:
Type escape sequence to abort.
Sending 1000, 300-byte ICMP Echos to 192.168.12.1, timeout is 2 seconds:
!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.
!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.
!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.
!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.
!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.
!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.
!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.
!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.
!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.
!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.
!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.
!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.
!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.
!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.!!!!.
!!!!.!!!!.!!!!.!!!!.

上限を設定したことで、pingが断続的に繋がらなくなっている。

この記事が気に入ったらサポートをしてみませんか?