FTTH fiber-to-the-home solutions
Optical communication component solutions

Switch restricts MAC address access

Switch restricts MAC address access

Switches can restrict network access by allowing or blocking devices based on their MAC addresses using MAC filtering or port security.How MAC Filtering WorksMAC filtering is a network access control method where a switch or router checks a device's MAC (Media Access Control) address against a configured list to determine whether it can connect to the network . There are two main modes:Allow list (whitelist): Only devices with MAC addresses explicitly listed are permitted to access the network.Deny list (blacklist): Devices with MAC addresses on the list are blocked, while all others are allowed . MAC filtering can be enforced at the connection layer, preventing the device from joining the network, or at the DHCP layer, allowing connection but denying an IP address so network services cannot be used .Port Security on SwitchesOn managed switches, especially Cisco devices, port security is commonly used to restrict MAC addresses per port . Key features include:Static MAC addresses: Only specific MAC addresses are allowed on a port.Sticky MAC addresses: The switch dynamically learns MAC addresses and adds them to the allowed list.Violation actions: When an unauthorized MAC address is detected, the switch can protect (ignore traffic), restrict (log and drop traffic), or shutdown the port . Example Cisco commands for port security:CodeCopyswitchport mode accessswitchport port-securityswitchport port-security mac-address switchport port-security violation restrict This setup ensures that unknown devices are blocked immediately when they attempt to connect .MAC Access Control Lists (ACLs)MAC ACLs can also be applied to restrict non-IP traffic at Layer 2, but they are less flexible than port security for general device access control . They are mainly used in bridging scenarios rather than for general network access restriction.Considerations and LimitationsSecurity: MAC addresses can be spoofed, so MAC filtering or port security should be combined with stronger authentication methods like 802.1X or RADIUS for robust security .Scalability: Maintaining large allow or deny lists manually can be cumbersome, especially in networks with many devices .Network management: Changes in device inventory require updating MAC lists to avoid accidental lockouts . In summary, switches can restrict access by using MAC filtering, port security, or MAC ACLs, with port security being the most practical for per-port control. For enterprise networks, combining these methods with authentication servers provides stronger protection against unauthorized devices.

Aug 01, 2025

Mac filtering – How do you block a MAC address on your network

I have a Cisco network with multiple Layer-2 switches (CAT & IOS) connecting back to Core Layer-3 switches. Dynamic DHCP (D-DHCP) is defined and a device can obtain different IP

Apr 12, 2026

Example for Configuring MAC Address Limiting on an Interface

The switch limits the number of MAC address entries based on VLANs or interfaces. In offices where clients seldom change, you can configure MAC address limiting to control user access.

Nov 18, 2025

Understanding MAC Limiting and MAC Move Limiting | Junos OS

MAC limiting protects against flooding of the Ethernet switching table, and is enabled on Layer 2 interfaces (ports). MAC move limiting detects MAC movement and MAC spoofing on access

Dec 02, 2025

Cisco CCNA – Port Security and Configuration

Switch (config-if)# switchport port-security violation restrict Good. After you have configured port security in the desired mode on a switch, it''s time to verify the configuration and the learned MAC addresses

May 11, 2026

Switchport Port Security Explained With Examples

You have two options for mapping MAC addresses to switch ports: static and dynamic. The static method is more secure than the dynamic method, but it requires more manual work.

Aug 01, 2025

How to implement MAC address filtering · Trace Warrior

Set up a MAC allowlist on your router or switch, work around MAC randomization on modern phones, and understand what filtering actually protects

Mar 29, 2026

Solved: Blocking Certain MAC Addresses

it is possible to allow only certain MAC addresses to connect to the port. However are there any commands which can EXCLUDE some particular MAC address, (without having to follow

Sep 09, 2025

How to configure port-security on Cisco Switch

In this lesson, you will learn how to configure port security to restrict the number of MAC addresses per port, specify which MAC addresses are allowed, and control what happens when violations occur.

Jun 10, 2026

Cisco switch mac address block

If you mean you want to block hosts from reaching other devices which you define by Mac address then you need a Mac ACL. They can be quite

Nov 18, 2025

How to configure port-security on Cisco Switch

Port-security can be used to filter MAC-addresses on Cisco switches. In this lesson you will learn how it works and how to configure it.

Feb 08, 2026

What is MAC address filtering? Selective Network

MAC address filtering operates on network devices and uses a system of allowing - known as "whitelisting" - or denying - referred to as "blacklisting" - specific MAC

Nov 15, 2025

How to Block or Allow Several MAC Addresses on All My Cisco Switches

I''d like a way to easily apply and centrally manage rules to only allow specific MAC addresses to access any of the ports for any of the VLANs on any of my Cisco switches. I have the

Feb 02, 2026

How to Configure MAC ACL: Restrict Access and Filter Traffic on

Get a step-by-step guide on how to configure access restriction and traffic filtering on switch ports using MAC ACL (MAC Access Control List). Learn how to improve the security and manageability of your

Feb 02, 2026

Do you limit MAC addresses on your network switches?

Limiting MAC addresses on your network switches to enhance security, control access, and optimize network performance. Learn how and why to implement MAC address restrictions effectively.

Sep 15, 2025

MAC Filtering: What Is It and Should I Enable It?

MAC address filtering helps protect your network from others. In this article, learn how to enable and disable it to secure your network.

Apr 27, 2026

Configure MAC-Based Access Control List (ACL) and Access Control

It blocks or allows users to access specific resources. An ACL contains the hosts that are permitted or denied access to the network device. Media Access Control (MAC)-based Access

Jun 15, 2026

How to Block or Allow Several MAC Addresses on All My Cisco Switches

Hello. I have about ten Cisco switches in my company. I''d like a way to easily apply and centrally manage rules to only allow specific MAC addresses to access any of the ports for any of the

Jun 24, 2026

What is MAC Filtering? – ITU Online IT Training

MAC filtering works by comparing a device''s MAC address against a configured list of approved or denied addresses. The network device, such as a router, switch, or wireless access

Jul 15, 2026

Port Security

This article describes how to configure port security on Cisco devices to associate specific MAC addresses with the interface.

Aug 05, 2025

Understanding MAC Filtering: A Key Network Security Measure

MAC filtering is a network security technique that allows or restricts device access to a network based on the unique hardware identifier assigned to each network interface card. The term MAC stands for

May 26, 2026

How to Lock Down Cisco Switch Ports with Port

Answer: Port Security is a feature on Cisco switches that restricts input to an interface by limiting and identifying MAC addresses of the workstations that

May 14, 2026

Microsoft Word

Configuring MAC Access Control Lists (ACLs) This document describes how to set up MAC ACLs. In this example we will use MAC ACLs to restrict access to ports on a switch based on the MAC

Feb 07, 2026

Configuring Port Security on Cisco IOS Switch

By default, only 1 MAC address is allowed by the Cisco switch on a single port and if any other device tries to connect using that port, switch

More industry information

Contact Us

We Look Forward to Working with You

Contact Information

Phone +27 64 827 3915
Address Unit 9, Highveld Technopark, 43 Atlas Road, Johannesburg, 2196, South Africa

Send an Inquiry