Hà Nội: NTT03, Line 1, Thống Nhất Complex, 82 Nguyễn Tuân, Thanh Xuân, Hà Nội. ● HCM: Số 31B, Đường 1, Phường An Phú, Quận 2 (Thủ Đức), TP HCM. ===> Đơn Vị Hàng Đầu Trong Lĩnh Vực Cung Cấp Thiết Bị Security - Network - Wifi - CCTV - Conference - Máy chủ Server - Lưu trữ Storge.
Danh mục sản phẩm

Configure Customized Protocol Packet to Be Processed by CPU

Configuration Condition

None

Configure Matching Rule of Customized Protocol Packet to Be Processed by CPU

The configured matching rule of the customized protocol packet to be processed by CPU should be used with the mode of the customized protocol packet to be processed by CPU. It performs the corresponding action processing for the packet meeting the match rule. The match rule includes dst-mac (destination MAC address), ingress (interface), vlan-id (VLAN ID), ether-type (Ethernet type), IP (IPV4), IPV6, 0x0000 (customized Ethernet type), ip-protocol (IP protocol, such as IGMP and TCP), dst-ip (destination IP), src-port (source port), and dst-port. The user can combine the above match rules to use as desired.

Table 2-5 Configure the match rule of the customized protocol packet to be processed by CPU

Step

Command

Description

Enter global configuration mode

configure terminal

-

Configure the match rule of the customized protocol

cpu-packet user-define user-id match { dst-mac dst-mac | ether-type { ether-type-value | ip [ dst-ip dst-ip-address | dst-mac dst-mac | ingress ingress-interface | ip-protocol protocol-type | vlan-id vlan-id [ dst-ip dst-ip-address | ingress ingress-interface ip-protocol protocol-type ] ] | arp [src-mac src-mac dst-mac dst-mac | target-ip target-ip | request | reply ] | ipv6 [ dst-ip6 dst-ipv6-address | dst-mac dst-mac | ingress ingress-interface | ip-protocol protocol-type | vlan-id vlan-id [ dst-ip dst-ip-address | ingress ingress-interface ip-protocol protocol-type ] ] } | ingress ingress-interface | vlan-id vlan-id [ ingress ingress-interface ] }

Mandatory

By default, there is no any match rule.

Configure Mode of Customized Protocol Packet to Be Processed by CPU

The configured matching rule of the customized protocol packet to be processed by CPU should be used with the mode of the customized protocol packet to be processed by CPU. It performs the corresponding action processing for the packet meeting the match rule. For example, if the configured mode is copy, do not change the original forwarding process of the packet, but copy the packet to CPU for processing; if the configured mode is drop, do not permit to send the packet to CPU for processing, but drop the packet; if the configured mode is remark, modify the priority of the packet to be processed by CPU; if the configured mode is trap, change the original forwarding process of the packet by only sending the packet to CPU for processing instead of forwarding the packet.

Table 2-6 Configure the mode of sending the customized protocol packet to CPU

Step

Command

Description

Enter global configuration mode

configure terminal

-

Configure the action of the customized protocol packet to be processed by CPU

cpu-packet user-define user-id action { drop | { copy | remark | trap } cos cos-value }

Mandatory

By default, do not perform any action for the packet meeting the match rule.

When the processing modes of the customized protocol packet by CPU are copy, remark and trap, you can specify the COS value.