Step 1 |
enable
|
Enables
privileged EXEC mode. Enter your password if prompted.
|
Step 2 |
configure
terminal
Device# configure terminal
|
Enters global
configuration mode.
|
Step 3 |
ip
access-list
resequence
access-list-name
starting-sequence-number
increment
Device(config)# ip access-list resequence kmd1 100 15
|
Resequences the
specified IP access list using the starting sequence number and the increment
of sequence numbers.
|
Step 4 |
ip
access-list
{standard |
extended }
access-list-name
Device(config)# ip access-list standard kmd1
|
Specifies the
IP access list by name and enters named access list configuration mode.
-
If you
specify
standard , make
sure you subsequently specify
permit and/or
deny statements
using the standard access list syntax.
-
If you
specify
extended , make
sure you subsequently specify
permit and/or
deny statements
using the extended access list syntax.
|
Step 5 |
Do one of the
following:
-
sequence-number
permit
source
source-wildcard
-
sequence-number
permit
protocol
source
source-wildcard
destination
destination-wildcard
[precedence
precedence ] [tos
tos ] [log ] [time-range
time-range-name ] [fragments ]
Device(config-std-nacl)# 105 permit 10.5.5.5 0.0.0 255
|
Specifies a
permit statement in named IP access list mode.
-
This
access list happens to use a
permit
statement first, but a
deny
statement could appear first, depending on the order of statements you need.
-
As the
prompt indicates, this access list was a standard access list. If you had
specified
extended in
Step 4, the prompt for this step would be Device(config-ext-nacl) and you would
use the extended
permit
command syntax.
|
Step 6 |
Do one of the
following:
-
sequence-number
deny
source
source-wildcard
-
sequence-number
deny
protocol
source
source-wildcard
destination
destination-wildcard
[precedence
precedence ] [tos
tos ] [log ] [time-range
time-range-name ] [fragments ]
Device(config-std-nacl)# 105 deny 10.6.6.7 0.0.0 255
|
(Optional)
Specifies a deny statement in named IP access list mode.
-
This
access list uses a
permit
statement first, but a
deny
statement could appear first, depending on the order of statements you need.
-
As the
prompt indicates, this access list was a standard access list. If you had
specified
extended in
Step 4, the prompt for this step would be Device(config-ext-nacl) and you would
use the extended
deny command
syntax.
|
Step 7 |
Do one of the following:
-
sequence-number
permit
source
source-wildcard
-
sequence-number
permit
protocol
source
source-wildcard
destination
destination-wildcard
[precedence
precedence ] [tos
tos ] [log ]
[time-range
time-range-name ]
[fragments ]
Device(config-ext-nacl)# 150 permit tcp any any log
|
Specifies a permit statement in named IP access list mode.
-
This access list happens to use a
permit statement first, but a
deny statement could appear first,
depending on the order of statements you need.
-
See the permit (IP) command for additional command syntax to
permit upper layer protocols (ICMP, IGMP, TCP, and UDP).
-
Use the
no
sequence-number command to delete an
entry.
|
Step 8 |
Do one of the following:
-
sequence-number
deny
source
source-wildcard
-
sequence-number
deny
protocol
source
source-wildcard
destination
destination-wildcard
[precedence
precedence ] [tos
tos ] [log ]
[time-range
time-range-name ]
[fragments ]
Device(config-ext-nacl)# 150 deny tcp any any log
|
(Optional) Specifies a deny statement in named IP access list
mode.
-
This access list happens to use a
permit statement first, but a
deny statement could appear first,
depending on the order of statements you need.
-
See the deny (IP) command for additional command syntax to
permit upper layer protocols (ICMP, IGMP, TCP, and UDP).
-
Use the
no
sequence-number command to delete an
entry.
|
Step 9 |
Repeat Step 5
and/or Step 6 to add sequence number statements, as applicable.
|
Allows you to
revise the access list.
|
Step 10 |
end
Device(config-std-nacl)# end
|
(Optional)
Exits the configuration mode and returns to privileged EXEC mode.
|
Step 11 |
show
ip
access-lists
access-list-name
Device# show ip access-lists kmd1
|
(Optional)
Displays the contents of the IP access list.
|