You are on page 1of 4

VOIP Lab with Packet Tracer 5.

3
I have looked in Internet as usual using Google :) to test VOIP using Packet Tracer. Two or three
links fond and all are interesting. But, I would like to customize my own and see below if you are
also looking like me.

Here is lab diagram. Download completed Packet Tracer file from


https://docs.google.com/leaf?id=0B889ogd4ltI2MTFmYzJhNjgtYjE3OC00ZmE5LWEzZWMtOGFiO
Tg0MDkwMmM1&hl=en_US

It's a simple lab. One Cisco router as "Configure Call Manager ExpressTM", Cisco phones, digital to
analog home VOIP PT to convert from digital to analog phone. I have added two PCs using
different VLAN; one is connected with Cisco IP phone to test mls. VLAN 1 is for voice VLAN and
two PCs are in VLAN 10 with static IP.

First, drag all devices in Cisco Packet Tracer and configure router to work as DHCP server to lease
IP addresses for IP phones.

ip dhcp pool test-vlan


network 192.168.10.0 255.255.255.0
default-router 192.168.10.1
option 150 ip 192.168.10.1

Using option 150 is required to provide IP address to Cisco phone. Pool range is the whole network
of 192.168.10.0/24.

More detail about how to configure for IP phones are avaliable in packet tracer website at
http://www.packettracernetwork.com/voipconfiguration.html

Here is the config file of router.


telephony-service
max-ephones 3
max-dn 3
ip source-address 192.168.10.1 port 2005
auto assign 1 to 5
!
ephone-dn 1
number 1001
!
ephone-dn 2
number 1005
!
ephone-dn 3
number 1010
!

I have used IP phones with power supply. So, power adapter need to plug to get IP phone online. If
you don't want and need PoE, have to use multilayer switch.

Configure switch as follow; Enable trust boundary to Cisco phone using "mls qos trust device cisco-
phone".

interface FastEthernet0/1
switchport access vlan 10
switchport mode trunk
switchport voice vlan 1
mls qos trust device cisco-phone
!
interface FastEthernet0/4
switchport mode access
switchport voice vlan 1
!
interface FastEthernet0/5
switchport mode access
switchport voice vlan 1

Check in switch after phone online whether it's trusted Cisco Phone or not by executing command
"mls qos interface fa0/1". trust device: cisco-phone is appear in outpout.

Switch#sh mls qos interface fa0/1


FastEthernet0/1
trust state: not trusted
trusted mode: not trusted
COS override: dis
default COS: 0
pass-through: none
trust device: cisco-phone

As soon as IP phones are online, following message appear in Cisco router and confirmed that
phone are registered with IP address.
Router#
%IPPHONE-6-REGISTER: ephone-1 IP:192.168.10.2 Socket:2 DeviceType:Phone has
registered.
Router#
%IPPHONE-6-REGISTER: ephone-2 IP:192.168.10.3 Socket:2 DeviceType:Phone has
registered.

Phone number will be appear in upper right corner of the phone GUI screen.

Check lease IP address in router using following command.

Router#sh ip dhcp binding


IP address Client-ID/ Lease expiration Type
Hardware address
192.168.10.3 0006.2A21.B937 -- Automatic
192.168.10.4 000B.BE52.8501 -- Automatic
192.168.10.2 0001.9628.4786 -- Automatic
192.168.10.6 0010.11E9.75C9 -- Automatic

For HomeVOIP-PT device, type the Cisco router (Call Manager) ip address as follow;
Check by moving mouse over to phone device whether it's getting IP address and appearing
extension number or not as follow.

Try to make call between two IP phones as well as from analog to IP phone.

Configure different IP address for two PCs as mentioned in lab diagram; 192.168.1.1 and
192.168.1.2 and assign to VLAN 10. Voice VLAN has already configured as VLAN 1.

You might also like