Lab01 Basic VOIP Configuration
Lab01 Basic VOIP Configuration
الفويب
قسم االتصاالت والشبكات/الفصل
الدراسي ربيع 2015
Lab01. Connecting computers and analog phones
to a VOIP network.
There are distinct vendors of VoIP, however, on this tutorial, we will focus on Cisco, and we will focus on
the following product: Cisco Unified Call Manager Express (commonly known as CUCME)
There are Routers called ISR: Integrated Service Routers, which come with certain services and features
inside it.
CUCME is one example of these features and services that are build-in the router (or are router-based).
There is a technology called PoE: Power Over Ethernet, which allows equipment to send data and power at
the same time to certain devices that are PoE compatible.
So, knowing these few things, let’s get to work. the following topology:
Pay attention that on Packet Tracer the PoE technology isn’t implemented yet. not in all switches
This is why, to power on the IP Phones we will connect a power adapter to it.
See how to connect the power adapter to the IP Phone on the picture below:
8 من2 صفحة
Task1: Configure interface F0/0 and DHCP server on RouterA(2811)
Router>enable
Router#configure terminal
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shutdown
Router(config)#int f0/0.10
Router(config-subif)#encapsulation dot1Q 10
Router(config-subif)#ip add 192.168.10.1 255.255.255.0
Router(config-subif)#no shut
Router(config-subif)#exit
A TFTP server is used to allow the phones to get the firmware and certain configurations files from the
router this is done by the option 150 of the DHCP.
CLI description:
1. Giving a name to the DHCP pool, in this case, this pool is for the phones only.
2. The network that is covered by the DHCP.
3. The default router for this IP distribution.
4. Configuration of the TFTP.
The Cisco IP Phone uses DHCP option 150 to identify the location of the device that contains the IP
Phone’s configuration file. The Cisco IP Phone receives its configuration file from a TFTP server. DHCP
(specifically, the 150 option) can be used to let the IP Phone know the IP address of the device that contains
the phone configuration file. This IP address is a TFTP server, and it can be located on the router providing
CME.
8 من3 صفحة
In the DHCP pool configuration process on the router, this option 150 parameter must be configured, or the
Cisco IP Phone will not function.
Router(config)#telephony-service
Router(config-telephony)#max-dn 5
Router(config-telephony)#max-ephones 5
Router(config-telephony)#ip source-address 192.168.1.1 port 2000
Router(config-telephony)#auto assign 1 to 5
Router(config-telephony)#exit
CLI descrition:
The phones use the Skinny Client Control Protocol (SCCP) to communicate with CallManager. CCP is
commonly called Skinny or the Skinny protocol.Enter the ip source-address command from telephony-
service configuration mode to define the address and port number where the Cisco CME router is listening
for registrations (Skinny messages). This address should correspond to a valid CME router IP address.Next
step is to configure the Switch, on this case, there is not too much to do, just configure a VLAN for voice
traffic. We must add this VLAN to separate the data traffic from the Voice traffic. Data will be sent to the
computers and voice traffic will be sent to the IP Phones.
As we configured 5 max IP Phones, so we will configure 5 interfaces of the switch to the Voice VLAN.
The auto assign command is used to partially automate the IP Phone configuration process. This command
specifies a range of ephone-dn numbers to assign newly discovered IP Phones. This method is used when
several phones must be installed and each phone has a unique extension number.
A phone type can be specified so that all 7940 IP Phone models receive an extension in a particular range
and all 7960models receive an extension in a different range of numbers. For the purposes of this lab, the
basic concept of automatic number assignment is all that is being demonstrated.
8 من4 صفحة
Task03: Configure a voice on Switch
P.S.: The first interface of the switch on my scenario is connected to my router, so we will
exclude it on this VLAN configuration.
Switch>enSwitch#config t
Switch(config)#vlan 10
Switch(config-vlan)#name voice
Switch(config-vlan)#exit
Switch(config)#int vlan 1
Switch(config-if)#ip add 192.168.1.10 255.255.255.0
Switch(config-if)#no shut
Switch(config-if)#exit
Switch(config)#ip default-gateway 192.168.1.1
Switch(config)#int f0/10
Switch(config-if)#switchport mode trunk
Switch(config-if)#switchport trunk native vlan 1
Switch(config-if)#no shut
Switch(config-if)#exit
Switch(config)#int range f0/1-5
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport voice vlan 10
Switch(config-if-range)#no shut
Switch(config-if-range)#exit
Switch(config)#
Despite being on the same VLAN (data and voice), virtually the traffic will be separated.
Router(config)#ephone-dn 1
Router(config-ephone-dn)#number 101
Router(config)#ephone-dn 2
Router(config-ephone-dn)#number 102
Router(config)#ephone-dn 3
Router(config-ephone-dn)#number 103
Router(config)#ephone-dn 4
Router(config-ephone-dn)#number 104
Router(config)#ephone-dn 5
Router(config-ephone-dn)#number 105
Router(config)#ephone 1
8 من5 صفحة
Router(config-ephone)#button 1:1
Router(config-ephone)#exit
Router(config)#ephone 2
Router(config-ephone)#type 7960
Router(config-ephone)#button 1:2
Router(config-ephone)#exit
Router(config)#ephone 3
Router(config-ephone)#type 7960
Router(config-ephone)#button 1:3
Router(config-ephone)#exit
Router(config)#exit
Router#
ephone-dn
When dealing with CME, an IP Phone is configured using the ephoneoption. The term ephoneis short for
Ethernet phone. The telephone line associated with the ephone is known as an ephone-dn, which stands for
Ethernet phone directory number. The ephone-dn represents a line that connects a voice channel to a phone
so that calls can be made. When you enable the VoIP telephony service, ephones and ephone-dns can be
created and seen in the running configuration output.
An ephone-dn has one or more extensions or phone numbers associated with it that allow calls to be made.
An ephone-dn is similar to a phone line. Each ephone has a number to identify it during the configuration
process.
The ephone-dncommand creates one virtual voice port and one or more dial peers. The number of
ephone-dns that are created corresponds to the number of simultaneous calls that can be made, because each
ephone-dn represents one virtual voice port in the router. This means that if you want more than one call to
the same number to be answered simultaneously, multiple ephone-dns (virtual voice ports) are needed.
8 من6 صفحة
Once you have the confirmation, you can add the remaining 4 IP Phones on the switch, remembering that
these IP Phones must be added on the same interfaces were have configured the Voice VLAN. :)
8 من7 صفحة
2. Dial from one phone to another, on this case we will dial from IP Phone number 10 to IP Phone number
20 (to dial, just mark the number and click on the earphone)
8 من8 صفحة