SUMMARY STEPS
1.
enable
2.
configure terminal
3.
line
[
console
|
vty
]
line-number
4.
access-class access-list-number
{
in
|
out
}
5.
end
6.
show running-config
7.
copy running-config startup-config
DETAILED STEPS
Purpose
Command or Action
Enables privileged EXEC mode. Enter your password if prompted.
enable
Example:
Switch(config)#
enable
Step 1
Enters the global configuration mode.
configure terminal
Example:
Switch#
configure terminal
Step 2
Identifies a specific line to configure, and enter in-line
configuration mode.
line
[
console
|
vty
]
line-number
Example:
Switch(config)#
line console 0
Step 3
•
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 4
Returns to privileged EXEC mode.
end
Example:
Switch(config-line)#
end
Step 5
Catalyst 2960-X Switch Security Configuration Guide, Cisco IOS Release 15.0(2)EX
166
OL-29048-01
Configuring IPv4 ACLs
Applying an IPv4 ACL to a Terminal Line