VoIP Lab with CME v.4.3

From ITCwiki
Revision as of 08:02, 14 December 2011 by Lueyang (talk | contribs)
Jump to navigation Jump to search

Introduction

This lab provides brief explanation of what we did and the commands we used in this lab. This lab is setup and configured very similar to one of the labs we have done on the CNT 2722 course. This lab is similar to the lab activity section 7.1 - IP Telephony LAN. However, I have done some researches and found some new commands that we would like to add to our lab configuration. We also add a few new phones into the lab so that we can explore the deference interfaces and configurations. Some new features that we included in this lab are configuring a Cisco router as a TFTP server and enabling dual-line mode for an ephone-dn. The dual-line mode is useful for supporting features such as call waiting, conference calling, and an extension number can handle two simultaneous calls. However, detail of these features are not being discussed in this lab. Please visit http://www.cisco.com for more details.

Requirements

Software Requirement

Software versions used in this lab are:

  • Cisco Unified CallManager Express (CME) version 4.3
  • Cisco IP Communicator
  • Cisco IOS Software image version c2800nm-adventerprisek9_ivs_li-mz.124-24.T3.bin

Hardware Requirement

Equipments and hardware versions used are:

  • Cisco 2811 Router on Cisco IOS Software Release 12.4(24)T
  • Cisco Catalyst 3550 Switch on Cisco IOS Software Release 12.2
  • Cisco 7940 VoIP phone
  • Cisco 7945 VoIP phone
  • Traditional Analog Phone

Network Diagram

  • Our network devices are connected as shown in the diagram.

01-VoIP-Diagram.jpg

Configurations

  • We used the network 10.0.10.0/24 for voice VLAN network, and the network 10.0.50.0/24 for the data VLAN network.
  • The steps of configuring our lab devices are straightforward as follow.

Configuring the Switch

Two VLANs is created and configured on the switch. The switch interfaces FastEthernet 0/1 to 0/23 were configured as access ports, and FastEthernet1/24 was configured as trunk port that allow all VLANs to past though. Basic QoS was also configured on the switch as shown below.

conf t
vlan 10
 name VOICE-VLAN
vlan 50
 name DATA-VLAN

interface rang FastEthernet0/1-23
 switchport mode access
 switchport access vlan 50
 switchport voice vlan 10
 spanning-tree portfast
 auto qos voip cisco-phone
 auto qos voip cisco-softphone

interface FastEthernet0/24
 switchport trunk encapsulation dot1q
 switchport trunk allowed vlan all
 switchport mode trunk
 auto qos voip trust

interface Vlan50
 ip address 10.0.50.5 255.255.255.0
 ip default-gateway 10.0.50.1

Configuring the Router

  • The router is configured as a DHCP Server for the two network, network 10.0.10.0 and 10.0.50.0.
  • The router's interfaces and its sub-interfaces are configured with the appropriated IP addresses.
  • We enabled TFTP server on the Cisco router to handout the phone images on the flash memory to the phones.
  • We enabled and configured dual-line mode for our ephone directory numbers so that the ephone-dn is able to handle two simultaneous calls.

DHCP Server

  • DHCP for Voice and Data VLANs are configured using the following commands.
ip dhcp excluded-address 10.0.10.1 10.0.10.10
ip dhcp excluded-address 10.0.50.1 10.0.50.10

ip dhcp pool VOICE
 network 10.0.10.0 255.255.255.0
 default-router 10.0.10.1
 dns-server 68.87.77.134 68.87.72.134 4.2.2.2
 option 150 ip 10.0.10.1

ip dhcp pool DATA
 network 10.0.50.0 255.255.255.0
 default-router 10.0.50.1
 dns-server 68.87.77.134 68.87.72.134 4.2.2.2
 option 150 ip 10.0.10.1

Inter-VLAN Routing

Router's interface FastEthernet0/0 and two sub-interfaces are configured as follow.

interface FastEthernet0/0
 no shutdown
 auto qos voip trust

interface FastEthernet0/0.10
 encapsulation dot1Q 10
 ip address 10.0.10.1 255.255.255.0

interface FastEthernet0/0.50
 encapsulation dot1Q 50
 ip address 10.0.50.1 255.255.255.0

TFTP Server

  • We configured TFTP Server on the router to serve the image needed for our phones. In this lab, we are going to be configuring the Cisco 7940, 7945 and 7960 phones in our environment. Note that the Cisco IP Communicator soft-phone function as a Cisco 7960.
  • A directory alias is provided for each phone image load so that the phone knows where to find the image in the flash directory.
tftp-server flash:/phone/7940-7960/P00308000500.bin alias P00308000500.bin
tftp-server flash:/phone/7940-7960/P00308000500.loads alias P00308000500.loads
tftp-server flash:/phone/7940-7960/P00308000500.sb2 alias P00308000500.sb2
tftp-server flash:/phone/7940-7960/P00308000500.sbn alias P00308000500.sbn
tftp-server flash:/phone/7945-7965/apps45.8-3-2-27.sbn alias apps45.8-3-2-27.sbn
tftp-server flash:/phone/7945-7965/cnu45.8-3-2-27.sbn alias cnu45.8-3-2-27.sbn
tftp-server flash:/phone/7945-7965/cvm45sccp.8-3-2-27.sbn alias cvm45sccp.8-3-2-27.sbn
tftp-server flash:/phone/7945-7965/dsp45.8-3-2-27.sbn alias dsp45.8-3-2-27.sbn
tftp-server flash:/phone/7945-7965/jar45sccp.8-3-2-27.sbn alias jar45sccp.8-3-2-27.sbn
tftp-server flash:/phone/7945-7965/SCCP45.8-3-3S.loads alias SCCP45.8-3-3S.loads
tftp-server flash:/phone/7945-7965/term45.default.loads alias term45.default.loads
tftp-server flash:/phone/7945-7965/term65.default.loads alias term65.default.loads

Analog Phone

  • The analog phone connected to voice port 0/0/0 is configured with the extension number 6001.
dial-peer voice 1 pots
 description Analog Phone 6001
 destination-pattern 6001
 port 0/1/0

COnfiguring Max Ephones and DNs

  • The source IP address defines the location of the CME call-processing unit.
  • We set the max-ephone to 8 so that up to 8 phone can be added to the CME, and the ephone-directory number (ephone-dn) is set to 20.
  • We identify and set the firmware file load into the Cisco phones.
  • The create cnf-files command use to create the default phone configuration files.
telephony-service
 ip source-address 10.0.10.1 port 2000
 max-ephones 8
 max-dn 20
 load 7960-7940 P00308000500
 load 7945 SCCP45.8-3-3S.loads
 max-conferences 8 gain -6
 transfer-system full-consult
 create cnf-files

Ephone and Ephone-DN

  • Ephone Directory Number with dual line enabled. Some advanced settings only available on dual-line enabled mode. For example, A single-line phone can make or receive only one call at a time. If the line is already in use, you cannot place the call on hold to make a second call. Meaning that if line 1 is in use, a second phone call to the extension will receive a busy signal. However, dual-line phones, on the other hand, allow the phone to place calls on hold or receive a second call when in use.
ephone-dn 1 dual-line
 number 7001
 name PHONE-1

ephone-dn 2 dual-line
 number 7002
 name PHONE-2

ephone-dn 3 dual-line
 number 1003
 name PHONE-3
  • Ephone
ephone 1
 mac-address 0007.0EEA.4A9A
 button 1:1

ephone 2
 mac-address 0021.5502.F01C
 button 1:2

ephone 3
 mac-address 000C.2905.ABB8
 button 1:3

Verify and Troubleshoot

  • We verified that all phones can communicate with each other by dialing between the phones. Below is the show startup-config of our final configuration on the router.
CME_VOICE#show startup-config
Using 4401 out of 245752 bytes
!
! Last configuration change at 22:22:11 CST Tue Dec 10 2011 by tublis
! NVRAM config last updated at 22:22:37 CST Tue Dec 10 2011 by tublis
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname CME_VOICE
!
boot-start-marker
boot system flash c2800nm-adventerprisek9_ivs_li-mz.124-24.T3.bin
boot-end-marker
!
logging buffered 51200 warnings
!
no aaa new-model
clock timezone CST -6
no network-clock-participate slot 1
voice-card 0
 no dspfarm
!
voice-card 1
 dspfarm
!
dot11 syslog
!
!
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 10.0.10.1 10.0.10.10
ip dhcp excluded-address 10.0.50.1 10.0.50.10
!
ip dhcp pool VOICE
   network 10.0.10.0 255.255.255.0
   default-router 10.0.10.1
   dns-server 68.87.77.134 68.87.72.134 4.2.2.2
   option 150 ip 10.0.10.1
!
ip dhcp pool DATA
   network 10.0.50.0 255.255.255.0
   default-router 10.0.50.1
   dns-server 68.87.77.134 68.87.72.134 4.2.2.2
   option 150 ip 10.0.10.1
!
!
no ip domain lookup
ip domain name liajlwg.com
ip name-server 4.2.2.2
!
multilink bundle-name authenticated
!
!
!
crypto pki trustpoint TP-self-signed-2399633747
 enrollment selfsigned
 subject-name cn=IOS-Self-Signed-Certificate-2399633747
 revocation-check none
 rsakeypair TP-self-signed-2399633747
!
!
crypto pki certificate chain TP-self-signed-2399633747
 certificate self-signed 01 nvram:IOS-Self-Sig#1.cer
!
!
username tublis privilege 15 secret 5 $1$GiUZ$pYD70DEUVBkP8YckaZdFo0
archive
 log config
  hidekeys
!
!
!
!
controller T1 1/0/0
 framing esf
 linecode b8zs
!
!
!
interface FastEthernet0/0
 description $ETH-LAN$$ETH-SW-LAUNCH$$INTF-INFO-FE 0/0$
 no ip address 
 duplex auto
 speed auto
 auto qos voip trust
!
interface FastEthernet0/0.10
 encapsulation dot1Q 10
 ip address 10.0.10.1 255.255.255.0
!
interface FastEthernet0/0.50
 encapsulation dot1Q 50
 ip address 10.0.50.1 255.255.255.0
!
interface FastEthernet0/1
 ip address dhcp
 duplex auto
 speed auto
!
interface Serial0/3/0
 no ip address
 shutdown
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 FastEthernet0/1 192.168.1.1
!
!
ip http server
ip http authentication local
ip http secure-server
!
!
!
tftp-server flash:/phone/7940-7960/P00308000500.bin alias P00308000500.bin
tftp-server flash:/phone/7940-7960/P00308000500.loads alias P00308000500.loads
tftp-server flash:/phone/7940-7960/P00308000500.sb2 alias P00308000500.sb2
tftp-server flash:/phone/7940-7960/P00308000500.sbn alias P00308000500.sbn
tftp-server flash:/phone/7945-7965/apps45.8-3-2-27.sbn alias apps45.8-3-2-27.sbn
tftp-server flash:/phone/7945-7965/cnu45.8-3-2-27.sbn alias cnu45.8-3-2-27.sbn
tftp-server flash:/phone/7945-7965/cvm45sccp.8-3-2-27.sbn alias cvm45sccp.8-3-2-27.sbn
tftp-server flash:/phone/7945-7965/dsp45.8-3-2-27.sbn alias dsp45.8-3-2-27.sbn
tftp-server flash:/phone/7945-7965/jar45sccp.8-3-2-27.sbn alias jar45sccp.8-3-2-27.sbn
tftp-server flash:/phone/7945-7965/SCCP45.8-3-3S.loads alias SCCP45.8-3-3S.loads
tftp-server flash:/phone/7945-7965/term45.default.loads alias term45.default.loads
tftp-server flash:/phone/7945-7965/term65.default.loads alias term65.default.loads
!
control-plane
!
!
!
!
voice-port 0/1/0
!
voice-port 0/1/1
!
voice-port 0/2/0
!
voice-port 0/2/1
!
!
!
dial-peer voice 1 pots
 description Analog Phone 6001
 destination-pattern 6001
 port 0/1/0
!
!
!
!
telephony-service
 load 7960-7940 P00308000500
 load 7945 SCCP45.8-3-3S.loads
 max-ephones 8
 max-dn 20
 ip source-address 10.0.10.1 port 2000
 max-conferences 8 gain -6
 transfer-system full-consult
 create cnf-files version-stamp 7960 Dec 10 2011 18:09:42
!
!
ephone-dn  1  dual-line
 number 7001
 name PHONE-1
!
!
ephone-dn  2  dual-line
 number 7002
 name PHONE-2
!
!
ephone-dn  3  dual-line
 number 1003
 name PHONE-3
!
!
ephone  1
 device-security-mode none
 mac-address 0007.0EEA.4A9A
 button  1:1
!
!
ephone  2
 device-security-mode none
 mac-address 0021.5502.F01C
 button  1:2
!
!
ephone  3
 device-security-mode none
 mac-address 000C.2905.ABB8
 button  1:3
!
!
!
banner login ^C
****************************
!!!AUTHORIZED ACCESS ONLY!!!
****************************
^C
alias exec s show ip int b
!
line con 0
 exec-timeout 0 0
 logging synchronous
 login local
line aux 0
line vty 0 4
 privilege level 15
 login local
 transport input telnet ssh
line vty 5 15
 privilege level 15
 login local
 transport input telnet ssh
!
scheduler allocate 20000 1000
ntp clock-period 17179968
ntp master
ntp server 149.20.54.20
ntp server 216.129.110.22
ntp server 173.203.202.87
!
end


  • Some of the CLIs we used to troubleshoot our lab are:
show telephony-service
show telephony-service ephone
show telephony-service ephone-dn
show ephone
ephone 1
 restart
show telephony-service tftp-bindings

References

1. http://www.cisco.com/en/US/docs/voice_ip_comm/cucme/requirements/guide/cme43spc.htm

2. http://www.cisco.com/en/US/products/sw/voicesw/ps4625/products_configuration_example09186a00808f9666.shtml

3. http://www.cisco.com/en/US/docs/voice_ip_comm/cipc/7_0/english/administration/guide/cag70vop.pdf

4. http://www.cisco.com/en/US/products/sw/voicesw/ps5520/products_configuration_example09186a008037f2a9.shtml

5. https://learningnetwork.cisco.com/servlet/JiveServlet/previewBody/9250-102-1-33387/Sybex%20CCNA%20Voice.pdf