The display policy-based-route rule command displays the configuration and matching status of PBR rules.
| Parameter | Description | Value |
|---|---|---|
all |
Displays information about all PBR rules. |
- |
slot slot-id |
Specifies the slot ID. Only the USG6635E/6655E, USG6680E and USG6712E/6716E support this parameter. |
- |
cpu cpu-id |
Specifies the ID of CPU. Only the USG6635E/6655E, USG6680E and USG6712E/6716E support this parameter. |
- |
name rule-name |
Displays information about a specified PBR rule. |
rule-name must be the name of an existing PBR rule. |
If name rule-name is specified, the number of times the specified rule is matched and the rule configuration are displayed. If all is configured, global rule configuration is displayed, including the rule sequence, whether a rule is enabled, and how many times a rule is matched.
# Display details about PBR rule test.
<sysname> display policy-based-route rule name test
(0 times matched)
rule name abc
description abc
source-zone dmz
source-address 10.2.2.0 24
destination-address 10.10.1.0 24
service http
user username l2tpuser
application Avvo
action pbr next-hop 10.1.1.1
Item |
Description |
|---|---|
0 times matched |
Matching count of the PBR rule 0 times matched indicates that the matching count of the PRB rule is 0. |
rule name |
Name of the PBR rule |
description |
PBR description |
source-zone |
Name of the source security zone |
source-address |
Source IP address |
destination-address |
Destination IP address |
service |
Service |
user username |
User name |
application |
Application group |
action pbr next-hop |
Action of the PBR rule |
# Display the configuration and matching status of all PBR rules.
<sysname> display policy-based-route rule all Total:2 RULE ID RULE NAME STATE ACTION HITS ------------------------------------------------------------------------------- 1 abc enable pbr 0 0 default enable no-pbr 0 -------------------------------------------------------------------------------
Item |
Description |
|---|---|
Total |
Total number of PBR rules |
RULE ID |
PBR rule ID |
RULE NAME |
Name of the PBR rule |
STATE |
Whether the PBR rule is enabled |
ACTION |
Action defined for the PBR rule |
HITS |
Matching count of the PBR rule |