|
To make access list configuration easier on
administrators, Cisco IOS version 12.0.2(T) introduced the
remark
command. Access list remarks, or comments, are used
to include documentation and descriptions to facilitate the understanding of all
or parts of a specific access list. By describing your lists in simple terms,
you can quickly sum up the router's configuration -- without having to sift
through dozens of access list statements in an attempt to piece together its
function. Good programmers use remarks liberally in their programs to describe
the function of certain blocks of code.
The syntax for adding a remark to a numbered
access list is as follows:
router(config)#access-list access-list-number
remark remark
When configuring a named access list, you issue
the remark command in named access list configuration mode:
router(config-std-nacl)#remark remark
After entering the remark
keyword, you can include an alphanumeric
string of up to 100 characters to describe the access list. It is good form to
enter a remark statement
before configuring the permits and denies. That way the description will appear
as the first entry in the configuration file. In a long list, you may want to
include multiple remark statements
and enter them before the part of the list that you want to describe. The figure
illustrates proper use of the remark
option.
|