Page 47
Chapter 55 Configuring a VoIP Network
Using SmartPorts
Global SmartPorts Template
The ciscosmartports global macro command results in the following configuration:
set macro ciscosmartports
----------------------------------------------------
set udld enable
set errdisable-timeout enable udld
set errdisable-timeout enable duplex-mismatch set errdisable-timeout enable channel-misconfig set errdisable-timeout enable bpdu-guard
set errdisable-timeout interval 60 set cdp enable
set cdp version v2
set spantree mode rapid-pvst+ set spantree macreduction enable
set spantree portfast bpdu-guard enable
set spantree global-default loop-guard enable set qos autoqos
Configuring User-Definable SmartPorts Macros
These sections describe how to define and implement SmartPorts macros:
•Overview, page 55-47
•Using the CLI to Configure User-Definable SmartPorts Macros, page 55-48
Overview
This section describes the user-definable SmartPorts macros:
•Creating a macro—The user-definable macro approach is similar in concept to the alias command. The alias command is an alias for only one command; the user-definable macro approach creates a command set macro for one or more commands. The macros are created using the set macro name name command after which you enter a list of commands that become part of the macro.
•Creating variables for macros—When defining macros, some commands require parameters that need to be specified by variables (such as the VLAN ID for Ethernet ports or the IP address for ACLs). The variables are defined as “'keyword-value” pairs, where the first parameter must be the name of the variable and the second parameter is its value. Each variable can be defined on a per-port or global basis. The variables are created using the set macro variable name_of_variable variable_value mod/port command. The variables and their values are stored in the switch in a table/database. When a macro with a variable in its definition is applied to a port, the macro takes the values from the table/database and executes the commands in the macro.
•Displaying macros and variable definitions—To display macros and their variable definitions, enter the show macro macro-namecommand and the show macro variable [all] [name name_of_macro] [mod/port] command.
•Applying a macro—After you create a macro, it needs to be applied to a port. When the macro is applied to a port, if the macro contains any variables, the variables are replaced with the respective values that are predefined in the table/database, and then the commands in the macro definition are executed. To apply a macro to a port, enter the set port macro mod/port name_of_macro command.
| | Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7 | | |
| | |
| OL-8978-02 | | | 55-47 | |
| | | |
Contents
55-1
A P T E R
55-2
Cisco IP Phone
55-3
55-4
55-5
Access Gateways
Cisco CallManager
Analog Station Gateway
55-6
FXS Interface Features
Analog Trunk Gateway
Digital Trunk Gateway
55-7
Digital Signal Processing Per T1/E1 Port
Converged Voice Gateway
Link Management
55-8
How a Call Is Made
55-9
Switch-to-Phone Connections
Show port inlinepower
Voice-Related CLI Commands
CLI Commands Ethernet Module1 WS-X6608-T1/E12 WS-X6624-FXS3
Set port inlinepower Set inlinepower defaultallocation
55-11
Configuring Per-Port Power Management
Show environment power
55-12
Task Command
Show module mod
55-13
Power Management Modes
Show version mod
55-14
Power Requirements
Phone Class Required Power W
Phone Removal
Available Power
Wall-Powered Phones
Powering Off the Phone
55-16
Phone Detection Summary
High-Availability Support
55-17
Setting the Power Mode of a Port or a Group of Ports
Setting the Default Power Allocation
Set port inlinepower mod/port auto static
55-18
Set inlinepower notify-threshold percentage
Show port inlinepower mod /port detail
Console enable show environment power
Displaying the Switch Power Environment for Modules
Show environment power mod
Console show port inlinepower 4/1 detail
55-20
Configuring the Auxiliary VLANs on Catalyst LAN Switches
Enter the set port auxiliaryvlan mod/port auxvlanid command
Understanding the Auxiliary VLANs
Untagged dot1p none
Auxiliary Vlan Configuration Guidelines
Configuring the Auxiliary VLANs
Set port auxiliaryvlan mod /ports vlan
55-22
Verifying the Auxiliary Vlan Configuration
Disabling the Auxiliary VLANs Until an IP Phone is Detected
Keyword Action
55-23
Configuring the Access Gateways
Configuring a Port Voice Interface
Show port voice fdl mod /port
Displaying a Port Voice Interface Configuration
Displaying the FDL Statistics
Show port voice interface mod /port
Show port mod /port
Displaying the Port Configuration for the Individual Ports
Console enable show port voice fdl 7/1-3
Field Description
Console show port
Port T1/E1 Pstn Interface Module
55-26
55-27
55-28
Port FXS Analog Interface Module
55-29
Displaying the Active Call Information
Show port voice active mod/port
All call conference transcode ipaddr
Console show port voice active 3/2
55-30
Console show port voice active
55-31
Configuring QoS in the Cisco IP Phone
Understanding How QoS Works in the Cisco IP Phone
Untrusted
Configuring QoS in the Cisco IP Phone
Setting the Phone Access Port Trust Mode
Set port qos mod/ports...trust-ext trusted
55-33
Configuring a Trusted Boundary to Ensure Port Security
Setting the Phone Access Port CoS Value
Verifying the Phone Access Port QoS Configuration
55-34
QoS and Cisco IP Phone Configuration
QoS, Cisco IP Phone, and PC Configuration
Supported Cisco IP Phones
55-35
Trusted Boundary Configuration Guidelines
55-36
Configuring a Trusted Boundary
55-37
Default Configuration
Specifying a Cisco IP Phone as the Trust Device
Verifying a Port’s Trust-Device State
55-38
Understanding SmartPorts Macros
55-39
SmartPorts-Cisco IP Phone
SmartPorts-Cisco Softphone
SmartPorts Guidelines and Restrictions
55-41
Command Description
Ciscoipphone Command Output
CLI Interface for SmartPorts
Detailed SmartPorts Statements
Ciscosoftphone Command Output
Console enable set port macro 3/1 ciscoipphone vlan
Console enable set port macro 3/1 ciscosoftphone vlan
Keyword Port Type
How to Use SmartPorts in Your Network
Ciscoipphone Macro Statement
Ciscosoftphone Macro Statement
55-44
SmartPorts Enhancements in Software Release
Ciscorouter SmartPorts Template
Set port macro mod/port ciscodesktop vlan vlan
Ciscoswitch SmartPorts Template
Ciscodesktop SmartPorts Template
55-45
Set port macro mod/port ciscosoftphone vlan nativevlan
Ciscoipphone SmartPorts Template
Ciscosoftphone SmartPorts Template
55-46
55-47
Configuring User-Definable SmartPorts Macros
Global SmartPorts Template
Overview
55-48
Using the CLI to Configure User-Definable SmartPorts Macros
Console enable set macro name videophone
Creating User-Defined Macros
55-49
Modifying Existing User-Defined Macros
Defining Variables
55-50
Using Special Variables
Applying a User-Defined Macro
55-51
Console enable set port macro 3/2 videophone
Console enable set port macro 3/7 videophone
55-52
Displaying Macros
Displaying Macro Variables
Show macro name nameofmacro show macro all
55-53
Clearing Macros and Macro Variables
Clear macro name nameofmacro clear macro all
55-54
Displaying Macro Port Mappings
Show macro map all name nameofmacro port mod/port
55-55
Configuring a Macro within a Macro
Console enable show macro map port 3/2
55-56