Command Line Reference
Security Configuration
CoPP
16 min
copp view copp view table 1 copp view table 1 copp view true 329,329#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type show policy map \[ show policy map \[ policy map name ] \[command] show policy map \[ policy map name ] \[purpose] display the copp configuration \[parameters] true 329,329#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type \[view] privileged user view \[use cases] sonic# show policy map ! policy map type copp copp system policy class copp system arp bandwidth 1000000 12800 show copp status show copp status \[command] show copp status \[purpose] display the copp status \[view] privileged user view \[use cases] sonic# show copp status class status \ copp system arp cbs 64000 cir 256000 meter type bytes mode sr tcm queue 5 red action drop trap action copy trap ids arp req,arp resp trap priority 5 copp config copp config table 2 copp config table 2 copp config true 238,420#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type policy map type copp copp system policy policy map type copp copp system policy \[command] policy map type copp copp system policy \[purpose] enter copp configuration view \[view] global configuration view \[use cases] sonic(config)# policy map type copp copp system policy sonic(config pmap copp copp system policy)# class system class name class system class name \[command] class system class name \[purpose] specify the type of message targeted by copp \[parameters] true 175,483#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type \[view] copp configuration view \[use cases] sonic(config pmap copp copp system policy)# class copp system arp sonic(config pmap c copp system policy copp system arp)# bandwidth bandwidth cir cbs \[command] bandwidth cir cbs \[purpose] set copp rate limiting \[parameters] true 131,527#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type \[view] copp class map configuration view \[notes] run command no bandwidth delete the customized copp configuration and the system will revert to the default copp configuration \[use cases] sonic(config pmap copp copp system policy)# class copp system arp sonic(config pmap c copp system policy copp system arp)# bandwidth 1000000 12800 arp broadcast disable arp broadcast disable \[command] arp broadcast disable \[purpose] configure copp action for arp packets as trap \[view] global configuration view \[notes] the action trap means upload to cpu, and copy means both upload to cpu and forward the default action for arp packets is copy run command no arp broadcast disable to configure copp action for arp packets as copy \[use cases] sonic(config)# arp broadcast disable sonic(config)# no arp broadcast disable ndp broadcast disable ndp broadcast disable \[command] ndp broadcast disable \[purpose] configure copp action for nd packets as trap \[view] global configuration view \[notes] the action trap means upload to cpu, and copy means both upload to cpu and forward the default action for nd packets is copy run command no ndp broadcast disable to configure copp action for nd packets as copy \[use cases] sonic(config)# ndp broadcast disable sonic(config)# no ndp broadcast disable igmp enable igmp enable \[command] igmp enable \[purpose] configure copp action for igmp packets as copy \[view] global configuration view \[notes] the action forward means forward the packets, and copy means both upload to cpu and forward the default action for igmp packets is forward run command no igmp enable to configure copp action for igmp packets as forward \[use cases] sonic(config)# igmp enable sonic(config)# no igmp enable pim enable pim enable \[command] pim enable \[purpose] configure copp action for pim packets as copy \[view] global configuration view \[notes] the action forward means forward the packets, and copy means both upload to cpu and forward the default action for pim packets is forward run command no pim enable to configure copp action for pim packets as forward \[use cases] sonic(config)# pim enable sonic(config)# no pim enable isis enable isis enable \[command] isis enable \[purpose] configure copp action for isis packets as copy \[view] global configuration view \[notes] the action forward means forward the packets, and copy means both upload to cpu and forward the default action for isis packets is forward run command no isis enable to configure copp action for isis packets as forward \[use cases] sonic(config)# isis enable sonic(config)# no isis enable vrrp enable vrrp enable \[command] vrrp enable \[purpose] configure copp action for vrrp packets as copy \[view] global configuration view \[notes] the action forward means forward the packets, and copy means both upload to cpu and forward the default action for vrrp packets is forward run command no vrrp enable to configure copp action for vrrp packets as forward \[use cases] sonic(config)# vrrp enable sonic(config)# no vrrp enable ospf enable ospf enable \[command] ospf enable \[purpose] configure copp action for ospf packets as copy \[view] global configuration view \[notes] the action forward means forward the packets, and copy means both upload to cpu and forward the default action for ospf packets is forward run command no ospf enable to configure copp action for ospf packets as forward \[use cases] sonic(config)# ospf enable sonic(config)# no ospf enable
