---
title: CoPP
slug: aidc/copp
createdAt: 2025-12-01T11:11:09.000Z
---

## <font color="#1d50a2">CoPP View</font>

<font color="#1d05a2">Table 1 CoPP View</font>

| **Command**                                | **Purpose**                     |
| ------------------------------------------ | ------------------------------- |
| **show policy-map** \[*policy\_map\_name*] | Display the CoPP configuration. |
| **show copp status**                       | Display the CoPP status.        |

### <font color="#1d50a2">show policy-map \[*policy\_map\_name*\]</font>

**\[Command]**
**show policy-map** \[*policy\_map\_name*]

**\[Purpose]**
Display the CoPP configuration.

**\[Parameters]**

| **Parameter**       | **Description**   |
| ------------------- | ----------------- |
| *policy\_map\_name* | CoPP policy name. |

**\[View]**
Privileged User View

**\[Use Cases]**

```plaintext
sonic# show policy-map
!
policy-map type copp copp-system-policy
 class copp-system-arp
  bandwidth 1000000 12800
```

### <font color="#1d50a2">show copp status</font>

**\[Command]**
**show copp status**

**\[Purpose]**
Display the CoPP status.

**\[View]**
Privileged User View

**\[Use Cases]**

```plaintext
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
```

## <font color="#1d50a2">CoPP Config</font>

<font color="#1d05a2">Table 2 CoPP Config</font>

| **Command**                                 | **Purpose**                                        |
| ------------------------------------------- | -------------------------------------------------- |
| **policy-map type copp copp-system-policy** | Enter CoPP Configuration View.                     |
| **class** *system\_class\_name*             | Specify the type of message targeted by CoPP.      |
| **bandwidth** *cir cbs*                     | Set CoPP rate limiting.                            |
| **arp broadcast disable**                   | Configure CoPP action for ARP packets as trap.     |
| **ndp broadcast disable**                   | Configure CoPP action for ND packets as trap.      |
| **igmp enable**                             | Configure CoPP action for IGMP packets as forward. |
| **pim enable**                              | Configure CoPP action for PIM packets as forward.  |
| **isis enable**                             | Configure CoPP action for ISIS packets as forward. |
| **vrrp enable**                             | Configure CoPP action for VRRP packets as forward. |
| **ospf enable**                             | Configure CoPP action for OSPF packets as forward. |

### <font color="#1d50a2">policy-map type copp copp-system-policy</font>

**\[Command]**
**policy-map type copp copp-system-policy**

**\[Purpose]**
Enter CoPP Configuration View.

**\[View]**
Global Configuration View

**\[Use Cases]**

```plaintext
sonic(config)# policy-map type copp copp-system-policy
sonic(config-pmap-copp-copp-system-policy)#
```

### <font color="#1d50a2">class system\_class\_name</font>

**\[Command]**
**class** *system\_class\_name*

**\[Purpose]**
Specify the type of message targeted by CoPP.

**\[Parameters]**

| **Parameter**         | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| *system\_class\_name* | Specify the type of message. (copp-system-ttl\_err/copp-system-bgp/copp-system-bfd/copp-system-ospf/copp-system-vrrp/copp-system-isis/copp-system-lacp/copp-system-stp/copp-system-arp/copp-system-neigh\_discovery/ /copp-system-macsec/copp-system-lldp/copp-system-udld/copp-system-igmp/copp-system-dhcp\_relay/copp-system-sflow/copp-system-ip2me/copp-system-nat/copp-system-pvrst/copp-system-pim/copp-system-vrrpv6/copp-system-mld/ /copp-system-ssh/copp-system-snmp/copp-system-l3\_mtu\_error/copp-system-ldp) |

**\[View]**
CoPP Configuration View

**\[Use Cases]**

```plaintext
sonic(config-pmap-copp-copp-system-policy)# class copp-system-arp
sonic(config-pmap-c-copp-system-policy-copp-system-arp)#
```

### <font color="#1d50a2">bandwidth *cir cbs*</font>

**\[Command]**
**bandwidth** *cir cbs*

**\[Purpose]**
Set CoPP rate limiting.

**\[Parameters]**

| **Parameter** | **Description**                                                                             |
| ------------- | ------------------------------------------------------------------------------------------- |
| *cir*         | Specify the CIR(Committed Information Rate) in byte/sec. The range is 1000 \~ 400000000000. |
| *cbs*         | Specify CBS (Committed Burst Size) in byte. The range is 1000 \~ 400000000000.              |

**\[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]**

```plaintext
sonic(config-pmap-copp-copp-system-policy)# class copp-system-arp
sonic(config-pmap-c-copp-system-policy-copp-system-arp)# bandwidth 1000000 12800
```

### <font color="#1d50a2">arp broadcast disable</font>

**\[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]**

```plaintext
sonic(config)# arp broadcast disable
sonic(config)# no arp broadcast disable
```

### <font color="#1d50a2">ndp broadcast disable</font>

**\[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]**

```plaintext
sonic(config)# ndp broadcast disable
sonic(config)# no ndp broadcast disable
```

### <font color="#1d50a2">igmp enable</font>

**\[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]**

```plaintext
sonic(config)# igmp enable
sonic(config)# no igmp enable
```

### <font color="#1d50a2">pim enable</font>

**\[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]**

```plaintext
sonic(config)# pim enable
sonic(config)# no pim enable
```

### <font color="#1d50a2">isis enable</font>

**\[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]**

```plaintext
sonic(config)# isis enable
sonic(config)# no isis enable
```

### <font color="#1d50a2">vrrp enable</font>

**\[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]**

```plaintext
sonic(config)# vrrp enable
sonic(config)# no vrrp enable
```

### <font color="#1d50a2">ospf enable</font>

**\[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]**

```plaintext
sonic(config)# ospf enable
sonic(config)# no ospf enable
```

