ip access-list copy to

Use this command to copy a pre-existing ACL to a new ACL.

Syntax

ip access-list {standard | extended | policy} {access-list-number | name} copy to {access-list-number | name}

Parameters

standard | extended | policy Specifies whether the access list is a standard, extended, or policy access list.
access-list-number | name Specifies a standard or extended access list number or name. When entering a number value, standard access list valid values are from 1 to 99. Extended access list valid values are from 100 to 199.

Defaults

None.

Mode

Configuration command, Global configuration.

Usage

When copying an access list, the access list to copy must already exist. When copying an access list, the access list the original is being copied to must not already exist.

ACL names can be up to 64 characters in length.

Example

This example creates standard access list 2 and copys standard access list 1 to it:

System(rw-config)->ip access-list standard 1 copy to 2
System(rw-config)->