📜 ⬆️ ⬇️

VoIP + Cisco Packet Tracer



When working with Cisco Packet Tracer, I often noticed various telephone devices in it, as well as software on client devices, with the help of which one can organize telephone calls. In this connection, the idea arose of sketching a network consisting of all the devices of this simulator (cisco packet tracer 6.2) that can make and receive calls. When writing this article, the question arose: "Is it possible to prepare for the CCNA Voice exam using this program?". And this question, I will try to answer in this article.

Used devices:

1) Router 2811 (it will be a DHCP server, a VoIP gateway and a TFTP server)
2) Switch 2960 (all devices will be connected to it)
3) Analog phone (which will be connected to the switch through the gateway)
4) IP phone 7960
5) Client computer (which will work using Cisco IP Communicator software)
6) Wi-Fi point (it is needed to connect to the network of wireless devices)
7) Laptop, tablet computer and smartphone (these devices will connect to a Wi-Fi point and work through CIPC)
')
Next, you need the MAC address of all devices. For computers and other devices (not phones), there are several ways to find the MAC address. For example, enter the device command line and type ipconfig / all or go to the config tab and copy the corresponding interface address to the buffer.





For phones, I found only one way - to hover the device on the device and remember its poppy (if anyone knows another way, I will be glad to know).



Configure the router:

1) Hang up the ip address on the interface (it will be the gateway)

  interface FastEthernet0 / 0

 ip address 10.3.0.1 255.255.255.0

 no shutdown


2) We will continue to raise DHCP, so we will exclude from the issue the address hanging on our interface in advance

  ip dhcp excluded-address 10.3.0.1

3) Let's raise DHCP

  ip dhcp pool telephony

 network 10.3.0.0 255.255.255.0 (announce network)

 default-router 10.3.0.1 (we specify the main gateway)

 option 150 ip 10.3.0.1 (specify tftp server)


4) We will raise the telephone service and configure the number of telephones and the number of lines on it (despite the fact that we have 6 devices, we will indicate the quantity with a margin)

  telephony-service (raise CME)

 max-ephones 10 (we specify number of phones)

 max-dn 10 (specify the number of lines)

 ip source-address 10.3.0.1 port 2000 (we specify from which interface it will receive calls)

 auto assign 1 to 10 (assign automatic assignment of lines from 1 to 10)


5) Now adjust the lines

  ephone-dn 1 (create a line)

 number 101 (assign number to it)

 !

 ephone-dn 2 (create a line)

 number 102 (assign number to it)

 !

 ephone-dn 3 (create a line)

 number 103 (assign number to it)

 !

 ephone-dn 4 (create a line)

 number 104 (assign number to it)

 !

 ephone-dn 5 (create a line)

 number 105 (assign number to it)

 !

 ephone-dn 6 (create a line)

 number 106 (assign number to it)


6) Now we will create the phones and assign a specific number to the MAC address of the phone
  ephone 1 (for analog phone)

 device-security-mode none

 mac-address 0060.2FD6.7601 (poppy address of the analog phone gateway)

 type ata (indicates that the phone is analog)

 button 1: 1 (binds this phone to the first number, that is 101)

 !

 ephone 2 (for ip phone)

 device-security-mode none

 mac-address 0030.A3EB.2305 (phone's ip address)

 type 7960 (indicates that this is cisco 7960)

 button 1: 2 (binds this phone to the second number, that is 102)

 !

 ephone 3 (for computer)

 device-security-mode none

 mac-address 0001.C7DE.62B5 (mac address of the computer)

 type CIPC (indicates that the program will be used cisco ip communicator or short cipc)

 button 1: 3 (binds this phone to the third number, that is 103)

 !

 ephone 4 (for smartphone)

 device-security-mode none

 mac-address 0001.4315.ED82 (mac address of the smartphone)

 type CIPC (indicates that the program will be used cisco ip communicator or short cipc)

 button 1: 4 (binds this phone to the fourth number, that is 104)

 !

 ephone 5 (for tablet)

 device-security-mode none

 mac-address 00D0.BC92.7B76 (MAC address of the tablet)

 type CIPC (indicates that the program will be used cisco ip communicator or short cipc)

 button 1: 5 (binds this phone to the fifth number, that is 105)

 !

 ephone 6 (for laptop)

 device-security-mode none

 mac-address 0001.9622.8276 (mac address of the laptop)

 type CIPC (indicates that the program will be used cisco ip communicator or short cipc)

 button 1: 6 (binds this phone to the sixth number, that is 106)


Configure the switch:

1) Let's translate 4 ports of the switch which look at our devices in a voice vlan

  interface FastEthernet0 / 1

 switchport voice vlan 1

 exit

 !

 interface FastEthernet0 / 2

 switchport voice vlan 1

 exit

 !

 interface FastEthernet0 / 3

 switchport voice vlan 1

 exit

 !

 interface FastEthernet0 / 4

 switchport voice vlan 1


Set up your VoIP analog phone gateway:

Since this analog telephone does not know how to work with IP addresses, but it needs to get a number, it connects to the network using a gateway. For correct work, the gateway needs to register the server address where to apply.

"

Wi-Fi setup

Since there are no ethernet ports on these portable devices, they will work using a wi-fi point connected to the common grid. Connect the point to the switch and go to its settings.

Click the Config -> Port 1 tab and configure it (in general, you can leave the Default name without a password):

  SSID: wifi
 Channel: 6
 Authentication: WPA2-PSK
 PSK Pass Phrase: cisco123




Now we enter this data on devices that will connect via wi-fi. For example, set up wi-fi on your smartphone. Click on the Config tab -> Wireless0 and configure it. Make sure that the checkbox next to port status is set to On, and DHCP is selected in the IP Configuration field.

  SSID: wifi
 Channel: 6
 Authentication: WPA2-PSK
 PSK Pass Phrase: cisco123




Obtaining addresses and setting up CIPC on devices:

At this stage, phones should already register and get numbers (in the GUI tab, the received phone number should appear in the upper right corner).

Analog phone:



IP Phone 7960:



Let's go to the computer and other devices. After all devices get IP addresses, go to the Desktop tab and select Cisco IP Communicator. After that, in the upper right corner we see that the number was assigned (I personally did not assign the number until you started the CIPC itself. Either this is the glitch of the simulator itself, or Cisco wanted to simulate that the number is assigned after the client starts)

But in general, the picture is:

PC:



Smartphone:



The tablet:



A laptop:



As you can see, all devices received numbers, according to reservations on the router.

Health Check:

There is a final stage, in the form of organizing a telephone call and connection. But to check all 6 devices and calls from each to each is impractical, because you get a whole filmstrip. Therefore, we organize a call from a tablet computer to a regular analog phone and vice versa, as well as from an analog phone to an ip phone and back.

A call from the tablet to an analog phone (from number 101 to 105):



Call from analog phone to tablet (from number 105 to 101):



A call from an analog phone to an IP phone (from number 101 to 102), and here the handset is specially picked up to demonstrate that the connection is established and a conversation is possible.



Call from IP phone to analog phone (from number 102 to 101):



Thus, they organized a telephone connection, both devices of similar structure, and completely different in their architecture in hardware and software.

PS And here we are at the end and it remains to answer the question asked at the beginning: “Is it possible to prepare for the CCNA Voice exam using this program?”.

I will try to answer a little deployed. While writing this article, a little disappointed. Since in this simulator there is only one router, on which you can raise CME and organize telephony, it is 2811. In addition to this, the functionality of this router is cut down very much, only the most basic things can be designed accordingly. Talking about phones I think it makes no sense. Well, if we talk about the program Cisco IP Communicator, then here it is no more than a picture with a pair of buttons. Accordingly, I believe that to prepare for the exam, the experience gained in this simulator will not be enough and will have to use more powerful tools. But for a basic acquaintance with how tsiskovskaya telephony works, she copes.
In this regard, in the future I plan to release a lesson on Cisco Call Manager or CUCM, as well as analyze the functionality of the CIPC program in more detail.

Thank you all and good settings.

Source: https://habr.com/ru/post/274685/


All Articles