21-15
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 21 Configuring SmartPort Macros
Configuring Static SmartPort Macros
You can only delete a global macro-applied configuration on a switch by entering the
no
version of each
command in the macro. You can delete a macro-applied configuration on a port by entering the
default
interface
interface-id
interface configuration command.
This example shows how to display the
cisco-desktop
macro, to apply the macro and to set the access
VLAN ID to 25 on an interface:
Switch#
show parser macro cisco-desktop
--------------------------------------------------------------
Macro name : cisco-desktop
Macro type : default
# Basic interface - Enable data VLAN only
# Recommended value for access vlan (AVID) should not be 1
switchport access vlan $AVID
switchport mode access
# Enable port security limiting port to a single
# MAC address -- that of desktop
switchport port-security
switchport port-security maximum 1
# Ensure port-security age is greater than one minute
# and use inactivity timer
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
--------------------------------------------------------------
Switch#
configure terminal
Switch(config)#
interface gigabitethernet1/0/4
Switch(config-if)#
macro apply cisco-desktop $AVID 25
Summary of Contents for Catalyst 4500 Series
Page 2: ......
Page 4: ......
Page 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...