显示类

Syntax

显示类(ip | ipv6 | mac)[] [commands] [configuration] [vsx-peer]

描述

Shows class configuration information.

Command context

Operator (>) or Manager (#)

Parameters

All parameters are optional.

(ip | ipv6 | mac)

Selects the class type for the display:ipfor IPv4,ipv6for IPv6, ormacfor MAC classes.

Specifies the class name.

commands

Specifies whether to display output as the CLI commands showing the configured class entries.

configuration

Specifies whether to display classes that have been configured by the user, even if they are not active due to issues with the command parameters or hardware issues. This parameter is useful during a mismatch between the entered configuration and the previous successfully programmed (active) classes.

[vsx-peer]

Shows the output from the VSX peer switch. If the switches do not have the VSX configuration or the ISL is down, the output from the VSX peer switch is not displayed. This parameter is available on switches that support VSX.

权威

Operators or Administrators or local user group members with execution rights for this command. Operators can execute this command from the operator context (>) only.

Examples

Showing all class configuration:

switch#显示类Type Name Sequence Comment action L3 Protocol Source IP address Source L4 Port(s) Destination IP address Destination L4 Port(s) Additional Parameters --------------------------------------------------------------- ipv4 MY_IPV4_CLASS 10 my first class entry comment match icmp 192.168.0.1/255.255.255.0 192.168.1.1/255.255.255.0 VLAN: 1 20 my second class entry comment ignore tcp 10.100.0.10/255.255.255.0 < 3000 10.100.1.10/255.255.255.0 > 2000 VLAN: 1 ----------------------------------------------------------------------

Showing class configuration for the IPv4 class MY_IPV4_CLASS as CLI commands:

switch#显示类ip MY_IPV4_CLASS commandsclass ip "MY_IPV4_CLASS" 10 match icmp 192.168.0.1/255.255.255.0 192.168.1.1/255.255.255.0 vlan 1 10 comment my first class entry comment 20 ignore tcp 10.100.0.10/255.255.255.0 lt 3000 10.100.1.10/255.255.255.0 gt 2000 vlan 1 20 comment my second class entry comment