Config PBX Voip
Config PBX Voip
router>enable
router#configure terminal
router(config)#interface FastEthernet0/0
router(config-if)#no shutdown
router(config-if)#interface FastEthernet0/0.10
router(config-subif)#encapsulation dot1q 10
router(config-subif)#ip address 192.168.1.1 255.255.255.0
router(dhcp-config)#telephony-service
router(config-telephony)#ip source-address 192.168.1.1 port 2000
router(config-telephony)#max-dn 2
router(config-telephony)#max-ephone 2
router(config-telephony)#auto assign 1 to 2
router(config-telephony)#ephone-dn 1
router(config-ephone-dn)#number 1001
router(config-ephone-dn)#ephone-dn 2
router(config-ephone-dn)#number 1002
--SETING SWITCH--
switch>enable
switch#configure terminal
switch(config)#vlan 10
switch(config-vlan)#interface FastEthernet0/1
switch(config-if)#switchport mode trunk
switch(config-if)#interface range FastEthernet0/2-4
switch(config-if)#switchport voice vlan 10