display flowspec rule

Function

The display flowspec rule command displays information about the rule table of the local combined BGP Flow Spec route.

Format

display flowspec [ ipv6 ] rule reindex-value slot slot-id

Parameters

Parameter Description Value
ipv6

Indicates BGP IPv6 Flow Specification.

-

rule reindex-value

Index of a BGP route.

The value is an integer ranging from 1 to 4294967295.

slot slot-id

Slot number. The value range varies with different router hardware.

The value is a string of 1 to 255 case-sensitive characters, spaces not supported.

Views

All views

Default Level

3: Management level

Task Name and Operations

Task Name Operations
device-mgr debug

Usage Guidelines

Usage Scenario

To check whether the bottom entry data of an interface board is correct, the information about the rule table of the local combined BGP FlowSpec route, run the display flowspec rule command.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display information about the rule table of the local combined BGP IPv4 FlowSpec route on the board in slot 1.
<HUAWEI> display flowspec rule 3 slot 1
Table Description:
FM: Fragment flag. 0 indicates the non-fragment and 1 indicates the fragment.
FF: First fragment flag. 0 indicates the non-start fragment and 1 indicates the start fragment.
MF: Middle fragment flag. 0 indicates the non-middle fragment and 1 indicates the middle fragment.
LF: Last fragment flag. 0 indicates the non-last fragment and 1 indicates the last fragment.
DF: Don't fragment flag. 0 indicates that fragmentation is enabled and 1 indicates fragmentation is disabled.
-----------------------------------------------------------------------------------------------------------
INDEX  SIP/PREFIX_LEN      DIP/PREFIX_LEN      PRO  SPORT  DPORT  DSCP  FM/FF/MF/LF/DF  TCPFLAG  ICMPTYPE/CODE  ASID
-----------------------------------------------------------------------------------------------------------
1      0.0.0.0/0           0.0.0.0/0           6    90     0      0     0/NA/0/0/0      0        0/0            0   
2      0.0.0.0/0           0.0.0.0/0           6    0      90     0     0/NA/0/0/0      0        0/0            0   
3      0.0.0.0/0           0.0.0.0/0           17   90     0      0     0/NA/0/0/0      0        0/0            0   
4      0.0.0.0/0           0.0.0.0/0           17   0      90     0     0/NA/0/0/0      0        0/0            0
# Display information about the rule table of the local combined BGP IPv6 FlowSpec route on the board in slot 1.
<HUAWEI> display flowspec ipv6 rule 1 slot 1
Table Description:
FM: Fragment flag. 0 indicates the non-fragment and 1 indicates the fragment.
FF: First fragment flag. 0 indicates the non-start fragment and 1 indicates the start fragment.
---------------------------------------------------------------------------------------------------
INDEX  PRO  SPORT  DPORT  DSCP  FM/FF  TCPFLAG        ICMPTYPE/CODE
       SIP/PREFIX_LEN                                 DIP/PREFIX_LEN                             
---------------------------------------------------------------------------------------------------
1      6    20     0     0     0/NA   0              0/0          
       ::/0                                           1:1::1:1/128                               
2      6    0      20    0     0/NA   0              0/0          
       ::/0                                           1:1::1:1/128                               
3      17   20     0     0     0/NA   0              0/0          
       ::/0                                           1:1::1:1/128                               
4      17   0      20    0     0/NA   0              0/0          
       ::/0                                           1:1::1:1/128
Table 1 Description of the display flowspec rule command output
Item Description
INDEX

Logical index of combination rule.

PRO

Protocol number -: indicates that the protocol number is not under consideration.

SPORT

Source port -: indicates that the source port is not under consideration.

DPORT

Destination port -: indicates that the destination port is not under consideration.

DSCP

Identifier of packet priority.

TCPFLAG

Flag of a TCP header0~63.

ASID

Number (1 to 255) to which an AS number is mapped.

FM

Fragment flag. 0 indicates the non-fragment; 1 indicates the fragment; 2(NA) not concerned with fragmentation.

FF

First fragment flag. 0 indicates the non-start fragment; 1 indicates the start fragment; 2(NA) unconcerned start fragment.

ICMPTYPE

ICMP type.

MF

Middle fragment flag. 0 indicates the non-middle fragment; 1 indicates the middle fragment; 2 (NA) indicates that the middle fragment is ignored.

LF

Last fragment flag. 0 indicates the non-last fragment; 1 indicates the last fragment; 2 (NA) indicates that the last fragment is ignored.

DF

Don't fragment flag. 0 indicates that fragmentation is enabled; 1 indicates fragmentation is disabled; 2 (NA) indicates whether to disable fragmentation is ignored.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >