Cisco Catalyst 4500 Series Configuration Manual page 487

Ios software configuration guide isco ios xe 3.9.0e and ios 15.2(5)ex
Hide thumbs Also See for Catalyst 4500 Series:
Table of Contents

Advertisement

Chapter 2
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 macro apply cisco-desktop command.
Syntax Description
$AVID access_vlanid
Command Default
This command has no default settings.
Command Modes
Interface configuration mode
Command History
Release
12.2(18)EW
Usage Guidelines
This command can only be viewed and applied; it cannot be modified.
Ensure that the existing configuration on the interface does not conflict with the intended macro
configuration. Before you apply the macro, clear the configuration on the interface with the default
interface command.
Examples
The following 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
macro apply cisco-desktop $AVID access_vlanid
Specifies an access VLAN ID.
Modification
This command was introduced on the Catalyst 4500 series switch.
Catalyst 4500 Series Switch Cisco IOS Command Reference—Release XE 3.9.xE and 15.2(5)Ex
macro apply cisco-desktop
2-447

Advertisement

Table of Contents
loading

Table of Contents