Home » , , , , , » Konfigurasi VLAN DHCP Cisco 2600 series

Konfigurasi VLAN DHCP Cisco 2600 series

Posted by CB Blogger

VLAN DHCP Cisco 2600 series

KETERANGAN
Routing protocol dynamic : RIP version 2
Internet IP address : 12.100.40.10
Gateway : 12.100.40.9
DNS : 8.8.8.8
VLAN ID 1 Network : 10.100.30.0/26 Default VLAN 1
VLAN ID 2 Network : 10.100.40.0/26 VLAN Name RPL
VLAN ID 3 Network : 10.100.50.0/26 VLAN Name TKJ
VLAN ID 4 Network : 10.100.60.0/26 VLAN Name Animasii
Masing – masing VLAN dikonfigurasi DHCP
Semua password adalah “tkj1
===========================================================================


Berikut adalah langkah-langkah konfigurasi :

Setting Password untuk Router
Router>enable
Router#configure terminal
Router(config)#enable password tkj1            
à Password boleh apa saja
Router(config)#line vty 0 4
Router(config-line)#password tkj1     
à 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)#interface fa0/0.1    ----> 
Masuk ke mode sub-interface ditandai dgn config-subif
Router(config-subif)#encapsulation dot1q 1
Router(config-subif)#ip address 10.100.30.1 255.255.255.192         ----> Gateway untuk VLAN 1
Router(config-subif)#interface fa0/0.2
Router(config-subif)#encapsulation dot1q 2
Router(config-subif)#ip address 10.100.40.1 255.255.255.192         ----> Gateway untuk VLAN 2
Router(config-subif)#interface fa0/0.3
Router(config-subif)#encapsulation dot1q 3
Router(config-subif)#ip address 10.100.50.1 255.255.255.128         ----> Gateway untuk VLAN 3
Router(config-subif)#interface fa0/0.4
Router(config-subif)#encapsulation dot1q 4
Router(config-subif)#ip address 10.100.60.1 255.255.255.224         ----> Gateway untuk VLAN 4
Router(config-subif)#exit
Router(config)#end
Router#configure terminalRouter(config)#interface s0/0Router(config-if)#ip address 12.100.40.10 255.255.255.252Router(config-if)#clock rate 64000Router(config-if)#bandwidth 2048Router(config-if)#description IP Public ke InternetRouter(config-if)#no shutdownRouter(config-if)#

Langkah mengaktifkan Konfigurasi Dynamic Routing RIP version 2
Router(config-if)#router rip
Router(config-router)#network 12.100.40.0
Router(config-router)#network 10.100.30.0
Router(config-router)#network 10.100.40.0
Router(config-router)#network 10.100.50.0
Router(config-router)#network 10.100.60.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#configure terminal
Router(config)#interface fa0/0.2
Router(config-subif)#ip dhcp pool RPL
Router(dhcp-config)#network 10.100.40.0 255.255.255.192
Router(dhcp-config)#default-router 10.100.40.1
Router(dhcp-config)#dns-server 8.8.8.8
Router(dhcp-config)#ip dhcp excluded-address 10.100.40.1 10.100.40.2     ---> Untuk 60 Host
Router(config)#exit
Router#configure terminal
Router(config)#interface fa0/0.3
Router(config-subif)#ip dhcp pool TKJ
Router(dhcp-config)#network 10.100.50.0 255.255.255.128
Router(dhcp-config)#default-router 10.100.50.1
Router(dhcp-config)#dns-server 8.8.8.8
Router(dhcp-config)#ip dhcp excluded-address 10.100.50.1 10.100.50.46   ---> Untuk 80 Host
Router(config)#exit
Router#configure terminal
Router(config)#interface fa0/0.4
Router(config-subif)#ip dhcp pool Animasi
Router(dhcp-config)#network 10.100.60.0 255.255.255.224
Router(dhcp-config)#default-router 10.100.60.1
Router(dhcp-config)#dns-server 8.8.8.8
Router(config)#exit





Konfigurasi Di Switch-VLAN
Membuat VLAN Database
Switch>enable
Switch#configure terminal
Switch#vlan database
Switch(vlan)#vlan 2 name RPL
Switch(vlan)#vlan 3 name TKJ
Switch(vlan)#vlan 4 name Animasi
Switch(vlan)#exit

Mengaktifkan koneksi VLAN ke router /naik ke layer 3 inter-VLAN routing
Switch-VLAN#configure terminal
Switch-VLAN(config)#interface fa0/1
Switch-VLAN(config-if)#switchport mode trunk
Switch-VLAN(config-if)#end

Pemberian membership pada VLAN atau IP subnet address based

Switch #config t
Switch(config)#interface fa0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 2
Switch(config-if)#interface fa0/3
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 3
Switch(config-if)#interface fa0/4
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 4
Switch-VLAN(config-if)#end

Setting Default-gateway pada VLAN 1

Switch#configure terminal
Switch(config)#int vlan 1
Switch(config-if)#ip add 10.100.30.2 255.255.255.192          --->remote address pada switch
Switch(config-if)#no shutdown
Switch(config-if)#exit
Switch(config)#ip default-gateway 10.100.30.1                     ----> fast eth router f0/0.1
Switch-VLAN(config)#end

Untuk Router ISP hanya dikonfigurasi sebagai gateway untuk koneksi ke internet
Router>en
Router#configure terminal
Router(config)#hostname ISP-Router
ISP-Router(config)#enable password tkj1
ISP-Router(config)#line vty 0 4
ISP-Router(config-line)#password tkj1
ISP-Router(config-line)#login
ISP-Router(config-line)#exit
ISP-Router(config)#int f0/0
ISP-Router(config-if)#ip add 125.12.12.1 255.255.255.0
ISP-Router(config-if)#no shutdown
ISP-Router(config-if)#int s0/0
ISP-Router(config-if)#ip add 12.100.40.9 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 125.12.12.0
ISP-Router(config-router)#network 12.100.40.0
ISP-Router(config-router)#version 2
ISP-Router(config-router)#no auto-summary
ISP-Router(config-router)#exit
ISP-Router(config)#end


1 komentar: