DETAILED STEPS
Purpose
Command or Action
Enters the global configuration mode.
configure terminal
Example:
Switch#
configure terminal
Step 1
Identifies a specific line to configure, and enter in-line
configuration mode.
line
[
console
|
vty
]
line-number
Example:
Switch(config)#
line console 0
Step 2
•
console
—
Specifies the console terminal line. The console
port is DCE.
•
vty
—
Specifies a virtual terminal for remote console access.
The
line-number
is the first line number in a contiguous group
that you want to configure when the line type is specified. The
range is from 0 to 16.
Restricts incoming and outgoing connections between a particular
virtual terminal line (into a device) and the addresses in an access
list.
access-class access-list-number
{
in
|
out
}
Example:
Switch(config-line)#
access-class 10 in
Step 3
Returns to privileged EXEC mode.
end
Example:
Switch(config-line)#
end
Step 4
Displays the access list configuration.
show running-config
Example:
Switch#
show running-config
Step 5
(Optional) Saves your entries in the configuration file.
copy running-config startup-config
Example:
Switch#
copy running-config startup-config
Step 6
Applying an IPv4 ACL to an Interface
This section describes how to apply IPv4 ACLs to network interfaces.
Catalyst 2960-XR Switch Security Configuration Guide, Cisco IOS Release 15.0(2)EX1
130
OL-29434-01
Configuring IPv4 ACLs
Applying an IPv4 ACL to an Interface