Attaching a remark to an ACE

A remark is numbered in the same way as an ACE and uses the same sequence number as the ACE to which it refers. This operation requires that the remark for a given ACE be entered prior to entering the ACE itself.

Syntax:

remark <remark–str> <1–2147483647> <remark–str>

no <seq–#> remark

These commands are used in the ACL context to enter a comment related to an adjacent ACE. To associate a remark with a specific ACE, do one of the following:
  • Enter the remark first (without a sequence number) and immediately follow it with the ACE (also without a sequence number). The remark and the following ACE will have the same (automatically generated) sequence number.

  • Enter the ACE with or without a sequence number, then use <1–2147483647> remark <remark–str> to enter the remark, where a number in the range of <1–2147483647> matches the sequence number of the related ACE. This method is useful when you want to enter a remark at some time after you have entered the related ACE.

<remark–str> : The text of the remark. If spaces are included in the remark, the remark string must be delimited by either single quotes or double quotes. For example:
remark Permits_Telnet_from_2001:db8:0:1ab_subnet
remark "Permits Telnet from 2001:db8:0:1ab subnet"
remark 'Permits Telnet from 2001:db8:0:1ab subnet'

<1–2147483647> : The range of valid sequence numbers for an ACL.

For example, if the sequence number of the last ACE entered is "30", and sequence numbering is set to the (default) interval of 10, entering a remark and another ACE without specifying any sequence numbers results in a sequence number of "40" for both the remark and the ACE that follows it.

The no form of the command deletes the indicated remark, but does not affect the related ACE.