Configuring VOIP-LAB on Packet Tracer

Configuring VOIP-LAB on Packet Tracer

Voice over IP (VoIP, or voice over Internet Protocol) is communication protocols, involved in the delivery of voice communications and multimedia sessions over Internet Protocol (IP) networks. various terms commonly used with VoIP are IP telephony,Internet telephony, voice over broadband (VoBB), broadband telephony, IP communications, and broadband phone.

Let us apply it on packet tracer.

Voip1

Phone is displayed below. And when we try to go to any other mode its give us error and ask us to switch it on first.

voip2

For that, go to Physical mode and put the power adapter (in the bottom right corner) into the phone as shown in figure.
voip3

Now, we have inserted the antenna into IP phone. Repeat it for other phones as well.

voip4

Now, we see that interface of IP phone is UP.
voip5

Now, go to router and assign IP address.

Voip6

We will have to set DHCP server on router to assign IP addresses to IP phones.

Voip7

We will have to give an additional command for voip.
Router(dhcp-config)#option 150 ip 192.168.1.1

Voip8

Now, let us apply commands to the router for voip. You might have noticed we took 2811 series router because it facilitates the following commands.

Voip9

Continued.

Voip10

Now, we will go to the switch and make the interfaces support voip as follows.

Voip11

After that, we will have to assign phone number to our IP phone by applying following commands

Voip12

Continued…

Voip13

Now, we can see that in GUI mode of Phone, we have a phone number available.

Voip14

This means that we can call from one phone to the other. Lets do that.

Voip15

And when we pick up the reciever, it says that we are connected :) .
Voip16

Commands on Router for VOIP

Router(config)#ip dhcp pool voice

Router(dhcp-config)#option 150 ip 192.168.1.1
Router(dhcp-config)#exit

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 9
Router(config-telephony)#exit

Router(config)#ephone-dn 1
%LINK-3-UPDOWN: Interface ephone_dsp DN 1.1, changed state to up

Router(config-ephone-dn)#number 12345
Router(config-ephone-dn)#exit

%IPPHONE-6-REGISTER: ephone-1 IP:192.168.1.2 Socket:2 DeviceType:Phone has registered.
Router(config)#ephone-dn 2

%LINK-3-UPDOWN: Interface ephone_dsp DN 2.1, changed state to up

Router(config-ephone-dn)#number 123
Router(config-ephone-dn)#exit
Router(config)#ephone-dn 3
%LINK-3-UPDOWN: Interface ephone_dsp DN 3.1, changed state to up

Router(config-ephone-dn)#number 11111
Router(config-ephone-dn)#exit

Commands on Switch for VOIP

Switch(config)#interface range fastEthernet 0/1 – fastEthernet 0/10
Switch(config-if-range)#switchport mode access
Switch(config-if-range)#switchport voice vlan 1

About the author

admin administrator

Leave a Reply