ISSN 3030-3362 · Ochiq kirishli ilmiy jurnal Telegram kanal
Research and ImplementationTadqiq va tatbiq · Исследования и внедрение
Ilmiy maqola

Ensuring network security using cisco technology

Fergana State Technical University ROR
Son: Tom 3, № 10 (2025) Betlar: 75–79 E'lon qilingan: 01.11.2025 Til: ingliz

Annotatsiya

Port security is a key Layer 2 feature that protects switch access ports from unauthorized devices by restricting access based on MAC addresses. This paper examines the configuration and performance of port security using manual and sticky MAC address methods. Tests were performed on Fast Ethernet ports to observe the effects of violation modes such as shutdown and restrictive. The results show that port security effectively blocks unauthorized access, maintains network stability, and enhances overall data protection in Ethernet-based networks

Kalit so'zlar

To'liq matn

Introduction

In modern network infrastructures, security is one of the most critical components of reliable data communication. Unauthorized access to switches or network ports can result in data breaches, denial-of-service attacks, or system compromise. To mitigate these threats, port security plays a vital role in restricting network access at the switch level. Port security allows administrators to control and limit the number of devices that can connect to a specific port based on their MAC (Media Access Control) addresses.

Port Security Performance: You can use port security to block access to an Ethernet, Fast Ethernet, or Gigabit Ethernet port if the MAC address of the station trying to access the port is different from the MAC addresses specified for that port. Alternatively, you can use port security to filter traffic destined for or received from a specific host based on the host's MAC address.To allow traffic based on host MAC address: The total number of MAC addresses that can be specified for each port is limited to 1024 and the global resource of 1 default MAC address. That is, the total number of MAC addresses on any port should not exceed 1025.The maximum number of MAC addresses you can allocate per port depends on your network configuration. The following combinations are valid distributions:

• 1025 (1 + 1024) addresses on one port and 1 address each on other ports.

• 513 (1 + 512) each on two ports in the system and 1 address each on the remaining ports.

• 901 (1 + 900) on one port, 101 (1 + 100) on another port, 25 (1 + 24) on the third port, and 1 address on each of the remaining ports.

This feature enables the switch to block access attempts from unauthorized devices and ensures that only pre-approved hosts can communicate within the network. The flexibility of configuring static, dynamic, or sticky MAC addresses helps network engineers maintain both security and operational efficiency. Moreover, by defining violation modes such as shutdown or restrictive, administrators can decide how the switch reacts during a security breach.

This paper examines the performance and operational behavior of port security mechanisms on Ethernet, Fast Ethernet, and Gigabit Ethernet ports. The objective is to analyze configuration parameters, evaluate their influence on network stability, and propose effective practices for secure port management in enterprise networks.

Review.

Port security is a fundamental feature in network switches designed to protect Layer 2 access ports from unauthorized access. Several researchers and network engineers have emphasized its importance in maintaining network integrity and reducing security vulnerabilities. According to Cisco and IEEE standards, the port security feature operates by associating specific MAC addresses with switch ports and enforcing access control based on these associations.

Earlier studies on network access control mainly focused on higher-layer security measures such as authentication protocols (e.g., 802.1X, RADIUS) and encryption (e.g., IPsec, SSL/TLS). However, port-level protection offers a more direct and hardware-based mechanism to prevent intrusions before they propagate through the network.

A switch can store up to 1024 manually configured MAC addresses per port, plus one global default MAC address, allowing a total of 1025 secure entries. Various configurations can distribute these addresses among ports depending on network design — for example, one port can use all 1025 addresses, while others maintain only a single secure entry. This flexibility makes port security scalable across small and large networks alike.

When traffic arrives at a secured port, the switch compares the source MAC address with a predefined secure list. If the address is unknown or not authorized, the port either drops the packet, restricts communication, or completely shuts down. These actions depend on the configured violation mode:

Shutdown Mode: The port is disabled permanently or temporarily when a violation occurs.

Restrictive Mode: The port remains active but drops packets from unauthorized hosts.

Moreover, administrators can manually set the maximum number of MAC addresses allowed per port and determine how long the addresses remain protected before becoming vulnerable. Secure addresses, whether manually configured or dynamically learned, are saved in non-volatile memory (NVRAM), ensuring persistence after system reboot.

Cisco recommends removing all static or permanent CAM (Content Addressable Memory) entries before enabling port security, as conflicts may prevent the feature from functioning properly. Therefore, understanding the operational limits, configuration commands, and behavioral responses of port security is essential for optimizing both performance and protection.

Methods

The port security performance evaluation was conducted using a Cisco switch environment configured via command-line interface (CLI). Two computers, PC1 and PC2, were connected to Fast Ethernet ports (fa0/1 and fa0/2). Each port was configured in access mode with port security enabled.

Switch(config)#int fa0/2

Switch(config-if)#switchport mode access

Switch(config-if)#switchport port-security

Switch(config-if)#switchport port-security mac-address sticky

Switch(config-if)#switchport port-security violation shutdown

Switch(config-if)#switchport port-security maximum 1

For Port fa0/2 connected to PC2, identical commands were executed.

The "sticky" command dynamically learns the MAC address of the connected host and stores it in NVRAM, making it persist through reboots. The “violation shutdown” command ensures that the port is disabled immediately if an unauthorized MAC address attempts access. Performance metrics, such as reaction time, packet loss, and port recovery, were measured using network monitoring tools and SNMP traps.

Results.After applying the above configurations, both ports were successfully secured, allowing only their assigned hosts to communicate. Any unauthorized device attempting to connect was instantly blocked. The LED status for the port changed to orange during a violation, indicating shutdown mode activation. SNMP traps were generated and sent to the network management system (NMS).

Discussion.

The experiment confirms that port security provides a robust, hardware-level defense mechanism against unauthorized network access. When properly configured, it effectively isolates untrusted devices and ensures that only verified systems participate in LAN communication.

Compared to higher-level security methods (like VLAN ACLs or NAC), port security offers immediate protection at the access layer with minimal resource consumption. The sticky MAC feature is particularly useful in dynamic environments, where host devices may change but security policies remain consistent.However, administrators should carefully plan MAC address allocations. For example, overconfiguring secure MAC limits (close to 1025) can impact switch performance, especially in large-scale deployments. Likewise, violation mode selection must align with operational policies. The shutdown mode is the safest but may cause downtime; restrictive mode maintains connectivity but risks allowing partial traffic leaks if not properly managed.A key observation is the behavior described in the note: if a secure MAC address appears on another port configured in restrictive mode, the port will shut down instead of limiting traffic. This highlights the importance of maintaining unique MAC assignments per port.Additionally, automatic aging of MAC addresses can be used to enhance flexibility, particularly in networks with frequently changing endpoints. By configuring an aging timer, network administrators can automatically refresh secure address tables without manual intervention.The combination of static and dynamic configurations—where some MACs are manually defined and others are dynamically learned—proves optimal for mixed enterprise environments. Monitoring tools like SNMP provide real-time alerts during security breaches, enabling faster troubleshooting.

Overall, port security offers an efficient and cost-effective security layer that complements other network protection mechanisms such as firewalls and intrusion prevention systems (IPS).

Conclusion.Port security is an essential feature for protecting Ethernet-based networks from unauthorized access. Through the control of MAC address learning and violation responses, it ensures that only legitimate hosts gain access to the network. The experiment demonstrates that configuring port security with sticky MAC and shutdown mode provides the highest level of protection against intrusion.

The ability to manually or dynamically assign secure MAC addresses allows flexibility and scalability in various network environments. Proper configuration planning, combined with SNMP monitoring, significantly enhances network reliability and minimizes downtime caused by security breaches.

In conclusion, port security improves Layer 2 security performance and should be implemented as a standard feature in all managed switch deployments. It not only strengthens network defense but also simplifies the management of access control at the physical network layer.

Foydalanilgan adabiyotlar

  1. Goni, Osman. (2021). Design, Deployment and Implementation of Local Area Network (LAN) at BAEC Head Quarter. International Journal of Computer Science and Mobile Computing. 10. 15-23. 10.47760/ijcsmc.2021.v10i05.003.
  2. A.A. Kaxxarov, Yu.Sh. Avazov, U.A. Ruziyev(2019). “Kompyuter tizimlari va tarmoqlari”.
  3. Behrouz A. Forouzan (2011). Data communications and networking (sie).
  4. Jill West, Tamara Dean, and Dean Andrews (2018). Network+ guide to networks.
  5. Djalilov, M., Burxonova, M., Suyumov, J., Polvonov, A., & Abduvaliyev, I. (2024). The compelled fluctuations of the rectangular two-layer a piecewise homogeneous plate of the constant thickness. In E3S Web of Conferences (Vol. 508, p. 04009). EDP Sciences.