You are on page 1of 4

(https://linuxtiwary.files.wordpress.com/2015/08/voiplab.

png)

STARTCONFIGURINGROUTER:
Router>enable
Router#configureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Router(config)#hostr1
r1(config)#intfa0/0
r1(configif)#ipadd1.0.0.1255.0.0.0
r1(configif)#noshut
r1(configif)#
%LINK5CHANGED:InterfaceFastEthernet0/0,changedstatetoup
%LINEPROTO5UPDOWN:LineprotocolonInterfaceFastEthernet0/0,changedstatetoup

%LINEPROTO5UPDOWN:LineprotocolonInterfaceFastEthernet0/0,changedstatetoup
r1(configif)#exit
r1(config)#ipdhcppoolvoip
r1(dhcpconfig)#network1.0.0.0255.0.0.0
r1(dhcpconfig)#defaultrouter1.0.0.1
r1(dhcpconfig)#option150ip1.0.0.1
r1(dhcpconfig)#exit

Nowconfigureroutertointeractwithtelephones.
r1(config)#telephonyservice
r1(configtelephony)#maxephones5
r1(configtelephony)#maxdn5
r1(configtelephony)#ipsourceaddress1.0.0.1port2001
r1(configtelephony)#autoassign4to6
r1(configtelephony)#autoassign1to5
r1(configtelephony)#exit

Nowitstimetoassignphonenumberstoipphones:
r1>enable
r1#configureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
r1(config)#telephonyservice
dn)#ephonedn2
r1(configephonedn)#%LINK3UPDOWN:Interfaceephone_dspDN2.1,changedstateto
up
number6666
r1(configephonedn)#exit

r1(configephonedn)#exit
r1(config)#telephonyservice
r1(configtelephony)#ephonedn1
r1(configephonedn)#number5555
r1(configephonedn)#

Nowconfigureswitch:
Switch>enable
Switch#configureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
Switch(config)#intrangefa0/15
Switch(configifrange)#switchportmodeaccess
Switch(configifrange)#switchportvoicevlan1

Nowletsgoandcheckinsidethephonemenu:

(https://linuxtiwary.files.wordpress.com/2015/08/voipphone1.png)

Explanationofabovediagram:
Youcanclearlyseeinabovediagramthattheipphonenumberis5555andfromthereiam
dialingipphonewhichnuberis6666.Youcanseeinoutputringoutoptionwhichmeans
phoneisringing.Nowletsgotootherphoneandreceivethecallandseewhathappensafter
receivingthisdialnumber.

You might also like