DHCP Server dan DHCP Relay serta Penerapan dalam Packet Tracer
Pada postingan sebelumnya telah di jelaskan tentang DHCP Server ,kali ini ada tambahan dengan DHCP Relay
DHCP Relay adalah sebuah proxy yang meneruskan paketDHCP antara client dengan server saat client dan server tidak berada pada satu subnet. Penerusan IP oleh DHCP Relayagent terpisah dari forwarding normal sebuah router IP, dimana datagram jaringan dipecah antara network secara sedikit transparan
Penerapan dan konfigurasi pada Packet Tracer:
1. Buat Topologi seperti di bawah ini, dan sesuaikan kabel dengan gambar
2. Setting IP Adress pada server seperti pada gambar di bawah ini
| Server |
IP address 10.10.10.254
Subnet mask 255.255.255.0
Default Geteway 10.10.10.1
DNS server 10.10.10.254
Default Geteway 10.10.10.1
DNS server 10.10.10.254
| PC0 - 0 |
Router>ena
Router>enable
Router#conf terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host
Router(config)#hostname R0
R0(config)#int
R0(config)#interface gi
R0(config)#interface gigabitEthernet 0/0
R0(config-if)#ip add
R0(config-if)#ip address 10.10.10.1 255.255.255.0
R0(config-if)#no sh
R0(config-if)#no shutdown
R0(config-if)#ex
R0(config)#int g
R0(config)#int
R0(config)#interface g
R0(config)#interface gigabitEthernet 0/1
R0(config-if)#ip add
R0(config-if)#ip address 20.20.20.1 255.255.255.252
R0(config-if)#no sh
R0(config-if)#no shutdown
| PC0-1 |
R0(config)#ip route 0.0.0.0 0.0.0.0 20.20.20.2
R0(config)#ip dhcp po
R0(config)#ip dhcp pool LAN
R0(dhcp-config)#net
R0(dhcp-config)#network 30.30.30.0 255.255.255.128
R0(dhcp-config)#def
R0(dhcp-config)#default-router 30.30.30.1
R0(dhcp-config)#dns
R0(dhcp-config)#dns-server 10.10.10.254
R0(dhcp-config)#ex
R0(config)#ip dhcp ex
R0(config)#ip dhcp excluded-address 30.30.30.1
4. Konfigure Router 1 (R1) seperti gambar dibawah
| PC1-0 |
Router>ena
Router#conf ter
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#host
Router(config)#hostname R1
R1(config)#int g
R1(config)#int gigabitEthernet 0/0
R1(config-if)#ip add
R1(config-if)#ip address 20.20.20.2 255.255.255.252
R1(config-if)#no sh
R1(config-if)#no shutdown
R1(config-if)#
R1(config-if)#ex
R1(config)#int g
R1(config)#int gigabitEthernet 0/1
R1(config-if)#ip add
R1(config-if)#ip address 30.30.30.1 255.255.255.128
R1(config-if)#no sh
R1(config-if)#no shutdown
| PC1-1 |
coba lakukan ping terlebih dahulu
R1#ping 10.10.10.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.1, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
R1#ping 10.10.10.254
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.254, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
jika berhasil coba langkah selanjutnya
| PC1-2 |
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#ip route 0.0.0.0 0.0.0.0 20.20.20.1
R1(config)#int g 0/1
R1(config-if)#ip helper-add
R1(config-if)#ip helper-address 20.20.20.1
R1(config-if)#ex
R1(config)#ex
R1#
%SYS-5-CONFIG_I: Configured from console by console
R1#ping 10.10.10.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/1 ms
R1#ping 10.10.10.254
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.10.10.254, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 0/0/0 ms
jika ping sukses maka ke langkah selanjutnya
6. Setting IP Address pada PC 2 dengan klik DHCP
klik IP Configurations>>Klik DHCP, jika berhasil maka secara otomatis IP pada setiap PC akan terisi.
0 komentar: