The rule move command allows you to move a NAT policy rule so that the priority of the NAT policy rule changes.
| Parameter | Description | Value |
|---|---|---|
| rule-name1 | Specifies the name of a policy rule to be moved. | The policy rule must exist. The value is a case-sensitive character string. The length of a name without spaces ranges from 1 to 32 characters. The length of a name with spaces ranges from 3 to 34 characters. If a name contains spaces, the name must be enclosed with quotation marks (for example, "user for test"). The name cannot contain any question marks (?), or quotation marks ("). |
| after | Moves rule-name1 after rule-name2. | - |
| before | Moves rule-name1 before rule-name2. | - |
| rule-name2 | Specifies the name of a reference policy rule. | The policy rule must exist. The value is a case-sensitive character string. The length of a name without spaces ranges from 1 to 32 characters. The length of a name with spaces ranges from 3 to 34 characters. If a name contains spaces, the name must be enclosed with quotation marks (for example, "user for test"). The name cannot contain any question marks (?), or quotation marks ("). |
| up | Moves the rule before the upper one. | - |
| down | Moves the rule after the lower one. | - |
| top | Moves the rule to the top. | - |
| bottom | Move a rule to the bottom ( before the default policy ) . | - |
The position of a NAT policy rule determines the priority of the rule. NAT policy rules are arranged in descending order by priority. The system matches traffic with policy rules in descending order by priority.
By default, an earlier configured traffic policy rule has a higher priority.
An administrator can run the rule move command to move a policy rule to change the rule priority.