Tuesday, August 27, 2019

Konfigurasi Voip 2 router

Pada kesempatan kali ini saya akan sharing / memberikan cara konfigurasi Voip.Yup,tanpa perlu menunggu lagi mari kita simak untuk  langkah-langkahnya dibawah ini :

1. buatlah topologi seperti di bawah ini
2. konfigurasi switch 0,1,2,3
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#int range fa0/1-24
Switch(config-if-range)#sw mode access
Switch(config-if-range)#sw voice vlan 1
Switch(config-if-range)#ex

3. Konfigurasi Router 0
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ip dhcp pool voice
Router(dhcp-config)#net 192.168.10.0 255.255.255.0
Router(dhcp-config)#default-router 192.168.10.1
Router(dhcp-config)#option 150 ip 192.168.10.1
Router(dhcp-config)#dns-server 8.8.8.8
Router(dhcp-config)#ex
Router(config)#ip dhcp excluded-add 192.168.10.1
Router(config)#int fa0/0
Router(config-if)#ip add 192.168.20.0 255.255.255.0
Bad mask /24 for address 192.168.20.0
Router(config-if)#ip add 192.168.10.1 255.255.255.0
Router(config-if)#no sh

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Router(config-if)#ex
Router(config)#telephony-service
Router(config-telephony)#max-ephone 4
Router(config-telephony)#max-dn 4
Router(config-telephony)#ip source-add 192.168.10.1 port 2000
Router(config-telephony)#auto assign 4 to 6
Router(config-telephony)#auto assign 1 to 5
Router(config-telephony)#ex
Router(config)#ephone-dn 1
Router(config-ephone-dn)#%LINK-3-UPDOWN: Interface ephone_dsp DN 1.1, changed state to up

Router(config-ephone-dn)#number 1000
Router(config-ephone-dn)#ephone-dn 2
Router(config-ephone-dn)#%LINK-3-UPDOWN: Interface ephone_dsp DN 2.1, changed state to up

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

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

Router(config-ephone-dn)#number 1002
Router(config-ephone-dn)#ephone-dn 4
Router(config-ephone-dn)#%LINK-3-UPDOWN: Interface ephone_dsp DN 4.1, changed state to up

Router(config-ephone-dn)#number 1003
Router(config-ephone-dn)#ex
Router(config)#ip dhcp pool voic
%IPPHONE-6-REGISTER: ephone-2 IP:192.168.10.3 Socket:2 DeviceType:Phone has registered.
Router(dhcp-config)#ex
Router(config)#ip dhcp pool voice
Router(dhcp-config)#net 192.168.20.0 255.255.255.0
Router(dhcp-config)#defailt-router 192.168.20.1
^
% Invalid input detected at '^' marker.

Router(dhcp-config)#default-router 192.168.20.1
Router(dhcp-config)#option 150 ip 192.168.20.1
Router(dhcp-config)#dns-server 8.8.8.8
Router(dhcp-config)#ex
Router(config)#ip dhcp excluded-add 192.168.20.1
Router(config)#int fa0/1
Router(config-if)#ip add 192.168.20.1 255.255.255.0
Router(config-if)#no sh

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

Router(config-if)#ex
Router(config)#telephony-service
Router(config-telephony)#max-ephone 4
Router(config-telephony)#max-dn 4
Router(config-telephony)#ip source-add 192.168.20.1 port 2000
Router(config-telephony)#auto assign 4 to 6
Router(config-telephony)#auto assign 1 to 5
Router(config-telephony)#ex
Router(config)#
%IPPHONE-6-REGISTER: ephone-3 IP:192.168.20.3 Socket:2 DeviceType:Phone has registered.

%IPPHONE-6-REGISTER: ephone-4 IP:192.168.20.2 Socket:2 DeviceType:Phone has registered.

Router(config)#route rip
Router(config-router)#version 2
Router(config-router)#no auto-summary
Router(config-router)#ex
Router(config)#int se0/0/0
Router(config-if)#ip add 192.168.100.1 255.255.255.0
Router(config-if)#clock rate 2000000\
^
% Invalid input detected at '^' marker.

Router(config-if)#clock rate 2000000
Router(config-if)#no sh

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
Router(config-if)#ex
Router(config)#route rip
Router(config-router)#version 2
Router(config-router)#no auto-summary
Router(config-router)#net 192.168.10.0
Router(config-router)#net 192.168.20.0
Router(config-router)#net 192.168.100.0
Router(config-router)#ex
Router(config)#dial-peer voice 1 voip
Router(config-dial-peer)#destination-pattern 2...
Router(config-dial-peer)#session target ipv4:192.168.100.2
Router(config-dial-peer)#ex

Router(config)#

4. Konfigurasi Router 1
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int se0/0/0
Router(config-if)#ip add 192.168.100.2 255.255.255.0
Router(config-if)#no sh

Router(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

Router(config-if)#ex
Router(config)#ip dhcp p
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
% Incomplete command.
Router(config)#ip dhcp pool voice
Router(dhcp-config)#net 192.168.30.0 255.255.255.0
Router(dhcp-config)#default-router 192.168.30.1
Router(dhcp-config)#option 150 ip 192.168.30.1
Router(dhcp-config)#dns-server 8.8.8.8
Router(dhcp-config)#ex
Router(config)#ip dhcp excluded-add 192.168.30.1
Router(config)#int fa0/0
Router(config-if)#ip add 192.168.30.1 255.255.255.0
Router(config-if)#no sh

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

Router(config-if)#ex
Router(config)#telephony-service
Router(config-telephony)#max-ephone 4
Router(config-telephony)#max-dn 4
Router(config-telephony)#ip source-add 192.168.30.1 port 2000
Router(config-telephony)#auto assign 4 to 6
Router(config-telephony)#auto assign 1 to 5
Router(config-telephony)#ex
Router(config)#ephone-dn 1
Router(config-ephone-dn)#%LINK-3-UPDOWN: Interface ephone_dsp DN 1.1, changed state to up

Router(config-ephone-dn)#number 2000
Router(config-ephone-dn)#ephone-dn 2
Router(config-ephone-dn)#%LINK-3-UPDOWN: Interface ephone_dsp DN 2.1, changed state to up

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

Router(config-ephone-dn)#number 2003
%IPPHONE-6-REGISTER: ephone-1 IP:192.168.30.2 Socket:2 DeviceType:Phone has r
Router(config-ephone-dn)#ephone-dn 3
%IPPHONE-6-REGISTER: ephone-2 IP:192.168.30.3 Socket:2 DeviceType:Phone has registered.

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

Router(config-ephone-dn)#ephone-dn 2
Router(config-ephone-dn)#ex
Router(config)#ip dhcp pool voice
Router(dhcp-config)#net 192.168.40.0 255.255.255.0
Router(dhcp-config)#default-router 192.168.40.1
Router(dhcp-config)#option 150 ip 192.168.40.1
Router(dhcp-config)#dns-server 8.8.8.8
Router(dhcp-config)#ex
Router(config)#ip dhcp excluded-add 192.168.40.1
Router(config)#int fa0/1
Router(config-if)#ip add 192.168.40.1 255.255.255.0
Router(config-if)#no sh

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

Router(config-if)#ex
Router(config)#telephony-service
Router(config-telephony)#max-ephone 4
Router(config-telephony)#max-dn 4
Router(config-telephony)#ip source-add 192.168.40.1 port 2000
Router(config-telephony)#auto assign 4 to 6
Router(config-telephony)#auto assign 1 to 5
Router(config-telephony)#ex
Router(config)#route rip
Router(config-router)#version 2
Router(config-router)#no auto-summary
Router(config-router)#net 192.168.40.0
Router(config-router)#net 192.168.30.0
Router(config-router)#net 192.168.100.0
Router(config-router)#ex
Router(config)#dial-peer voice 1 voip
Router(config-dial-peer)#destination-pattern 1...
Router(config-dial-peer)#session target ipv4:192.168.100.1
Router(config-dial-peer)#ex

Router(config)#

0 comments:

Post a Comment