28-18

Catalyst 2960 Switch Software Configuration Guide

78-16881-01

Chapter 28      Configuring Network Security with ACLs

Configuring IPv4 ACLs

IPv4 ACL Configuration Examples

This section provides examples of configuring and applying IPv4 ACLs. For detailed information about 

compiling ACLs, see the 

Cisco IOS Security Configuration Guide, Release 12.2 

and to the Configuring 

IP Services” section in the “IP Addressing and Services” chapter of the 

Cisco IOS IP Configuration 

Guide, Release 12.2.

This example uses a standard ACL to allow a port 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

Switch(config)# 

end

Switch# 

show access-lists

Standard IP access list 6

   10 permit 172.20.128.64 wildcard bits 0.0.0.0

Switch(config)# 

interface gigabitethernet0/1

Switch(config-if)# 

ip access-group 6 in

This example uses an extended ACL to deny to a port traffic coming from port 80 (HTTP). It permits all 

other types of traffic.

Switch(config)# 

access-list 106 deny tcp any any eq 80

Switch(config)# 

access-list 106 permit ip any any 

Switch(config)# 

end

Switch(config)# 

interface gigabitethernet0/1

Switch(config-if)# 

ip access-group 106 in

Numbered ACLs

This ACL accepts addresses on network 36.0.0.0 subnets and denies all packets coming from 56.0.0.0 

subnets. The ACL is applied to packets entering a port.

Switch(config)# 

access-list 2 permit 36.0.0.0 0.255.255.255

Switch(config)# 

access-list 2 deny 56.0.0.0 0.255.255.255 

Switch(config)# 

interface gigabitethernet0/1

Switch(config-if)# 

ip access-group 2 in

Extended ACLs

In this example, suppose that you have a network connected to the Internet, and you want any host on 

the network to be able to form TCP connections to any host on the Internet. However, you do not want 

IP hosts to be able to form TCP connections to hosts on your network, except to the mail (SMTP) port 

of a dedicated mail host. 

SMTP uses TCP port 25 on one end of the connection and a random port number on the other end. The 

same port numbers are used throughout the life of the connection. Mail packets coming in from the 

Internet have a destination port of 25. Because the secure system of the network always accepts mail 

connections on port 25, the incoming services are controlled.

Switch(config)# 

access-list 102 permit tcp any 128.88.0.0 0.0.255.255 eq 23

Switch(config)# 

access-list 102 permit tcp any 128.88.0.0 0.0.255.255 eq 25

Switch(config)# 

interface gigabitethernet0/1

Switch(config-if)# 

ip access-group 102 in

Page 482
Image 482
Open full-size image

2960 specifications

Cisco Systems 2960 series switches are a prominent solution in the networking landscape, known for their reliability, scalability, and feature-rich offerings. Ideal for small to medium-sized enterprises, these switches provide a robust foundation for network infrastructure, ensuring optimal performance and connectivity.

One of the standout features of the Cisco 2960 series is its Layer 2 switching capabilities. The switches support multiple VLANs (Virtual Local Area Networks), allowing network administrators to segment traffic efficiently and enhance security protocols. This is crucial in modern networks where managing traffic and isolating sensitive information is a priority.

The Cisco 2960 series also incorporates advanced Quality of Service (QoS) features, enabling the prioritization of critical applications and services. This functionality ensures that time-sensitive data, such as voice and video traffic, maintains a high quality of service even in congested networks. With support for IEEE 802.1p and DSCP marking, administrators can fine-tune their network performance to meet specific organizational needs.

Power over Ethernet (PoE) is another significant characteristic of the Cisco 2960 series. This feature allows switches to deliver electrical power alongside data over Ethernet cables to devices such as IP phones, wireless access points, and surveillance cameras. With PoE, organizations can reduce clutter from power cables and increase deployment flexibility for various devices.

In terms of security, the Cisco 2960 series is equipped with a range of integrated security features. The switch supports port security, 802.1X authentication, and Access Control Lists (ACLs), providing robust defenses against unauthorized access and potential network vulnerabilities. These security measures are essential for protecting sensitive data and ensuring compliance with industry regulations.

Moreover, the Cisco 2960 series offers enhanced network management capabilities with Cisco's Intelligent Network Services. This includes support for Simple Network Management Protocol (SNMP), Cisco Prime, and Embedded Event Manager (EEM), allowing for efficient monitoring, troubleshooting, and policy enforcement across the network.

Additionally, the Cisco 2960 switches provide various models and configurations, catering to different networking needs. Options include models with varying port densities, uplink configurations, and stacking capabilities, making it easy for organizations to choose solutions that align perfectly with their requirements.

In summary, the Cisco 2960 series is a versatile and essential component of modern networking environments. Its advanced features, including Layer 2 support, QoS, PoE, robust security, and diverse management tools, make it an excellent choice for organizations looking to build a strong and secure network infrastructure.