7.4.2 Lab - Implement DHCPv4

 7.4.2 Lab - Implement DHCPv4

    VIDEO    

Tabel pengalamatan yang belum lengkap
Tabel yang sudah saya lengkapi


    Latar Belakang / Skenario

    Dynamic Host Configuration Protocol (DHCP) adalah protokol jaringan yang memungkinkan administrator jaringan mengelola dan mengotomatiskan penetapan alamat IP. Tanpa DHCP untuk IPv4, administrator harus menetapkan dan mengkonfigurasi alamat IP, server DNS pilihan, dan gateway default secara manual. Seiring bertambahnya ukuran jaringan, hal ini menjadi masalah administratif ketika perangkat dipindahkan dari satu jaringan internal ke jaringan internal lainnya.

    Langkah-Langkah
Bagian 1: Membangun Jaringan dan Mengonfigurasi Pengaturan Perangkat Dasar
Langkah 1 : membuat topologi
  • Buat topologi sesuai dengan yang sudah di tentukan
Langkah 2 : Konfigurasi untuk router
  • Lakukan console ke R1 dan R2
  • Konfigurasi Router
router(config)# hostname R1
R1(config)# no ip domain-lookup
R1(config)# enable secret class
R1(config)# line console 0
R1(config-line)# password cisco
R1(config-line)# login
R1(config)# line vty 0 4
R1(config-line)# password cisco
R1(config-line)# login
R1(config)# service password-encryption
R1(config)# banner motd $ Authorized Users Only! $
R1# copy running-config startup-config

router(config)# hostname R1
R2(config)# no ip domain-lookup
R2(config)# enable secret class
R2(config)# line console 0
R2(config-line)# password cisco
R2(config-line)# login
R2(config)# line vty 0 4
R2(config-line)# password cisco
R2(config-line)# login
R2(config)# service password-encryption
R2(config)# banner motd $ Authorized Users Only! $
R2# copy running-config startup-config

Langkah 4: Konfigurasikan Perutean Antar-VLAN di R1

R1(config)# interface g0/0/1
R1(config-if)# no shutdown
R1(config-if)# exit

R1(config)# interface g0/0/1.100
R1(config-subif)# description Client Network
R1(config-subif)# encapsulation dot1q 100
R1(config-subif)# ip address 192.168.1.1 255.255.255.192
R1(config-subif)# interface g0/0/1.200
R1(config-subif)# encapsulation dot1q 200
R1(config-subif)# description Management Network
R1(config-subif)# ip address 192.168.1.65 255.255.255.224
R1(config-subif)# interface g0/0/1.1000
R1(config-subif)# encapsulation dot1q 1000 native
R1(config-subif)# description Native VLAN

Langkah 5: Konfigurasikan G0/0/1 di R2, lalu G0/0/0 dan perutean statis untuk kedua router

R2(config)# interface g0/0/1
R2(config-if)# ip address 192.168.1.97 255.255.255.240
R2(config-if)# no shutdown
R2(config-if)# exit
R1(config)# interface g0/0/0
R1(config-if)# ip address 10.0.0.1 255.255.255.252
R1(config-if)# no shutdown

R2(config)# interface g0/0/0
R2(config-if)# ip address 10.0.0.2 255.255.255.252
R2(config-if)# no shutdown

R1(config)# ip route 0.0.0.0 0.0.0.0 10.0.0.2
R2(config)# ip route 0.0.0.0 0.0.0.0 10.0.0.1

R1# copy running-config startup-config

Langkah 6: Konfigurasikan pengaturan dasar untuk setiap sakelar.

switch(config)# hostname S1

S1(config)# no ip domain-lookup

S1(config)# enable secret class
S1(config)# line console 0
S1(config-line)# password cisco
S1(config-line)# login

S1(config)# line vty 0 4
S1(config-line)# password cisco
S1(config-line)# login

S1(config)# service password-encryption

S1(config)# banner motd $ Authorized Users Only! $

S1(config)# exit
S1# copy running-config startup-config

switch(config)# hostname S2

S2(config)# no ip domain-lookup

S2(config)# enable secret class
S2(config)# line console 0
S2(config-line)# password cisco
S2(config-line)# login

S2(config)# line vty 0 4
S2(config-line)# password cisco
S2(config-line)# login

S2(config)# service password-encryption

S2(config)# banner motd $ Authorized Users Only! $

S2(config)# exit
S2# copy running-config startup-config

Langkah 7: Buat VLAN di S1.

S1(config)# vlan 100
S1(config-vlan)# name Clients
S1(config-vlan)# vlan 200
S1(config-vlan)# name Management
S1(config-vlan)# vlan 999
S1(config-vlan)# name Parking_Lot
S1(config-vlan)# vlan 1000
S1(config-vlan)# name Native
S1(config-vlan)# exit

S2(config)# interface vlan 1
S2(config-if)# ip address 192.168.1.98 255.255.255.240
S2(config-if)# no shutdown
S2(config-if)# exit
S2(config)# ip default-gateway 192.168.1.97

S1(config)# interface range f0/1 - 4, f0/7 - 24, g0/1 - 2
S1(config-if-range)# switchport mode access
S1(config-if-range)# switchport access vlan 999
S1(config-if-range)# shutdown
S1(config-if-range)# exit

S2(config)# interface range f0/1 - 4, f0/6 - 17, f0/19 - 24, g0/1 - 2
S2(config-if-range)# switchport mode access
S2(config-if-range)# shutdown
S2(config-if-range)# exit

Langkah 8: Tetapkan VLAN ke antarmuka switch yang benar.

S1(config)# interface f0/6
S1(config-if)# switchport mode access
S1(config-if)# switchport access vlan 100

Langkah 9: Konfigurasikan antarmuka S1 F0/5 secara manual sebagai trunk 802.1Q.

S1(config)# interface f0/5
S1(config-if)# switchport mode trunk
S1(config-if-range)# switchport trunk native vlan 1000
S1(config-if-range)# switchport trunk allowed vlan 100,200,1000
S1(config)# exit
S1# copy running-config startup-config

    Bagian 2: Konfigurasikan dan verifikasi dua Server DHCPv4 di R1
Langkah 1: Konfigurasikan R1 dengan kumpulan DHCPv4 untuk dua subnet yang didukung. Hanya Kumpulan DHCP untuk subnet A 

R1(config)# ip dhcp excluded-address 192.168.1.1 192.168.1.5
R1(config)# ip dhcp pool R1_Client_LAN
R1(dhcp-config)# network 192.168.1.0 255.255.255.192
R1(dhcp-config)# domain-name ccna-lab.com
R1(dhcp-config)# default-router 192.168.1.1
R1(config)# ip dhcp excluded-address 192.168.1.97 192.168.1.101
R1(config)# ip dhcp pool R2_Client_LAN
R1(dhcp-config)# network 192.168.1.96 255.255.255.240
R1(dhcp-config)# default-router 192.168.1.97
R1(dhcp-config)# domain-name ccna-lab.com
R1(dhcp-config)# lease 2 12 30
R1# copy running-config startup-config

Langkah 3: Verifikasi konfigurasi Server DHCPv4
  • Ubah mode IP configuration di PC menjadi DHCP, tunggu sampai mendapatkan IP

    Bagian 3: Konfigurasikan dan verifikasi Relai DHCP di R2
Langkah 1: Konfigurasikan R2 sebagai agen relai DHCP untuk LAN pada G0/0/1

R2(config)# interface g0/0/1
R2(config-if)# ip helper-address 10.0.0.1


R2(config-if)# end
R2# write

Komentar

Postingan populer dari blog ini

Installasi/Konfigurasi Server DNS Red Hat Enterprise Linux (RHEL)

Installasi Web Server di Red Hat Enterprise Linux (RHEL)

install dan konfigurasi LMS (moodle) di Red Hat Enterprise Linux (RHEL)