Wednesday 13 May 2015

Cisco VOIP Phone Setup in Packet Tracer

HERE IS AN UPDATED VIDEO SERIES THAT COVERS THIS TUTORIAL

The following tutorial is a result of endless research on how to setup a LAN with two or three IP Phones that can call each other. I compiled this tutorial together for my CCNA 1 students. The actual setup and documentation itself was used for the 2015 IS Open Day room 223 display, modelling a small business office setup. The last part involved a challenge activity for them to create trunk links to ensure calls can be made over the WAN

I used the Packet Tracer instructor version however any version will still support the following documentation.

The following diagram shows that there are four (4) Cisco IP Phones connected; two phones to the Madang network and two phones to the Lae network.

The current configurations for this setup are shown below;


Task 1: We need to configure FastEthernet 0/0 and DHCP server on Madang router
Tasks 1: Configure interface FastEthernet 0/0 and DHCP server on MadR1 (2811 router)
#Configure the FA 0/0 interface#
RouterA>enable
RouterA#configure terminal
RouterA(config)#interface FastEthernet0/0
RouterA(config-if)#ip address 192.168.1.1 255.255.255.0
RouterA(config-if)#no shutdown
The DHCP server is needed to provide an IP address and the TFTP server location for each IP phone connected to the Madang network.
MadR1(config)#ip dhcp pool VOICE #Create DHCP pool named VOICE
MadR1(dhcp-config)#network 192.168.1.0 255.255.255.0 #DHCP network 192.168.1.0 with /24 mask
MadR1(dhcp-config)#default-router 192.168.1.1 #The default router IP address
MadR1(dhcp-config)#option 150 ip 192.168.1.1 #Mandatory for voip configuration.
After the configuration, wait a moment and check that ‘Mad IPPhone’ has received an IP address by placing your cursor over the phone until a configuration summary appears.

Tasks 2: Configure the Call Manager Express telephony service on Madang Router
Tasks 2: Configure the Call Manager Express telephony service on MadR1
You must now configure the Call Manager Express telephony service on MadR1 to enable voip on your network.
MadR1(config)#telephony-service#Configuring the router for telephony services#
MadR1(config-telephony)#max-dn 3 #Define the maximum number of directory numbers#
MadR1(config-telephony)#max-ephones 5 #Define the maximum number of phones#
MadR1(config-telephony)#ip source-address 192.168.1.1 port 2000 #IP Address source#
MadR1(config-telephony)#auto assign 4 to 6 #Automatically assigning ext numbers to buttons#
MadR1(config-telephony)#auto assign 1 to 5 #Automatically assigning ext numbers to buttons#

Task 4: Configure a voice vlan on Madang Distribution Switch and the Madang Access Switch
Apply the following configuration on MadDSw interfaces 1 to 5. This configuration will separate voice and data traffic in different vlans on MadDSw switch. Data packets will be carried on the access vlan.
MadDSw(config)#interface range fa0/1 – 5 #Configure interface range#
MadDSw(config-if-range)#switchport mode access
MadDSw(config-if-range)#switchport voice vlan 1 #Define the VLAN on which voice packets will be handled# 

Task 5: Configure the phone directory for Mad IPPhone
Although ‘MadIP Phone’ is already connected to Madang Access Switch, it needs additionnal configuration before being able to communicate. You need to configure MadR1 CME to assign a phone number to this IP phone.

MadR1(config)#ephone-dn 1 #Defining the first directory entry#
MadR1(config-ephone-dn)#number 422 #Assign the phone number to this entry#
MadR1#config t
Enter configuration commands, one per line. End with CNTL/Z.
MadR1(config)#ephone-dn 1
MadR1(config-ephone-dn)#%LINK-3-UPDOWN: Interface ephone_dsp DN 1.1, changed state to up
MadR1(config-ephone-dn)#number 422
MadR1(config-ephone-dn)#

Task 5: Verify the configuration
Ensure that the IP Phone receives an IP Address and the phone number 422 from MadR1 (this can take a short while).

Task 6: Configure the phone directory for IT testphone

Connect IT testphone to MadDSw and power the phone ON using the power adapter (Physical tab). Login to the Madang Router and do the following configurations.
MadR1(config)#ephone-dn 2#Defining the first directory entry#
MadR1(config-ephone-dn)#number 433 #Assign the phone number to this entry#

Task 7: Verify the configuration
Ensure that the IT testphone receives an IP Address and a the phone number 433 from MadR1  (this can take a short while). 

Dial 422 and check if IP phone 1 correctly receives the call.


Task 8: Repeat the same steps on the Lae network with the other two phones.
Repeating all the above steps for the Cisco IP Phones on the Lae router should connect the two phones together.

The challenge for students
The challenge for the students would be to ensure that the IP Phones on the two networks should be able to call each other.
Since both networks have a vlan for VOICE, to connect the two voice vlans they need to create a TRUNK link between MadR1 voice vlan and LaeR1 voice vlan.
Successfully connecting the two vlans together via a trunk link will result in the phones calling each other from both networks.

Follow me on this blog or on my Youtube Channel.

To download the Packet Tracer file for this tutorial. Click on Buy Now below. Its only $2 (USD). It supports me to create more content like this. Let me know if you want me to create a follow up tutorial on this.




20 comments:

  1. It really is incredibly fantastic and informative website. Good to discover your site Very well article! I’m simply in love with it. IP Phones in Pakistan

    ReplyDelete
    Replies
    1. Thank you. I'm glad this tutorial is helping someone.

      Delete
  2. Mind the DTMF mixed quality BADLY affects your communications. I have a real story for you; I'm calling one of my banks, they Rep is transferring me to a robot to enter my pin #... I'm entering it, and the robot can't understand the pin. The robot says to enter again... after 3 tries it gives up. ...., and it does not understand your commands due to the line in not DTMF. You must troubleshoot DTMF problems with your VoIP connection through https://route-test.com/voip-quality-delay-jitter-measurement/. They offer a free testing credits. You can find the solution quickly. #VoIP

    ReplyDelete
  3. Do you mind to tell me the result for the challenge? How to create a TRUNK link between MadR1 voice vlan and LaeR1 voice vlan?
    Thanks,
    Michael

    ReplyDelete
    Replies
    1. Hi, I'll do this in a separate post. I updated this article also to include voice and data vlans to segregate TCP and UDP traffic.

      Delete
    2. Hello, I've been looking to complete the challenge involving the trunk link for connecting the IP phones across the two networks. Just wondering if you are due to be posting the solution to the challenge as i am interested in seeing how it could be done
      Thanks,
      Ky

      Delete
  4. I did't expect this, really good information shared thanks for this post.

    VoIP Phone Service
    VoIP Services

    ReplyDelete
    Replies
    1. Thanks and appreciate it. I updated this article also to include voice and data vlans to segregate TCP and UDP traffic and will post later.

      Delete
  5. Great article! Virtual number is not just the future but the present of business communications.

    ReplyDelete
  6. Nice article! I was not aware about the tracking of VoIP phones but after reading this article I got a great information. Great, thanks.

    ReplyDelete
  7. hello can i get this pkt file ?

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
  8. can i get this pkt file? thanks you

    ReplyDelete
  9. hello SIR would you mind in sharing the solution for the challenge you given in this post

    ReplyDelete
  10. hello Sir,would you mind in sharing the solution for challenge you given in this post(Cisco VOIP Phone Setup in Packet Tracer)

    ReplyDelete
  11. HELLO SIR,could you please share the steps for creating the trunk link between two networks.

    ReplyDelete
  12. HELLO SIR,could you please share the steps for creating the trunk link between two networks

    ReplyDelete
    Replies
    1. Hi Manu, the best way to do that is create separate VLANs for data, native and Voice traffic. Using L3 intervlan routing or ROAST.

      Delete
  13. Hi, May I know what is the password for Madang router?

    ReplyDelete
  14. I found your post on Cisco VOIP Phone Setup in Packet Tracer really informative! VoIP technology is becoming increasingly important, and your step-by-step guide is incredibly helpful. If anyone is interested in exploring VoIP options further, they should check out VoIP quotes from TelcoQuotes. Thanks for sharing this valuable information!

    ReplyDelete