---
title: Decoding Configuration
slug: packetbroker/decoding-configuration
createdAt: 2025-12-18T02:50:15.780Z
---

## <font color="#1d50a2">Decoding Configuration</font>

In npb scenarios, some messages require the decoding switch to be turned on before five-element matching can be performed.

<font color="#1d05a2">Table 1 MPLS decoding basic configuration</font>

| **Operation**                   | **Command**                | **Description**                                                      |
| ------------------------------- | -------------------------- | -------------------------------------------------------------------- |
| Enter system configuration view | **configure**              |                                                                      |
| Enter  npb configuration view   | **npb**                    |                                                                      |
| Enable MPLS decoding            | **parse-over-mpls enable** | Enables filtering of inner layer fields for MPLS/MPLS + PW messages. |

### <font color="#1d50a2">Supported rule matching fields for MPLS packets</font>

After enabling MPLS decoding, the rule matching items supported by common MPLS packets are as follows

<font color="#1d05a2">Table 2 </font><font color="#1d05a2">Supported rule matching fields for MPLS packets</font>

| **MPLS packets**                 | **Supported rule matching items**                                                          | **Description**                                 |
| -------------------------------- | ------------------------------------------------------------------------------------------ | ----------------------------------------------- |
| MPLS + IPV4                      | L2, EX, L3(src-ip, dst-ip, src-port, dst-port, ip-protocol)                                |                                                 |
| MPLS + ETH + (vlans) +  IPV4     | L2, EX, L3(src-mac, dst-mac, ethertype, src-ip, dst-ip, src-port, dst-port, ip-protocol)   |                                                 |
| MPLS + PW + ETH + (vlans) + IPV4 | L2, EX, L3(src-mac, dst-mac, ethertype, src-ip, dst-ip, src-port, dst-port, ip-protocol)   |                                                 |
| MPLS + ETH + LACP                | L2, EX, L3(src-mac, dst-mac, ethertype)                                                    |                                                 |
| MPLS + IPV6                      | L2, EX, L3V6(src-ip, dst-ip, src-port, dst-port, ip-protocol)                              | Only support L2,EX,L3 default forward on CX102S |
| MPLS + PW + ETH + (vlans) + IPV6 | L2, EX, L3V6(src-mac, dst-mac, ethertype, src-ip, dst-ip, src-port, dst-port, ip-protocol) |                                                 |
| MPLS + ETH + (vlans) + IPV6      | L2, EX, L3V6(src-mac, dst-mac, ethertype, src-ip, dst-ip, src-port, dst-port, ip-protocol) |                                                 |

