12-2
Software Configuration Guide—Release 12.2(25)SG
OL-7659-03
Chapter12 Configuring SmartPort Macros
Configuring Smart-Port Macros
Configuring Smart-Port Macros
You can create a new SmartPort macro or use an existing macro as a template to create a new macro that
is specific to your application. After you create the macro, you can apply it to an interface or a range of
interfaces.
This section includes information about these topics:
Default SmartPort Macro Configuration, page 12-2
SmartPort Macro Configuration Guidelines, page 12-4
Creating and Applying SmartPort Macros, page 12-4

Default SmartPort Macro Configuration

This section illustrates the default configurations for the four supported macros. These macros can only
be viewed and applied; they cannot be modified by the user.
cisco-desktop, page 12-2
cisco-phone, page 12-2
cisco-switch, page 12-3
cisco-router, page 12-3

cisco-desktop

This is the example for the cisco-desktop macro:
# 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
# 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

cisco-phone

This is the example for the cisco-phone macro:
# VoIP enabled interface - Enable data VLAN
# and voice VLAN (VVID)
# Recommended value for access vlan (AVID) should not be 1\
switchport access vlan $AVID
switchport mode access
# Update the Voice VLAN (VVID) value which should be
# different from data VLAN