ip preserve-acl-user-input-format
ACL implementations automatically display the TCP or UDP port name instead of the port number.
Global configuration mode
When the option to preserve user input is enabled, the system displays either the port name or the number as used during configuration.
The
no form of the command removes the user input perseverance configuration.
The following example shows the behavior when the option to preserve user input is
enabled. In this example, the TCP port is configured by number (80) when configuring
ACL group acl140. However,
show ip access-lists acl140 reverts to the port name for the TCP port (HTTP in this example). When the ip preserve-acl-user-input-format command is configured, the
show ip access-lists command displays either the TCP port number or name, depending on how it was configured
by the user.
device(config)# ip access-list extended acl140 device(config-ext ipacl-acl140)# permit tcp any any eq 80 device(config-ext ipacl-acl140)# permit tcp any any eq ftp device(config-ext ipacl-acl140)# show ip access-lists acl140 Extended IP access list acl140 permit tcp any any eq http permit tcp any any eq ftp device(config-ext ipacl-acl140)# ip preserve-ACL-user-input-format device(config-ext ipacl-acl140)# show ip access-lists acl140 Extended IP access list acl140 permit tcp any any eq 80 permit tcp any any eq ftp