Purpose
Command or Action
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
Verifies your entries.
show running-config
Example:
Switch#
show running-config
Step 6
(Optional) Saves your entries in the configuration file.
copy running-config startup-config
Example:
Switch#
copy running-config startup-config
Step 7
Applying an IPv4 ACL to an Interface
This section describes how to apply IPv4 ACLs to network interfaces.
Beginning in privileged EXEC mode, follow these steps to control access to an interface:
SUMMARY STEPS
1.
configure terminal
2.
interface interface-id
3.
ip access-group
{
access-list-number
|
name
} {
in
|
out
}
4.
end
5.
show running-config
6.
copy running-config startup-config
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1203
How to Configure ACLs
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......