class copy
Syntax
class {ip|ipv6|mac} <CLASS-NAME> copy <DESTINATION-CLASS>
Description
Copies a IPv4, IPv6, or MAC class to a new destination class or overwrites an existing class. Copying a class copies all entries as well.
Command context
config
Parameters
{ip|ipv6|mac} <CLASS-NAME>
Specifies the type and name of the class to be copied.
<DESTINATION-CLASS>
Specifies the name of the destination class.
Authority
Administrators or local user group members with execution rights for this command.
Examples
Copying an IPv4 class. Copying a class with entries copies all its entries as well:
switch(config)# class ip MY_IP_CLASS copy MY_IP_CLASS2 switch(config)# do show class 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_IP_CLASS 11 ignore udp any any 21 match tcp 192.168.0.1 192.168.0.2 ------------------------------------------------------------------------------- IPv4 MY_IP_CLASS2 11 ignore udp any any 21 match tcp 192.168.0.1 192.168.0.2
Copying an IPv6 class:
switch(config)# class ipv6 MY_IPV6_CLASS copy MY_IPV6_CLASS2 switch(config)# do show class Type Name Sequence Comment Action L3 Protocol Source IP Address Source L4 Port(s) Destination IP Address Destination L4 Port(s) Additional Parameters ------------------------------------------------------------------------------- IPv6 MY_IPV6_CLASS 2 ignore udp any any ------------------------------------------------------------------------------- IPv6 MY_IPV6_CLASS2 2 ignore udp any any
Copying a MAC class:
switch(config)# class mac MY_MAC_CLASS copy MY_MAC_CLASS2 switch(config)# do show class Type Name Sequence Comment Action EtherType Source MAC Address Destination MAC Address Additional Parameters ------------------------------------------------------------------------------- MAC MY_MAC_CLASS 2 ignore arp any any ------------------------------------------------------------------------------- MAC MY_MAC_CLASS2 2 ignore arp any any