The if-match fragment-type command configures a filtering rule based on the fragment type.
The undo if-match fragment-type command deletes the filtering rule based on the fragment type.
By default, no filtering rule based on the fragment type is configured.
Parameter | Description | Value |
---|---|---|
not |
Indicates that traffic that does not match the fragment type can pass the filtering rule. |
- |
match |
Indicates that traffic matching the fragment type can pass the filtering rule. |
- |
fragment |
Indicates that fragments are checked. |
- |
non-fragment |
Indicates that non-fragmented packets are checked. |
- |
fragment-spe-first |
Indicates that the first fragmented packet is checked. |
- |
Usage Scenario
The if-match fragment-type command is used to configure a filtering rule based on the fragment type for a BGP Flow Specification route or BGP VPN Flow Specification route. Traffic matching the filtering rule will be controlled with the action specified by the apply clause.
Prerequisites
A static BGP Flow Specification route or BGP VPN Flow Specification route has been created using the flow-route command in the system view.
Precautions
A maximum of three if-match fragment-type commands can be run for the same BGP Flow Specification route.
For the same packet fragmentation rule, fragment, non-fragment, fragment-spe-first, if-match fragment-type not, and if-match fragment-type match override each other. After the flowspec ipv4-fragment-rule switch command is run in the system view, the functions of the following commands are changed: