kali ini ane akan mengshare bagaimana cara mengkonfigurasi DHCP server pada cisco router. nah untuk mengkonfigurasi DHCP Server ada beberapa ip yang harus diketahui yaitu :
- Default Router --> IP pada Interface router yang akan dijadikan gateway DHCP Client
- DNS Server --> IP DNS server pada Network (boleh dikosongkan)
- Network --> IP Range pada DHCP server
berikut langkah-langkah konfigurasinya
Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int g0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shut
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up
Router(config-if)#exit
Router(config-if)#
Router(config)#ip dhcp pool 1
Router(dhcp-config)#default-r
Router(dhcp-config)#default-router 192.168.1.1
Router(dhcp-config)#net
Router(dhcp-config)#network 192.168.1.0 255.255.255.0
Router(dhcp-config)#dns
Router(dhcp-config)#dns-server 192.168.2.1
Router(dhcp-config)#exit
Setalah melaukan konfigurasi diatas, kita buka computer client lalu setting IPnya pilih DHCP
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#int g0/0
Router(config-if)#ip address 192.168.1.1 255.255.255.0
Router(config-if)#no shut
%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up
Router(config-if)#exit
Router(config-if)#
Router(config)#ip dhcp pool 1
Router(dhcp-config)#default-r
Router(dhcp-config)#default-router 192.168.1.1
Router(dhcp-config)#net
Router(dhcp-config)#network 192.168.1.0 255.255.255.0
Router(dhcp-config)#dns
Router(dhcp-config)#dns-server 192.168.2.1
Router(dhcp-config)#exit
Setalah melaukan konfigurasi diatas, kita buka computer client lalu setting IPnya pilih DHCP
hasilnya kurang lebih akan seperti contoh diatas
Semoga bermanfaat :V
No comments:
Post a Comment