Konfigurasi VOIP Network to Remote Site (Topologi 2) :
Konfigurasi VOIP Network to Remote Site (Topologi 2) :
Nama : M AL Haytami
Kelas : XI TKJA
Topology
Langkah - langkah
Press RETURN to get started!
Switch>
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#host S1
S1(config)#vlan 10
S1(config-vlan)#name voive
S1(config-vlan)#vlan 20
S1(config-vlan)#name data
S1(config-vlan)#vlan 30
S1(config-vlan)#name management
S1(config-vlan)#ex
S1(config)#int vlan 30
S1(config-if)#
%LINK-5-CHANGED: Interface Vlan30, changed state to up
S1(config-if)#ip add 30.30.30.2 255.255.255.0
S1(config-if)#ex
S1(config)#ip default-gateway 30.30.30.1
S1(config)#int range fa0/1-3
S1(config-if-range)#switchport voice vlan 10
S1(config-if-range)#switchport access vlan 20
S1(config-if-range)#ex
S1(config)#int fa0/4
S1(config-if)#switchport mode trunk
S1(config-if)#switchport trunk native vlan 30
S1(config-if)#ex
Pada konfigurasi ini kita akan men-set port untuk mengakses vlan voice, Klik pada Switch, pilih
Tab CLI kemudian ketikan perintah berikut :
Press RETURN to get started!
Switch>enable
Switch#configure terminal
Switch(config)#host S2
S2(config-vlan)#vlan 40
S2(config-vlan)#name voice
S2(config-vlan)#vlan 50
S2(config-vlan)#name data
S2(config-vlan)#vlan 60
S2(config-vlan)#name management
S2(config-vlan)#ex
S2(config)#int vlan 60
S2(config-if)#
%LINK-5-CHANGED: Interface Vlan60, changed state to up
S2(config-if)#ip add 60.60.60.2 255.255.255.0
S2(config-if)#ex
S2(config)#ip default-gateway 60.60.60.1
S2(config)#int ra fa0/2-3
S2(config-if-range)#switchport voice vlan 40
S2(config-if)#switchport access vlan 50
S2(config-if-range)#ex
S2(config)#int fa 0/1
S2(config-if)#switchport trunk native vlan 60
S2(config-if)#ex
S2(config)#
S2#
%SYS-5-CONFIG_I: Configured from console by console
Klik pada router, pilih Tab CLI kemudian ketikan perintah berikut :
Continue with configuration dialog? [yes/no]: n
Press RETURN to get started!
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host R1
R1(config)#int fa0/0
R1(config-if)#no sh
R1(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
R1(config-if)#ex
R1(config)#int fa0/0.10
R1(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.10, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.10,
changed state to up
R1(config-subif)#int fa0/0.10
R1(config-subif)#encapsulation dot1Q 10
R1(config-subif)#ip add 10.10.10.1 255.255.255.0
R1(config-subif)#int fa0/0.20
R1(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.20, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.20,
changed state to up
R1(config-subif)#encapsulation dot1Q 20
R1(config-subif)#ip add 20.20.20.1 255.255.255.0
R1(config-subif)#ex
R1(config)#int fa0/0.30
R1(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.30, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.30,
changed state to up
R1(config-subif)#encapsulation dot1Q 30 native
R1(config-subif)#ip add 30.30.30.1 255.255.255.0
R1(config-subif)#ex
R1(config)#ip dhcp pool voice
R1(dhcp-config)#network 10.10.10.0 255.255.255.0
R1(dhcp-config)#default-router 10.10.10.1
R1(dhcp-config)#option 150 ip 10.10.10.1
R1(dhcp-config)#ex
R1(config)#ip dhcp excluded 10.10.10.1
R1(config)#ip dhcp pool data
R1(dhcp-config)#network 20.20.20.0 255.255.255.0
R1(dhcp-config)#default-router 20.20.20.1
R1(dhcp-config)#ip dhcp excluded-address 20.20.20.1
R1(config)#ex
Encapsulation dot1Q merupakan konfigurasi untuk menghubungkan sub-interfaces dari
masing – masing VLAN atau memberi hak akses untuk interface trunking agar masing-
masing VLAN dapat terhubung.
R1(config)#telephony-service
R1(config-telephony)#max-ephones 3
R1(config-telephony)#max-dn 3
R1(config-telephony)#ip source-address 10.10.10.1 port 2000
R1(config-telephony)#auto assign 1 to 5
R1(config-telephony)#auto assign 4 to 6
R1(config-telephony)#ex
R1(config)#ephone-dn 1
R1(config-ephone-dn)#%LINK-3-UPDOWN: Interface ephone_dsp DN 1.1,
changed state to up
R1(config-ephone-dn)#number 1001
R1(config-ephone-dn)#ephone-dn 2
R1(config-ephone-dn)#%LINK-3-UPDOWN: Interface ephone_dsp DN 2.1,
changed state to up
R1(config-ephone-dn)#
%IPPHONE-6-REGISTER: ephone-1 IP:10.10.10.3 Socket:2 DeviceType:Phone
has registered.
R1(config-ephone-dn)#number 1002
R1(config-ephone-dn)#
%IPPHONE-6-REGISTER: ephone-2 IP:10.10.10.2 Socket:2 DeviceType:Phone
has registered.
R1(config-ephone-dn)#ephone-dn 3
R1(config-ephone-dn)#%LINK-3-UPDOWN: Interface ephone_dsp DN 3.1,
changed state to up
R1(config-ephone-dn)#number 1003
R1(config-ephone-dn)#
%IPPHONE-6-REGISTER: ephone-3 IP:10.10.10.4 Socket:2 DeviceType:Phone
has registered.
R1(config-if)#int fa0/1
R1(config-if)#no sh
R1(config-if)#ip add 70.70.70.1 255.255.255.252
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1,
changed state to up
R1(config-if)#ex
R1(config)#router eigrp 1
R1(config-router)#no auto-summary
R1(config-router)#network 10.10.10.0
R1(config-router)#network 20.20.20.0
R1(config-router)#network 20.20.20.0
R1(config-router)#network 30.30.30.0
R1(config-router)#network 70.70.70.0
R1(config-router)#ex
R1(config)#
%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 70.70.70.2 (FastEthernet0/1)
is up: new adjacency
R1(config)#dial-peer voice 200 voip
R1(config-dial-peer)#session target ipv4:70.70.70.2
R1(config-dial-peer)#destination-pattern 200.
R1(config-dial-peer)#ex
Klik pada router, pilih Tab CLI kemudian ketikan perintah berikut :
Continue with configuration dialog? [yes/no]: n
Press RETURN to get started!
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host R2
R2(config)#int fa0/0
R2(config-if)#no sh
R2(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
R2(config-if)#ex
R2(config)#int fa0/0.40
R2(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.40, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.40,
changed state to up
R2(config-subif)#encapsulation dot1Q 40
R2(config-subif)#ip add 40.40.40.1 255.255.255.0
R2(config-subif)#ex
R2(config)#int fa0/0.50
R2(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.50, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.50,
changed state to up
R2(config-subif)#encapsulation dot1Q 50
R2(config-subif)#ip add 50.50.50.1 255.255.255.0
R2(config-subif)#ex
R2(config)#int fa0/0.60
R2(config-subif)#
%LINK-5-CHANGED: Interface FastEthernet0/0.60, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.60,
changed state to up
R2(config-subif)#encapsulation dot1Q 60 native
R2(config-subif)#ip add 60.60.60.1 255.255.255.0
R2(config-subif)#ex
R2(config)#ip dhcp pool voice
R2(dhcp-config)#network 40.40.40.0 255.255.255.0
R2(dhcp-config)#default-router 40.40.40.1
R2(dhcp-config)#%DHCPD-4-PING_CONFLICT: DHCP address conflict: server
pinged 40.40.40.1.
R2(dhcp-config)#option 150 ip 40.40.40.1
R2(dhcp-config)#ex
R2(config)#ip dhcp excluded-address 40.40.40.1
R2(config)#ip dhcp pool data
R2(dhcp-config)#network 50.50.50.0 255.255.255.0
R2(dhcp-config)#default-router 50.50.50.1
R2(dhcp-config)#ex
R2(dhcp-config)#ip dhcp excluded-address 50.50.50.1
R2(config)#
R2(config)#telephony-service
R2(config-telephony)#max-ephones 2
R2(config-telephony)#max-dn 2
R2(config-telephony)#ip source-address 40.40.40.1 port 2000
R2(config-telephony)#auto assign 1 to 5
R2(config-telephony)#auto assign 4 to 6
R2(config-telephony)#ex
R2(config)#ephone-dn 1
R2(config-ephone-dn)#%LINK-3-UPDOWN: Interface ephone_dsp DN 1.1,
changed state to up
R2(config-ephone-dn)#number 2001
R2(config-ephone-dn)#ephone-dn 2
R2(config-ephone-dn)#%LINK-3-UPDOWN: Interface ephone_dsp DN 2.1,
changed state to up
R2(config-ephone-dn)#number 2002
R2(config-ephone-dn)#
%IPPHONE-6-REGISTER: ephone-1 IP:40.40.40.3 Socket:2 DeviceType:Phone
has registered.
%IPPHONE-6-REGISTER: ephone-2 IP:40.40.40.4 Socket:2 DeviceType:Phone
has registered.
R2>
R2>en
R2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#int fa0/1
R2(config-if)#no sh
R2(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
R2(config-if)#ip add 70.70.70.2 255.255.255.252
R2(config-if)#ex
R2(config)#router eigrp 1
R2(config-router)#no auto-summary
R2(config-router)#network 40.40.40.0
R2(config-router)#network 50.50.50.0
R2(config-router)#network 60.60.60.0
R2(config-router)#network 70.70.70.0
R2(config-router)#
%DUAL-5-NBRCHANGE: IP-EIGRP 1: Neighbor 70.70.70.1 (FastEthernet0/1)
is up: new adjacency
R2(config-router)#do sh 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
10.0.0.0/24 is subnetted, 1 subnets
D 10.10.10.0 [90/30720] via 70.70.70.1, 00:01:08, FastEthernet0/1
20.0.0.0/24 is subnetted, 1 subnets
D 20.20.20.0 [90/30720] via 70.70.70.1, 00:01:08, FastEthernet0/1
30.0.0.0/24 is subnetted, 1 subnets
D 30.30.30.0 [90/30720] via 70.70.70.1, 00:01:08, FastEthernet0/1
40.0.0.0/24 is subnetted, 1 subnets
C 40.40.40.0 is directly connected, FastEthernet0/0.40
50.0.0.0/24 is subnetted, 1 subnets
C 50.50.50.0 is directly connected, FastEthernet0/0.50
60.0.0.0/24 is subnetted, 1 subnets
C 60.60.60.0 is directly connected, FastEthernet0/0.60
70.0.0.0/30 is subnetted, 1 subnets
C 70.70.70.0 is directly connected, FastEthernet0/1
R2(config-router)#
R2(config-router)#ex
R2(config)#dial-peer voice 200 voip
R2(config-dial-peer)#session target ipv4:70.70.70.1
R2(config-dial-peer)#destination-pattern 100.
R2(config-dial-peer)#ex
R2(config)#
5. hasil
Komentar
Posting Komentar