12-18
Catalyst 2950 Desktop Switch Software Configuration Guide
78-11380-03
Chapter12 Configuring Network Security with ACLs
Configuring ACLs
Examples for Compiling ACLs
For detailed information about compiling ACLs, refer to the Security Configuration Guide and the “IP
Services” chapter of the Cisco IOS IP and IP Routing Configuration Guide for IOS Release 12.1.
Figure 12-2 shows a small networked office with a stack of Catalyst 2950 switches that are connected to
a Cisco router. A host is connected to the network through the Internet using a WAN link.
UseswitchACLstodothese:
• Create a standard ACL, and filter traffic from a specific Internet host with an address 172.20.128.64.
• Create an extended ACL, and filter traffic to deny HTTP access to all Internet hosts but allow all
other types of access.
Figure 12-2 Using Switch ACLs to Control Traffic
This example uses a standard ACL to allow access to a specific Internet host with the address
172.20.128.64.
Switch(config)# access-list 6 permit 172.20.128.64 0.0.0.0
Switch(config)# end
Switch(config)# interface gigabitethernet0/1
Switch(config-if)# ip access-group 6 in
Cisco router
Catalyst 2950
Catalyst 2950
Catalyst 2950
Workstation
End
workstations
65289
Internet