Posted by : Unknown
Kamis, 19 September 2013
VLAN DHCP Class A 170 Host
TKJ 80, RPL 60, ANI 30
Contoh Topologi!
Berikut adalah langkah konfigurasi :
Setting Password untuk Router
Router>en
Router#config t
Router(config)#enable password mahfut àTerserah mau dikasih nama apa saja
Router(config)#line vty 0 4
Router(config-line)#password mahfut à 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 7.30.1.1 255.255.255.0 ----> Gateway untuk VLAN 1
Router(config-subif)#int f0/0.2
Router(config-subif)#encapsulation dot1q 2
Router(config-subif)#ip add 7.30.2.1 255.255.255.128 ----> Gateway untuk VLAN 2
Router(config-subif)#int f0/0.3
Router(config-subif)#encapsulation dot1q 3
Router(config-subif)#ip add 7.30.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 7.30.4.1 255.255.255.224 ----> Gateway untuk VLAN 4
Router(config-subif)#exit
Router(config)#end
Router#config t
Router(config)#int s1/0
Router(config-if)#ip add 5.10.20.20 255.255.255.252
Router(config-if)#clock rate 64000
Router(config-if)#bandwidth 2048
Router(config-if)#description IP Public ke Internet
Router(config-if)#no sh
Langkah mengaktifkan Konfigurasi Dynamic Routing RIP version 2Router(config-if)#router rip
Router(config-router)#network 5.10.20.0
Router(config-router)#network 7.30.1.0
Router(config-router)#network 7.30.2.0
Router(config-router)#network 7.30.3.0
Router(config-router)#network 7.30.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 TKJ
Router(dhcp-config)#network 7.30.2.0 255.255.255.128
Router(dhcp-config)#default-router 7.30.2.1
Router(dhcp-config)#dns-server 30.8.96.100
Router(config)#exit
Router#config t
Router(config)#int f0/0.3
Router(config-subif)#ip dhcp pool RPL
Router(dhcp-config)#network 7.30.3.0 255.255.255.192
Router(dhcp-config)#default-router 7.30.3.1
Router(dhcp-config)#dns-server 30.8.96.100
Router(config)#exit
Router#config t
Router(config)#int f0/0.4
Router(config-subif)#ip dhcp pool ANI
Router(dhcp-config)#network 7.30.4.0 255.255.255.224
Router(dhcp-config)#default-router 7.30.4.1
Router(dhcp-config)#dns-server 30.8.96.100
Router(config)#exit
Router#
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 TKJ
Switch-VLAN(vlan)#vlan 3 name RPL
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 2
Switch-VLAN(config-if)#int f0/4
Switch-VLAN(config-if)#switchport mode access
Switch-VLAN(config-if)#switchport access vlan 2
Switch-VLAN(config-if)#int f0/5
Switch-VLAN(config-if)#switchport mode access
Switch-VLAN(config-if)#switchport access vlan 2
Switch-VLAN(config-if)#int f0/6
Switch-VLAN(config-if)#switchport mode access
Switch-VLAN(config-if)#switchport access vlan 3
Switch-VLAN(config-if)#int f0/7
Switch-VLAN(config-if)#switchport mode access
Switch-VLAN(config-if)#switchport access vlan 3
Switch-VLAN(config-if)#int f0/8
Switch-VLAN(config-if)#switchport mode access
Switch-VLAN(config-if)#switchport access vlan 3
Switch-VLAN(config-if)#int f0/9
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 7.30.1.2 --->remote address pada switch
Switch-VLAN(config-if)#no sh
Switch-VLAN(config-if)#exit
Switch-VLAN(config)#ip default-gateway 7.30.1.1 ----> fast eth router f0/0.1
Switch-VLAN(config)#end
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 mahfut
ISP-Router(config)#line vty 0 4
ISP-Router(config-line)#password mahfut
ISP-Router(config-line)#login
ISP-Router(config-line)#exit
ISP-Router(config)#int f0/0
ISP-Router(config-if)#ip add 8.30.10.1 255.0.0.0
ISP-Router(config-if)#no sh
ISP-Router(config-if)#int s1/0
ISP-Router(config-if)#ip add 5.10.20.29 255.255.255.252
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 5.10.20.0
ISP-Router(config-router)#network 8.30.10.0
ISP-Router(config-router)#version 2
ISP-Router(config-router)#no auto-summary
ISP-Router(config-router)#exit
ISP-Router(config)#end
Selamat Mencoba :D
Download tutorilnya dan software cisco paket tracer dibawah ini
Download Cisco Paket Tracer 6.0.1 klik disini!
Download Pdf klik disini!