Posted by : Unknown
Minggu, 15 September 2013
1. Buatlah Rangkaian Seperti Ini
Dengan VLAN RPL 60 host, TKJ 60 host ANI, 40 host
2. Atur CLI Router Yang Menyambung Ke
SWITCH
Router>en
Router#config t
Router(config)#enable password smkn2sby ---> Terserah mau dikasih nama apa saja
Router(config)#line vty 0 4
Router(config-line)#password smkn2sby ---> Setting password untuk telnet router
Router(config-line)#login
Router(config-line)#exit
Router#config t
Router(config)#enable password smkn2sby ---> Terserah mau dikasih nama apa saja
Router(config)#line vty 0 4
Router(config-line)#password smkn2sby ---> Setting password untuk telnet router
Router(config-line)#login
Router(config-line)#exit
Langkah pemberian IP address sub-interface untuk masing2 VLAN
Router(config)#int f0/0
Router(config-if)#no shutdown ---> Perintah untuk mengaktifkan fast eth0/0
Router(config-if)#int f0/0.1 ----> Masuk ke mode sub-interface ditandai dgn config-subif
Router(config-subif)#encapsulation dot1q 1
Router(config-subif)#ip add 10.200.1.1 255.255.255.192 ----> Gateway untuk VLAN 1
Router(config-subif)#int f0/0.2
Router(config-subif)#encapsulation dot1q 2
Router(config-subif)#ip add 10.200.2.1 255.255.255.192 ----> Gateway untuk VLAN 2
Router(config-subif)#int f0/0.3
Router(config-subif)#encapsulation dot1q 3
Router(config-subif)#ip add 10.200.3.1 255.255.255.192 ----> Gateway untuk VLAN 3
Router(config-subif)#int f0/0.4
Router(config-subif)#encapsulation dot1q 4
Router(config-subif)#ip add 10.200.4.1 255.255.255.192 ----> Gateway untuk VLAN 4
Router(config)#end
Router#config t
Router(config)#int s0/0
Router(config-if)#ip add 11.200.30.1 255.255.255.192
Router(config-if)#clock rate 64000
Router(config-if)#bandwidth 2048
Router(config-if)#description IP Public ke Internet
Router(config-if)#no sh
Router(config-if)#
Langkah mengaktifkan Konfigurasi Dynamic Routing RIP version 2
Router(config-if)#router rip
Router(config-router)#network 11.200.30.0
Router(config-router)#network 10.200.1.0
Router(config-router)#network 10.200.2.0
Router(config-router)#network 10.200.3.0
Router(config-router)#network 10.200.4.0
Router(config-router)#version 2
Router(config-router)#no auto-summary
Router(config-router)#exit
Router(config)#end
Langkah mengaktifkan konfigurasi DHCP untuk masing2 VLAN
Router#
Router#config t
Router(config)#int f0/0.2
Router(config-subif)#ip dhcp pool RPL
Router(dhcp-config)#network 10.200.2.0 255.255.255.192
Router(dhcp-config)#default-router 10.200.2.1
Router(dhcp-config)#dns-server 12.200.30.1
Router(dhcp-config)#ip dhcp excluded-address 10.200.2.1 10.200.2.2
Router(config)#exit
Router#config t
Router(config)#int f0/0.3
Router(config-subif)#ip dhcp pool TKJ
Router(dhcp-config)#network 10.200.3.0 255.255.255.192
Router(dhcp-config)#default-router 10.200.3.1
Router(dhcp-config)#dns-server 12.200.30.1
Router(dhcp-config)#ip dhcp excluded-address 10.200.3.1 10.200.3.2
Router(config)#exit
Router#config t
Router(config)#int f0/0.4
Router(config-subif)#ip dhcp pool ANI
Router(dhcp-config)#network 10.200.4.0 255.255.255.192
Router(dhcp-config)#default-router 10.200.4.1
Router(dhcp-config)#dns-server 12.200.30.1
Router(config-if)#no shutdown ---> Perintah untuk mengaktifkan fast eth0/0
Router(config-if)#int f0/0.1 ----> Masuk ke mode sub-interface ditandai dgn config-subif
Router(config-subif)#encapsulation dot1q 1
Router(config-subif)#ip add 10.200.1.1 255.255.255.192 ----> Gateway untuk VLAN 1
Router(config-subif)#int f0/0.2
Router(config-subif)#encapsulation dot1q 2
Router(config-subif)#ip add 10.200.2.1 255.255.255.192 ----> Gateway untuk VLAN 2
Router(config-subif)#int f0/0.3
Router(config-subif)#encapsulation dot1q 3
Router(config-subif)#ip add 10.200.3.1 255.255.255.192 ----> Gateway untuk VLAN 3
Router(config-subif)#int f0/0.4
Router(config-subif)#encapsulation dot1q 4
Router(config-subif)#ip add 10.200.4.1 255.255.255.192 ----> Gateway untuk VLAN 4
Router(config)#end
Router#config t
Router(config)#int s0/0
Router(config-if)#ip add 11.200.30.1 255.255.255.192
Router(config-if)#clock rate 64000
Router(config-if)#bandwidth 2048
Router(config-if)#description IP Public ke Internet
Router(config-if)#no sh
Router(config-if)#
Langkah mengaktifkan Konfigurasi Dynamic Routing RIP version 2
Router(config-if)#router rip
Router(config-router)#network 11.200.30.0
Router(config-router)#network 10.200.1.0
Router(config-router)#network 10.200.2.0
Router(config-router)#network 10.200.3.0
Router(config-router)#network 10.200.4.0
Router(config-router)#version 2
Router(config-router)#no auto-summary
Router(config-router)#exit
Router(config)#end
Langkah mengaktifkan konfigurasi DHCP untuk masing2 VLAN
Router#
Router#config t
Router(config)#int f0/0.2
Router(config-subif)#ip dhcp pool RPL
Router(dhcp-config)#network 10.200.2.0 255.255.255.192
Router(dhcp-config)#default-router 10.200.2.1
Router(dhcp-config)#dns-server 12.200.30.1
Router(dhcp-config)#ip dhcp excluded-address 10.200.2.1 10.200.2.2
Router(config)#exit
Router#config t
Router(config)#int f0/0.3
Router(config-subif)#ip dhcp pool TKJ
Router(dhcp-config)#network 10.200.3.0 255.255.255.192
Router(dhcp-config)#default-router 10.200.3.1
Router(dhcp-config)#dns-server 12.200.30.1
Router(dhcp-config)#ip dhcp excluded-address 10.200.3.1 10.200.3.2
Router(config)#exit
Router#config t
Router(config)#int f0/0.4
Router(config-subif)#ip dhcp pool ANI
Router(dhcp-config)#network 10.200.4.0 255.255.255.192
Router(dhcp-config)#default-router 10.200.4.1
Router(dhcp-config)#dns-server 12.200.30.1
Router(dhcp-config)#ip dhcp
excluded-address 10.200.3.1 10.200.3.2
Router(dhcp-config)#exit
Router(config)#end
Router(dhcp-config)#exit
Router(config)#end
3. Kemudian Atur CLI Pada SWITCH
Konfigurasi Di Switch-VLAN
Membuat VLAN Database
Switch>en
Switch#config t
Switch(config)#hostname Switch-VLAN
Switch-VLAN(config)#^Z
Switch-VLAN#vlan database
Switch-VLAN(vlan)#vlan 2 name RPL
Switch-VLAN(vlan)#vlan 3 name TKJ
Switch-VLAN(vlan)#vlan 4 name ANI
Switch-VLAN(vlan)#exit
Mengaktifkan koneksi VLAN ke router /naik ke layer 3 inter-VLAN routing
Switch-VLAN#config t
Switch-VLAN(config)#int f0/1
Switch-VLAN(config-if)#switchport mode trunk
Switch-VLAN(config-if)#end
Membuat VLAN Database
Switch>en
Switch#config t
Switch(config)#hostname Switch-VLAN
Switch-VLAN(config)#^Z
Switch-VLAN#vlan database
Switch-VLAN(vlan)#vlan 2 name RPL
Switch-VLAN(vlan)#vlan 3 name TKJ
Switch-VLAN(vlan)#vlan 4 name ANI
Switch-VLAN(vlan)#exit
Mengaktifkan koneksi VLAN ke router /naik ke layer 3 inter-VLAN routing
Switch-VLAN#config t
Switch-VLAN(config)#int f0/1
Switch-VLAN(config-if)#switchport mode trunk
Switch-VLAN(config-if)#end
Pemberian membership pada VLAN atau IP subnet address based
Switch-VLAN#config t
Switch-VLAN(config)#int f0/2
Switch-VLAN(config-if)#switchport mode access
Switch-VLAN(config-if)#switchport access vlan 2
Switch-VLAN(config-if)#int f0/3
Switch-VLAN(config-if)#switchport mode access
Switch-VLAN(config-if)#switchport access vlan 3
Switch-VLAN(config-if)#int f0/4
Switch-VLAN(config-if)#switchport mode access
Switch-VLAN(config-if)#switchport access vlan 4
Switch-VLAN(config-if)#end
Switch-VLAN#config t
Switch-VLAN(config)#int f0/2
Switch-VLAN(config-if)#switchport mode access
Switch-VLAN(config-if)#switchport access vlan 2
Switch-VLAN(config-if)#int f0/3
Switch-VLAN(config-if)#switchport mode access
Switch-VLAN(config-if)#switchport access vlan 3
Switch-VLAN(config-if)#int f0/4
Switch-VLAN(config-if)#switchport mode access
Switch-VLAN(config-if)#switchport access vlan 4
Switch-VLAN(config-if)#end
Setting Default-gateway pada VLAN 1
Switch-VLAN#config t
Switch-VLAN(config)#int vlan 1
Switch-VLAN(config-if)#ip add 11.200.1.2 255.255.255.192 --->remote address pada switch
Switch-VLAN(config-if)#no sh
Switch-VLAN(config-if)#exit
Switch-VLAN(config)#ip default-gateway 11.200.1.1 ----> fast eth router f0/0.1
Switch-VLAN(config)#end
Switch-VLAN#config t
Switch-VLAN(config)#int vlan 1
Switch-VLAN(config-if)#ip add 11.200.1.2 255.255.255.192 --->remote address pada switch
Switch-VLAN(config-if)#no sh
Switch-VLAN(config-if)#exit
Switch-VLAN(config)#ip default-gateway 11.200.1.1 ----> fast eth router f0/0.1
Switch-VLAN(config)#end
4. Kemudian Atur CLI Di Router Yang
Menyambung Di Server
OPTIONAL
Untuk ISP-Router hanya dikonfigurasi sebagai gateway untuk koneksi ke internet
Router>en
Router#config t
Router(config)#hostname ISP-Router
ISP-Router(config)#enable password smkn2sby
ISP-Router(config)#line vty 0 4
ISP-Router(config-line)#password smkn2sby
ISP-Router(config-line)#login
ISP-Router(config-line)#exit
ISP-Router(config)#int f0/0
ISP-Router(config-if)#ip add 13.200.30.1 255.255.255.192
ISP-Router(config-if)#no sh
ISP-Router(config-if)#int s0/0
ISP-Router(config-if)#ip add 11.200.30.2 255.255.255.192
ISP-Router(config-if)#description IP Gateway
ISP-Router(config-if)#no sh
ISP-Router(config-if)#
ISP-Router(config-if)#router rip
ISP-Router(config-router)#network 11.200.30.0
ISP-Router(config-router)#network 13.200.30.0
ISP-Router(config-router)#version 2
ISP-Router(config-router)#no auto-summary
ISP-Router(config-router)#exit
ISP-Router(config)#end
Untuk ISP-Router hanya dikonfigurasi sebagai gateway untuk koneksi ke internet
Router>en
Router#config t
Router(config)#hostname ISP-Router
ISP-Router(config)#enable password smkn2sby
ISP-Router(config)#line vty 0 4
ISP-Router(config-line)#password smkn2sby
ISP-Router(config-line)#login
ISP-Router(config-line)#exit
ISP-Router(config)#int f0/0
ISP-Router(config-if)#ip add 13.200.30.1 255.255.255.192
ISP-Router(config-if)#no sh
ISP-Router(config-if)#int s0/0
ISP-Router(config-if)#ip add 11.200.30.2 255.255.255.192
ISP-Router(config-if)#description IP Gateway
ISP-Router(config-if)#no sh
ISP-Router(config-if)#
ISP-Router(config-if)#router rip
ISP-Router(config-router)#network 11.200.30.0
ISP-Router(config-router)#network 13.200.30.0
ISP-Router(config-router)#version 2
ISP-Router(config-router)#no auto-summary
ISP-Router(config-router)#exit
ISP-Router(config)#end
5. Kemudian Lihat DHCP Di Masing Masing
PC
6. Dan Coba PING Dari PC VLAN 2 e VLAN 3
Dan Seterusnya