21-2
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 SmartPort Macros
Cisco also provides a collection of pretested, Cisco-recommended baseline configuration templates for
Catalyst switches. The online reference guide templates provide the CLI commands that you use to
create SmartPort macros based on the use of the port. Use the configuration templates to create
SmartPort macros to build and deploy Cisco-recommended network designs and configurations.
Configuring SmartPort 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:
•
Passing Parameters Through the Macro, page 21-2
•
Default SmartPort Macro Configuration, page 21-3
•
SmartPort Macro Configuration Guidelines, page 21-6
•
Creating SmartPort Macros, page 21-7
•
Applying SmartPort Macros, page 21-8
Passing Parameters Through the Macro
Some commands might not be sufficiently generic for all the interfaces; for example, VLAN ID for
Layer 2 interfaces and the IP address for Layer 3 interface. Retaining such commands in macro
definitions requires that you change the value of such parameters (such as VLAN ID or IP address)
before applying the macro to different interfaces. Alternatively, it requires that you create different
macros for each possible value of its parameters.
Table 21-1
Cisco-Default SmartPort Macros
Macro Name
1
1.
Cisco-default SmartPort macros vary depending on the software version running on your switch.
Description
cisco-global
Use this global configuration macro to enable rapid PVST+, loop guard, and dynamic
port error recovery for link state failures.
cisco-desktop
Use this interface configuration macro for increased network security and reliability
when connecting a desktop device, such as a PC, to a switch port.
cisco-phone
Use this interface configuration macro when connecting a desktop device such as a
PC with a Cisco IP Phone to a switch port. This macro is an extension of the
cisco-desktop
macro and provides the same security and resiliency features, but with
the addition of dedicated voice VLANs to ensure proper treatment of delay-sensitive
voice traffic.
cisco-switch
Use this interface configuration macro when connecting an access switch and a
distribution switch or between access switches connected using GigaStack modules
or GBICs.
cisco-router
Use this interface configuration macro when connecting the switch and a WAN
router.
Содержание Catalyst 4500 Series
Страница 2: ......
Страница 4: ......
Страница 2086: ...Index IN 46 Software Configuration Guide Release IOS XE 3 9 0E and IOS 15 2 5 E ...