Port-Security Maximum - Cisco Catalyst 4500 Series Command Reference Manual

Cisco ios command reference
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

port-security maximum

port-security maximum
To configure the maximum number of addresses on an interface for a specific VLAN or VLAN range,
use the port-security maximum command.
Syntax Description
max_value
Command Modes
VLAN-range interface submode
Command History
Release
12.2(25)EWA
Usage Guidelines
Layer 2 interfaces can be part of multiple VLANs (for example, a typical trunk port). In conjunction with
the vlan command, you can use the port-security maximum command to specify the maximum number
of secure addresses on different VLANs.
If a specific VLAN on a port is not configured with a maximum value, the maximum configured for the
port is used for that VLAN. In this situation, the maximum number of addresses that can be secured on
this VLAN is limited to the maximum value configured on the port.
Each VLAN can be configured with a maximum count that is greater than the value configured on the
port. Also, the sum total of the maximum configured values for all the VLANs can exceed the maximum
configured for the port. In either of these situations, the number of MAC addresses secured on each
VLAN is limited to the lesser of the VLAN configuration maximum and the port configuration
maximum.
Examples
This example shows how to configure a maximum number of addresses (5) on interface
Gigabit Ethernet 1/1 for VLANs 2-3:
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface g1/1
Switch(config-if)# switchport trunk encapsulation dot1q
Switch(config-if)# switchport mode trunk
Switch(config-if)# vlan 2-3
Switch(config-if-vlan-range)# port-security maximum 5
Switch(config-if-vlan-range)# exit
Switch#
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release IOS XE 3.3.0SG and IOS 15.1(1)SG)
2-508
port-security maximum max_value
The maximum number of MAC-addresses.
Modification
Support for this command was introduced on the Catalyst 4500 series switch.
Chapter 2
Cisco IOS Commands for the Catalyst 4500 Series Switches
OL-25342 -01

Advertisement

Table of Contents
loading

Table of Contents