Kamis, 18 Oktober 2018

Konfigurasi VoIP Network to Remote Site

Pada kesempatan kali ini, kita akan membahas tentang Konfigurasi VoIP Network to Remote Site.

1. Buatlah topologi seperti pada gambar dibawah ini.

Kita gunakan 1 Router 2811, 2 Switch 2960-24TT, 5 IP Phone 7960, dan 1 Laptop untuk melakukan konfigurasi.


2. Agar IP Phone dapat menyala, colokkan Power Adapter pada setiap IP Phone.


Sebelum ...


Sesudah ...


Dan seluruh IP Phone akan menyala, dan terhubung ke setiap port yang terhubung dengannya.

3. Disini kita mulai konfigurasi Switch. Karena saya akan menggunakan Laptop untuk konfigurasi, maka hubungkan dulu Laptop dengan Switch dengan kabel Console.

Switch yang saya konfigurasi pertama kali adalah Switch 1, yang pada topologi ini berada di Kota Jakarta.


4. Kemudian masuk ke Terminal untuk memulai konfigurasi.


5. Beri identitas pada switch dan daftarkan seluruh port yang terhubung dengan IP Phone ke VLAN Voice (disini port fastethernet 0/1-0/3) dengan perintah seperti dibawah ini.

Switch>enable 
Switch#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z. 
Switch(config)#hostname SW-01 
SW-01(config)#interface range fastethernet0/1-3 
SW-01(config-if-range)#switchport voice vlan 1 
SW-01(config-if-range)#exit 
SW-01(config)#  

6.  Kemudian kita konfigurasi Router 1, yaitu Router yang pada topologi ini berada di Kota Jakarta.


Would you like to enter the initial configuration dialog? [yes/no]: no 


Press RETURN to get started! 



Router>enable 
Router#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z. 
Router(config)#hostname R-01 
R-01(config)#interface fastethernet 0/1 
R-01(config-if)#no shutdown 

R-01(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 

R-01(config-if)#exit 
R-01(config)#ip dhcp pool VOICE 
R-01(dhcp-config)#network 192.168.10.0 255.255.255.0 
R-01(dhcp-config)#default-router 192.168.10.1 
R-01(dhcp-config)#option 150 ip 192.168.10.1 
R-01(dhcp-config)#exit 
R-01(config)#ip dhcp excluded-address 192.168.10.1 
R-01(config)#interface fastethernet 0/1 
R-01(config-if)#ip address 192.168.10.1 255.255.255.0 
R-01(config-if)#exit 
R-01(config)#telephony-service 
R-01(config-telephony)#max-ephones 3 
R-01(config-telephony)#max-dn 3 
R-01(config-telephony)#ip source-address 192.168.10.1 port 2000 
R-01(config-telephony)#auto assign 1 to 5 
R-01(config-telephony)#auto assign 4 to 6 
R-01(config-telephony)#exit 
R-01(config)#ephone-dn 1 
R-01(config-ephone-dn)#%LINK-3-UPDOWN: Interface ephone_dsp DN 1.1, changed state to up 

R-01(config-ephone-dn)#number 1001 
R-01(config-ephone-dn)#exit 
R-01(config)# 
%IPPHONE-6-REGISTER: ephone-3 IP:192.168.10.2 Socket:2 DeviceType:Phone has registered. 

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

R-01(config-ephone-dn)#number 1002 
R-01(config-ephone-dn)# 
%IPPHONE-6-REGISTER: ephone-2 IP:192.168.10.3 Socket:2 DeviceType:Phone has registered. 

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

R-01(config-ephone-dn)#number 1003 
R-01(config-ephone-dn)# 
%IPPHONE-6-REGISTER: ephone-1 IP:192.168.10.4 Socket:2 DeviceType:Phone has registered. 

R-01(config-ephone-dn)#exit 
R-01(config)#do write 
Building configuration...[OK] 

R-01(config)# 



7. Kemudian kita tes panggilan dari IP Phone 1 ke IP Phone 2 dan 3.



8.  Selanjutnya kita konfigurasi Switch 2, yaitu Switch yang pada topologi ini berada di Kota Bekasi.

Beri identitas pada switch dan daftarkan seluruh port yang terhubung dengan IP Phone ke VLAN Voice (disini port fastethernet 0/1-0/2) dengan perintah seperti dibawah ini.

Switch>enable 
Switch#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z. 
Switch(config)#hostname SW-02 
SW-02(config)#interface range fastethernet 0/1-2 
SW-02(config-if-range)#switchport voice vlan 1 
SW-02(config-if-range)#exit 
SW-02(config)#  

9. Kemudian kita konfigurasi Router 2, yaitu Router yang pada topologi ini berada di Kota Bekasi.

Would you like to enter the initial configuration dialog? [yes/no]: no 


Press RETURN to get started! 



Router>enable 
Router#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z. 
Router(config)#hostname R-02 
R-02(config)#interface fastethernet 0/1 
R-02(config-if)#no shutdown  
R-02(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  
R-02(config-if)#exit 
R-02(config)#ip dhcp pool VOICE 
R-02(dhcp-config)#network 192.168.20.0 255.255.255.0 
R-02(dhcp-config)#default-router 192.168.20.1 
R-02(dhcp-config)#option 150 ip 192.168.20.1 
R-02(dhcp-config)#exit 
R-02(config)#ip dhcp excluded-address 192.168.20.1 
R-02(config)#interface fastethernet 0/1 
R-02(config-if)#ip address 192.168.20.1 255.255.255.0 
R-02(config-if)#exit 
R-02(config)#telephony-service 
R-02(config-telephony)#max-ephones 2 
R-02(config-telephony)#max-dn 2 
R-02(config-telephony)#ip source-address 192.168.20.1 port 2000 
R-02(config-telephony)#%DHCPD-4-PING_CONFLICT: DHCP address conflict:  server pinged 192.168.20.3. 
R-02(config-telephony)#auto assign 1 to 5 
R-02(config-telephony)#auto assign 4 to 6 
R-02(config-telephony)#exit 
R-02(config)#ephone-dn 1 
R-02(config-ephone-dn)#%LINK-3-UPDOWN: Interface ephone_dsp DN 1.1, changed state to up 
R-02(config-ephone-dn)#number 2001 
R-02(config-ephone-dn)#exit 
R-02(config)#ep 
%IPPHONE-6-REGISTER: ephone-2 IP:192.168.20.2 Socket:2 DeviceType:Phone has registered. 
             ^ 
% Invalid input detected at '^' marker. 
R-02(config)#ephone-dn 2 
R-02(config-ephone-dn)#%LINK-3-UPDOWN: Interface ephone_dsp DN 2.1, changed state to up 
R-02(config-ephone-dn)#number 2002 
R-02(config-ephone-dn)# 
%IPPHONE-6-REGISTER: ephone-1 IP:192.168.20.3 Socket:2 DeviceType:Phone has registered. 
R-02(config-ephone-dn)#exit 
R-02(config)# 

10. Kemudian kita tes telepon dari IP Phone 4 ke IP Phone 5.


11. Coba kita tes telepon dari IP Phone 1 ke IP Phone 5, apakah dapat terhubung?


Yap, ternyata belum terhubung. Ini terjadi karena jaringan antar Router belum terhubung.

12. Selanjutnya kita konfigurasi pada Router 1 agar dapat terhubung dengan Router 2.


R-01>enable 
R-01#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z. 
R-01(config)#interface fastethernet 0/0 
R-01(config-if)#ip address 192.168.30.1 255.255.255.252 
R-01(config-if)#exit 
R-01(config)#interface fastethernet 0/0 
R-01(config-if)#no shutdown 
R-01(config-if)# 
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up 
R-01(config-if)#exit 
R-01(config)#router ospf 1 
R-01(config-router)#network 192.168.10.0 255.255.255.0 area 0 
R-01(config-router)#network 192.168.30.0 255.255.255.252 area 0 
R-01(config-router)#exit 
R-01(config)# 
R-01>enable 
R-01#show ip route 
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP 
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP 
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area 
       * - candidate default, U - per-user static route, o - ODR 
       P - periodic downloaded static route 
Gateway of last resort is not set 
C    192.168.10.0/24 is directly connected, FastEthernet0/1 
O    192.168.20.0/24 [110/2] via 192.168.30.2, 00:03:34, FastEthernet0/0 
     192.168.30.0/30 is subnetted, 1 subnets 
C       192.168.30.0 is directly connected, FastEthernet0/0 
R-01# 



13. Kemudian kita konfigurasi Router 2, agar dapat terhubung dengan Router 1.

R-02>enable 
R-02#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z. 
R-02(config)#interface fastethernet 0/0 
R-02(config-if)#ip address 192.168.30.2 255.255.255.252 
R-02(config-if)#no shutdown 
R-02(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 
R-02(config-if)#exit 
R-02(config)#router ospf 1 
R-02(config-router)#network 192.168.20.0 255.255.255.0 area 0 
R-02(config-router)#network 192.168.30.0 255.255.255.252 area 0 
R-02(config-router)#exit 
R-02(config)# 
01:37:12: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.30.1 on FastEthernet0/0 from LOADING to FULL, Loading Done 
R-02(config)# 

R-02>enable 
R-02#show ip route 
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP 
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 
       E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP 
       i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area 
       * - candidate default, U - per-user static route, o - ODR 
       P - periodic downloaded static route 
Gateway of last resort is not set 
O    192.168.10.0/24 [110/2] via 192.168.30.1, 00:01:25, FastEthernet0/0 
C    192.168.20.0/24 is directly connected, FastEthernet0/1 
     192.168.30.0/30 is subnetted, 1 subnets 
C       192.168.30.0 is directly connected, FastEthernet0/0 
R-02# 


14. Kemudian kita konfigurasi Destination Pattern pada Router 1.

R-01#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z. 
R-01(config)#dial-peer voice 200 voip 
R-01(config-dial-peer)#session target ipv4:192.168.30.2 
R-01(config-dial-peer)#destination-pattern 2001 
R-01(config-dial-peer)#destination-pattern 2002 
R-01(config-dial-peer)#destination-pattern 200. 
R-01(config-dial-peer)#exit 
R-01(config)# 

15. Dan selanjutnya kita konfigurasi Destination Pattern pada Router 2.


R-02>enable 
R-02#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z. 
R-02(config)#dial-peer voice 200 voip 
R-02(config-dial-peer)#session target ipv4:192.168.30.1 
R-02(config-dial-peer)#destination-pattern 1001 
R-02(config-dial-peer)#destination-pattern 1002 
R-02(config-dial-peer)#destination-pattern 1003 
R-02(config-dial-peer)#destination-pattern 100. 
R-02(config-dial-peer)#exit 
R-02(config)# 


16. Kemudian kita tes telepon dari IP Phone 1 ke IP Phone 5.


Akhirnya IP Phone 1 dan IP Phone 5 dapat terhubung.
 

Tidak ada komentar:

Posting Komentar