CH A P T E R 55 Configuring a VoIP Network This chapter describes how to configure a Voice-over-IP (VoIP) network on the Catalyst 6500 series switches. Note While this chapter introduces a number of Cisco networking products that are related to VoIP, the primary focus of the chapter is to provide configuration information for integrating the Catalyst 6500 series products into your VoIP network.
Chapter 55 Configuring a VoIP Network Understanding How a VoIP Network Works Understanding How a VoIP Network Works A telephony system built on an IP network instead of the traditional circuit-switched private branch exchange (PBX) network is called an IP PBX system. (See Figure 55-1.
Chapter 55 Configuring a VoIP Network Understanding How a VoIP Network Works The IP phone is Dynamic Host Configuration Protocol (DHCP) capable. Optionally, you can program the IP phone with a static IP address. The IP phone can be powered by the following sources: • External power source—Optional transformer and power cord for connecting to a standard wall receptacle. • Ethernet switching modules with the voice daughter card installed—Provides the inline power to the IP phone.
Chapter 55 Configuring a VoIP Network Understanding How a VoIP Network Works Figure 55-2 Connecting the Cisco IP Phone 7960 to the Catalyst 6500 Series Switch 10/100BASE-TX Module (WS-X6348-RJ45V) * 10/100BASE-TX Module (WS-X6348-RJ45V) * 10/100BASE-TX Module (WS-X6348-RJ45V) * 10/100BASE-TX Module (WS-X6348-RJ45V) * IP phone (Example 1) PC (Example 2) IP phone PC (Example 3) IP phone IP phone PC (Example 4) Gigabit Ethernet Module with * Inline power daughter card Catalyst 6500 series sw
Chapter 55 Configuring a VoIP Network Understanding How a VoIP Network Works Cisco CallManager Cisco CallManager is an open and industry-standard call processing system; its software runs on a Windows NT server and sets up and tears down the calls between the phones, integrating traditional PBX functionality with the corporate IP network.
Chapter 55 Configuring a VoIP Network Understanding How a VoIP Network Works Table 55-1 24-Port FXS Analog Interface Module Features (continued) Digital Signal Processing Per Port Line echo cancellation (32 ms) Impedance (600 ohms) Programmable analog gain, signaling timers Fax pass-through SPAN2 or port mirroring support FXS Interface Features Address signaling formats: In-band DTMF Signaling formats: Loop start Ringing tone: Programmable Ringing voltage: Programmable, based on country Ringing freque
Chapter 55 Configuring a VoIP Network Understanding How a VoIP Network Works Table 55-2 8-Port T1/E1 PSTN Interface Module Features Digital Signal Processing Per T1/E1 Port G.711 to G.723 and G.
Chapter 55 Configuring a VoIP Network Understanding How VLANs Work • One or two T1 digital ports for connecting to the following: – PSTN using FXO emulation – T1 channel bank using FXS emulation – PBX through a trunk (tie) line using ear and mouth (E&M) emulation These ports can be used to integrate a VoIP network with POTS devices, PBXs, or the PSTN. To configure the Cisco VG200, refer to the documentation that shipped with the gateway.
Chapter 55 Configuring a VoIP Network Understanding How VLANs Work Note For more information about the VLANs, see Chapter 11, “Configuring VLANs.” Figure 55-3 shows how to connect a Cisco IP Phone 7960 to a Catalyst 6500 series switch.
Chapter 55 Configuring a VoIP Network Understanding How CDP and VoIP Work Understanding How CDP and VoIP Work Cisco Discovery Protocol (CDP) was enhanced in software release 8.1(1) to facilitate backward compatibility with the newer, higher-powered Cisco IP phones. With this enhanced CDP, a Cisco IP phone can negotiate its power requirements to the switch within the CDP packet. The switch uses this information to ensure that it does not oversubscribe the available power.
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch Table 55-3 Voice-Related CLI Command Module and Platform Support (continued) CLI Commands Ethernet Module1 WS-X6608-T1/E12 WS-X6624-FXS3 show environment power X X X set port voice interface X X show port voice interface X X X X Voice-related commands set port auxiliaryvlan X/X show port auxiliaryvlan X/X show port voice X show port voice fdl X show port voice active X X X QoS commands related to voice set p
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch This section describes the following topics: • Using show Commands to Display Module Type and Version Information, page 55-12 • Power Management Modes, page 55-13 • Phone Detection Summary, page 55-16 • Setting the Power Mode of a Port or a Group of Ports, page 55-17 • Setting the Default Power Allocation, page 55-17 • Setting the Inline Power Notification Threshold for a Module, page 55-18 • Displaying the Power Status for M
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch Mod Sub-Type --- ----------------------1 L3 Switching Engine II 3 IEEE InlinePower Module 6 Inline Power Module Console> (enable) Sub-Model ------------------WS-F6K-PFC2 WS-F6K-FE48-AF WS-F6K-VPWR-GE Sub-Serial ----------SAD044302EA sasdfasdf SAD070700GV Sub-Hw -----1.0 0.1 0.201 Sub-Sw -----8.1(0) 8.
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch Each port also has a status that is defined as one of the following: • on—Power is supplied by the port. • off—Power is not supplied by the port. • Power-deny—The supervisor engine does not have enough power to allocate to the port, or the power that is configured for the port is less than the power that is required by the port; the power is not being supplied by the port.
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch Available Power Table 55-5 lists the available power that can be supplied for each port for the voice daughter cards. Table 55-5 Efficiency of Voice Daughter Cards Daughter Card Maximum Power Per Port (W) Efficiency WS-F6K-PWR 6.3 100% WS-F6K-VPWR-GE 6.3 89% WS-F6K-GE48-AF 15 89% WS-F6K-FE48-AF 15 89% WS-F6K-FE96-AF 15 89% For example, if the powered device requires 6.
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch High-Availability Support To support high availability during a failover from the active supervisor engine to the standby supervisor engine, the per-port power management and phone status information is synchronized between the active and standby supervisor engines.
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch Setting the Power Mode of a Port or a Group of Ports To set the power mode of a port or a group of ports, perform this task in normal mode: Task Command Set the power mode of a port or a group of ports.
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch This example shows how to set the default power allocation: Console> (enable) set inlinepower defaultallocation 9500 Default inline power allocation set to 9500 mWatt per applicable port. Console> (enable) Setting the Inline Power Notification Threshold for a Module Use the set inlinepower notify-threshold command to set a threshold for inline power usage.
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch This example shows how to display the detailed power status for the modules and individual ports: Console> show port inlinepower 4/1 detail Configured Default Inline Power allocation per port: 15.400 Watts (0.36 Amps @42V) Total inline power drawn by module 4: 33.934 Watts ( 0.
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch Slot Inline Power Requirement/Usage : Slot CardType Supported Total Allocated Max H/W Supported To Module (Watts) Per Module (Watts) ---- ------------------- ----------------- -----------------3 WS-X6548-RJ-45 31.08 315.84 6 WS-X6148-GE-TX 26.46 315.84 Console> (enable) Max H/W Per Port (Watts) ---------------15.400 7.
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch Auxiliary VLAN Configuration Guidelines This section describes the guidelines for configuring the auxiliary VLANs: • An auxiliary VLAN port is operationally a trunk, even though it is not treated like a “normal” trunk port. When an auxiliary VLAN is added to a port and the set dot1q-all-tagged command is enabled, the set dot1q-all-tagged command tags the native VLAN on the port where the auxiliary VLAN is configured.
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch The default setting is none. Table 55-6 lists the set port auxiliaryvlan command keywords and their descriptions. Table 55-6 Keyword Descriptions Keyword Action dot1p Specify that the phone sends the packets with 802.1p priority 5. untagged Specify that the phone sends the untagged packets. none Specify that the switch does not send any auxiliary VLAN information in the CDP packets from that port.
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch This example shows how to enable or disable the auxiliary VLAN IP phone detection: Console> (enable) set port auxiliaryvlan 3/1 50 cdpverify enable AuxiliaryVlan Status Mod/Ports ------------- -------- -----------------------------------------------------50 active 3/1 Console> (enable) Console> (enable) show config This command shows non-default configurations only. Use 'show config all' to show both default and non-default configurations.
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch These examples show how to configure the port voice interface for the DHCP, TFTP, and DNS servers: Console> (enable) set port voice interface 7/1 dhcp enable Port 7/1 DHCP enabled. Console> (enable) set port voice interface 7/3 dhcp disable 171.68.111.41/24 tftp 173.32.43.11 dns 172.20.34.204 cisco.com Port 7/3 dhcp disabled. System DNS configurations applied.
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch This example shows how to display the FDL statistics for the specified ports: Console> (enable) show port voice fdl 7/1-3 Port ErrorEvents ErroredSecond SeverlyErroredSecond Last 15' Last 24h Last 15' Last 24h Last 15' Last 24h ----- -------- -------- -------- -------- -------- ----------7/1 17 18 19 20 21 22 7/2 17 18 19 20 21 22 7/3 17 18 19 20 21 22 Port FailedSignalState Last 15' Last 24h ----- -------- -------7/1 37 38 7/2 37 38 7/3
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch This section provides the show port command displays for these gateway modules: • 8-Port T1/E1 PSTN Interface Module, page 55-26 • 8-Port T1/E1 PSTN Interface Module Configured for Trancoding/Conferencing, page 55-27 • 24-Port FXS Analog Interface Module, page 55-28 8-Port T1/E1 PSTN Interface Module The Status field shows the Layer 2 status of the ports. The possible values are notconnect, connected, disabled, and faulty.
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch Port -------7/1 7/2 7/3 7/4 7/5 7/6 7/7 7/8 Port ----7/1 7/2 7/3 7/4 7/5 7/6 7/7 7/8 CallManagerState DSP-Type ---------------- -------registered C549 registered C549 registered C549 registered C549 registered C549 notregistered C549 (Port host processor not online) (Port host processor not online) NoiseRegen ---------disabled disabled disabled disabled enabled disabled (Port host (Port host NonLinearProcessing ------------------disable
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch 7/7 7/8 10.6.15.155 10.6.15.155 10.6.15.155 10.6.15.155 10.6.15.155 10.6.15.
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch 3/19 3/20 3/21 3/22 3/23 3/24 onhook onhook onhook onhook onhook onhook 1 1 1 1 1 1 full full full full full full 64k 64k 64k 64k 64k 64k FXS FXS FXS FXS FXS FXS Port DHCP MAC-Address IP-Address Subnet-Mask -------- ------- ----------------- --------------- --------------3/1-24 enable 00-10-7b-00-13-e4 172.20.34.50 255.255.255.
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch This example shows all the active calls in the system: Console> show port voice active Port Type Total Conference-ID/ Transcoding-ID ----- ------------ ----- -------------3/1 call 1 3/2 call 1 4/5 call 3 - 3/8 conferencing 2 1 2 3/2 3/8 call transcoding 1 1 1 Party-ID IP-Address -------- 1 2 3 5 1 3 6 1 2 --------------199.22.25.254 172.225.25.54 165.34.234.111 172.32.34.12 198.96.23.111 255.255.255.241 173.23.13.42 198.97.123.
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch Receive bytes Receive packets Transmit bytes Transmit packets Channel #3: . (display text omitted) . Console> : : : : 2342342332423 23423423402384 23472377 94540 This example shows how to display a specific call at a specified IP address: Console> show port voice active 3/2 171.69.67.91 Remote IP address : 171.69.67.91 Remote UDP port : 125 Call state : Ringing Codec Type : G.
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch You can configure the Cisco IP Phone 7960 access port (see Figure 55-5) to either trusted or untrusted mode. In untrusted mode, all the traffic in the 802.1Q or 802.1p frames that are received through the access port is marked with a configured Layer 2 CoS value. The default Layer 2 CoS value is 0. The untrusted mode is the default when the phone is connected to a Cisco LAN switch.
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch This example shows how to set the phone access port to the untrusted mode: Console> (enable) set port qos 3/7 trust-ext untrusted Port in the phone device connected to port 3/7 is configured to be untrusted. Console> (enable) Setting the Phone Access Port CoS Value To set the phone access port CoS value, perform this task in privileged mode: Task Command Set the phone access port CoS value.
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch Supported Cisco IP Phones These Cisco IP phones are supported with the trusted boundary feature: • Cisco IP Phone 7910 • Cisco IP Phone 7935 • Cisco IP Phone 7940 • Cisco IP Phone 7960 QoS and Cisco IP Phone Configuration The Cisco IP Phones are directly attached to the Catalyst 6500 series switch ports. Typically, the traffic that is coming from the phone and entering the switch is marked with a tag using the 802.1Q header.
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch Trusted Boundary Configuration Guidelines This section describes the guidelines for configuring the trusted boundary: • Common Open Policy Service (COPS) considerations COPS directly affects how the QoS parameters are applied. A port may have either a local policy or a COPS policy. This setting specifies whether the port should get its QoS configuration information from the local configuration or through a COPS server.
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch Figure 55-6 QoS Enabled Determining the Final Trust Value of a Port No Yes COPS Enabled No Trust-Device Type Port set to default QoS disabled setttings. Port Policy COPS Port set to policy defined by COPS server/role.
Chapter 55 Configuring a VoIP Network Configuring VoIP on a Switch Default Configuration The default setting for all ports is trust-device none. Specifying a Cisco IP Phone as the Trust Device To specify a Cisco IP Phone as the trust device, perform this task in privileged mode: Task Command Specify a Cisco IP Phone as the trust device. set port qos mod/ports...
Chapter 55 Configuring a VoIP Network Using SmartPorts (*)Runtime trust type set to untrusted. Config: Port ACL name Type ----- -------------------------------- ---No ACL is mapped to port 4/1. Runtime: Port ACL name Type ----- -------------------------------- ---No ACL is mapped to port 4/1. Console> (enable) Using SmartPorts The SmartPorts feature consists of two macros that simplify voice configuration on the Catalyst 6500 series switches.
Chapter 55 Configuring a VoIP Network Using SmartPorts When you execute the ciscoipphone keyword on a port, in addition to the previous features, these features are also implemented: • The specified auxiliary VLAN is associated with the port. • The inline power is enabled. • CDP is enabled globally and on the port. • CDP is configured to version v2. • The port-based automatic QoS command for the Cisco IP phone is executed.
Chapter 55 Configuring a VoIP Network Using SmartPorts SmartPorts Guidelines and Restrictions These sections provide the configuration guidelines and restrictions for SmartPorts: • Supported Phones, page 55-40 • CDP Dependencies, page 55-40 • EtherChannel Considerations, page 55-40 • PFC/PFC2 Support, page 55-40 • Module Support, page 55-40 Supported Phones When you use SmartPorts with the ciscoipphone keyword, some of the QoS configuration requires phone-specific configuration (trust-ext, ext-
Chapter 55 Configuring a VoIP Network Using SmartPorts CLI Interface for SmartPorts These sections describe the CLI interface for SmartPorts: • Command Description, page 55-41 • ciscoipphone Command Output, page 55-41 • ciscosoftphone Command Output, page 55-42 Command Description You must specify either the ciscoipphone or ciscosoftphone keywords and a data VLAN. Specifying an auxiliary VLAN is optional for the ciscoipphone keyword. The RSPAN and private VLANs are not supported.
Chapter 55 Configuring a VoIP Network Using SmartPorts All ingress and egress QoS scheduling parameters configured on all ports. CoS to DSCP, DSCP to COS, IP Precedence to DSCP and policed dscp maps configured. Global QoS configured. Port 3/1 ingress QoS configured for Cisco IP Phone. Macro completed on port 3/1.
Chapter 55 Configuring a VoIP Network Using SmartPorts ciscoipphone Macro Statement The ciscoipphone macro command results in the following configuration: set port macro mod/port ciscoipphone vlan vlan [auxvlan auxvlan] ---------------------------------------------------------set port enable mod/port set port l2protocol-tunnel mod/port cdp stp vtp disable set port membership mod/port static set port host mod/port set vlan mod/port vlan set port auxiliaryvlan mod/port auxvlan (set to none if not specified)
Chapter 55 Configuring a VoIP Network Using SmartPorts SmartPorts Enhancements in Software Release 8.4(1) These sections describe the SmartPorts enhancements in software release 8.
Chapter 55 Configuring a VoIP Network Using SmartPorts Ciscoswitch SmartPorts Template The ciscoswitch interface macro command results in the following configuration: Note Specifying the nativevlan is required. Specifying the allowedvlans is optional.
Chapter 55 Configuring a VoIP Network Using SmartPorts Ciscoipphone SmartPorts Template The ciscoipphone interface macro command results in the following configuration: Note Specifying the vlan (nativevlan) is required. Specifying the auxvlan is optional. The port security is set to the maximum of 3 for the IP phone because the phone’s MAC address can appear in both the native and the auxiliary VLAN.
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 mo
Chapter 55 Configuring a VoIP Network Using SmartPorts • Clearing (deleting) a macro—You can clear a macro when it is no longer needed. When you clear a macro, only the macro and its definition are cleared from the system; the configuration on the ports that the macro was applied to is not cleared. To clear a macro, enter the clear macro name command. • Types of macros—The two types of macros are the global macros and the port-based macros.
Chapter 55 Configuring a VoIP Network Using SmartPorts • In the above example, $DATAVLAN and $AUXVLAN are variables and are substituted with appropriate values when the macro is applied to a port. • After the macro is defined, it is stored in NVRAM. Modifying Existing User-Defined Macros To modify an existing user-defined macro, use the set macro name name command.
Chapter 55 Configuring a VoIP Network Using SmartPorts In the above examples, $CDPVER is a global variable and $DATAVLAN and $AUXVLAN are per-port variables. $DATAVLAN is also defined as a global variable. If a macro is using the variable $DATAVLAN and the macro is applied to a port other than ports 3/2 or 3/3, the macro would use the value of 77 for that port. After a variable and its values are defined, they are stored in NVRAM.
Chapter 55 Configuring a VoIP Network Using SmartPorts Variable Console> Console> Console> AUXVLAN successfully created (enable) set macro variable $AUXVLAN 77 3/7 (enable) set macro variable $DATAVLAN 99 (enable) set macro variable $CDPVER v2 Variable CDPVER successfully created Console> (enable) Step 3 Apply the macro on port 3/2 by entering the following commands: Console> (enable) set port macro 3/2 videophone Before the macro is applied, the $DATAVLAN and $AUXVLAN variables are replaced by “3” a
Chapter 55 Configuring a VoIP Network Using SmartPorts Displaying Macros This section describes the various methods of displaying macros: • The syntax is as follows: show macro name name_of_macro show macro all • Display the definition of a macro by entering the show macro name name_of_macro command as follows: Console> (enable) show macro name videophone The macro definition for videophone is: set port set vlan set port Console> • enable #MODPORT $DATAVLAN #MODPORT auxiliaryvlan #MODPORT $AUXVLAN (
Chapter 55 Configuring a VoIP Network Using SmartPorts • Display an individual macro variable and all of the ports that it is applied by entering the show macro variable name name_of_macro command as follows: Console> (enable) show macro variable name $DATAVLAN Variable -------DATAVLAN DATAVLAN DATAVLAN Console> (enable) • Port ---3/2 3/3 NA Value ----3 5 99 Type -----Per-port Per-portGlobal Global Display an individual macro variable and a specific port that it is applied by entering the show macro
Chapter 55 Configuring a VoIP Network Using SmartPorts • Clear all macros and their variables by entering the clear macro all command as follows: Console> (enable) clear macro all Clearing all macros.... All macros are cleared Console> (enable) • Clear an individual macro variable from all ports by entering the clear macro variable name_of_variable command as follows: Console> (enable) clear macro variable $DATAVLAN Clearing variable $DATAVLAN for all mod/ports... Deleting Variable: DATAVLAN ...
Chapter 55 Configuring a VoIP Network Using SmartPorts • Display the macro port mappings for a specific port by entering the show macro map port mod/port command as follows: Console> (enable) show macro map port 3/2 Port ----3/2 Console> (enable) Macro ----videophone Displaying the User-Definable SmartPorts Macro Configuration The macro and variable definitions are stored in NVRAM and can be displayed by entering the show config command as follows: Console> (enable) show config This command shows non-d
Chapter 55 Configuring a VoIP Network Using SmartPorts Catalyst 6500 Series Switch Software Configuration Guide—Release 8.