Understanding MAC Limiting and MAC Move Limiting for Port Security on EX Series
Switches
MAC limiting protects against flooding of the Ethernet switching table (also known as
the MAC forwarding table or Layer 2 forwarding table). You enable this feature on
interfaces (ports). MAC move limiting detects MAC movement and MAC spoofing on
access interfaces. You enable this feature on VLANs.
•
MAC Limiting on page 2838
•
MAC Move Limiting on page 2838
•
Actions for MAC Limiting and MAC Move Limiting on page 2839
•
MAC Addresses That Exceed the MAC Limit or MAC Move Limit on page 2839
MAC Limiting
MAC limiting sets a limit on the number of MAC addresses that can be learned on a single
Layer 2 access interface or on all the Layer 2 access interfaces on the switch. Junos
operating system (Junos OS) provides two MAC limiting methods:
•
Maximum number of MAC addresses—You configure the maximum number of dynamic
MAC addresses allowed per interface. When the limit is exceeded, incoming packets
with new MAC addresses are treated as specified by the configuration. The incoming
packets with new MAC addresses can be ignored, dropped, logged, or the interface
can be shut down or temporarily disabled. Note that static MAC addresses do not
count toward the limit you specify for dynamic MAC addresses.
•
Allowed MAC—You configure specific “allowed” MAC addresses for the access interface.
Any MAC address that is not in the list of configured addresses is not learned and the
switch logs the message. Allowed MAC binds MAC addresses to a VLAN so that the
address does not get registered outside the VLAN. If an allowed MAC setting conflicts
with a dynamic MAC setting, the allowed MAC setting takes precedence.
NOTE:
If you do not want the switch to log messages received for invalid
MAC addresses on an interface that has been configured for specific “allowed”
MAC addresses, you can disable the logging by configuring the
no-allowed-mac-log
statement.
MAC Move Limiting
MAC move limiting causes the switch to track the number of times a MAC address can
move to a new interface (port). It can help to prevent MAC spoofing, and it can also
detect and prevent loops.
If a MAC address moves more than the configured number of times within one second,
the switch performs the configured action. You can configure MAC move limiting to apply
to all VLANs or to a specific VLAN.
Copyright © 2010, Juniper Networks, Inc.
2838
Complete Software Guide for Junos
®
OS for EX Series Ethernet Switches, Release 10.3
Summary of Contents for JUNOS OS 10.3 - SOFTWARE
Page 325: ...CHAPTER 17 Operational Mode Commands for System Setup 229 Copyright 2010 Juniper Networks Inc ...
Page 1323: ...CHAPTER 56 Operational Mode Commands for Interfaces 1227 Copyright 2010 Juniper Networks Inc ...
Page 2841: ...CHAPTER 86 Operational Commands for 802 1X 2745 Copyright 2010 Juniper Networks Inc ...
Page 3367: ...CHAPTER 113 Operational Mode Commands for CoS 3271 Copyright 2010 Juniper Networks Inc ...
Page 3435: ...CHAPTER 120 Operational Mode Commands for PoE 3339 Copyright 2010 Juniper Networks Inc ...
Page 3529: ...CHAPTER 126 Operational Mode Commands for MPLS 3433 Copyright 2010 Juniper Networks Inc ...