display portal free-rule

Syntax

display portal free-rule [ rule-number ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

rule-number: Specifies the number of a portal-free rule. The value range is from 0 to 255.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

Use display portal free-rule to display information about a specified portal-free rule or all portal-free rules.

Related commands: portal free-rule.

Examples

# Display information about portal-free rule 1.

<Sysname> display portal free-rule 1
 Rule-Number  1:
 Source:
   IP        : 2.2.2.0
   Mask      : 255.255.255.0
   MAC       : 0000-0000-0000
   Interface : any
   Vlan      : 0
 Destination:
   IP        : 0.0.0.0
   Mask      : 0.0.0.0
   Rule-Number  2:
 Source:
   IP              : 1::2
   Prefix length : 128
   MAC             : 0000-0000-0000
   Interface      : any
   Vlan            : 0
 Destination:
   IP               : 1::2
   Prefix length  : 64

Table 14: Command output

Field

Description

Rule-Number

Number of the portal-free rule

Source

Source information in the portal-free rule

IP

Source IP address in the portal-free rule

Mask

Subnet mask of the source IP address in the portal-free rule

Prefix-length

Source IPv6 address prefix in the portal-free rule

MAC

Source MAC address in the portal-free rule

Interface

Source interface in the portal-free rule

Vlan

Source VLAN in the portal-free rule

Destination

Destination information in the portal-free rule

IP

Destination IP address in the portal-free rule

Mask

Subnet mask of the destination IP address in the portal-free rule

Prefix length

Destination IPv6 address prefix in the portal-free rule