Specifications

2-339
Catalyst 4500 Se ries S wit ch C is co IO S C om mand R efer ence —Re lease I OS XE 3 .3.0 XO(1 5.1 (1)XO)
OL_28738 -01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
macro apply cisco-desktop
macro apply cisco-desktop
To enable the Cisco-recommended features and settings that are suitable for connecting a switch port to
a standard desktop, use the m acro apply cisco-deskto p command.
macro apply cisco-desktop $AVID access_vlanid
Syntax Description
Defaults This command has no default settings.
Command Modes Interface configur ation mode
Usage Guidelines This command can only be viewed and appl ied; it cannot be modified.
Ensure that the existing configuration on the interface does not conflict with the intended macro
configuration. Before you appl y the macro, clear the confi guration on the interfac e with the default
interface command.
Examples This example shows how to enable the Cisco-recommended features and settings on port fa2/1:
Switch(config)# interface FastEthernet2/1
Switch(config-if)# macro apply cisco-desktop $AVID 50
Switch(config-if)#
The contents of this macro are as follows:
# Basic interface - Enable data VLAN only
# Recommended value for access vlan (AVID) should not be 1
switchport access vlan $AVID [access_vlanid]
switchport mode access
# Enable port security limiting port to a single
# MAC address -- that of desktop
switchport port-security
# Ensure port-security age is greater than one minute
# and use inactivity timer
# “Port-security maximum 1” is the default and will not
# Show up in the config
switchport port-security violation restrict
switchport port-security aging time 2
switchport port-security aging type inactivity
# Configure port as an edge network port
spanning-tree portfast
spanning-tree bpduguard enable
$AVID access_vlanid Specifies an access VLAN ID.