Konfigurasi DHCP Server di Router Cisco
Setting IP Address router DHCP Server
Continue with configuration dialog? [yes/no]: n Press RETURN to get started! Router>enable Router#configure terminal Router(config)#hostname DHCP-server DHCP-server(config)#interface fastEthernet 0/0 DHCP-server(config-if)#ip address 192.168.10.1 255.255.255.0 DHCP-server(config-if)#no shutdown DHCP-server(config-if)#exit
Setting DHCP service
menentukan nama pool, gateway dan dns, masih di router DHCP server, di mode global configuration masukan perintah :
DHCP-server(config)#ip dhcp pool SIMULASI DHCP-server(dhcp-config)#default-router 192.168.10.1 DHCP-server(dhcp-config)#network 192.168.10.0 255.255.255.0 DHCP-server(dhcp-config)#dns-server 192.168.10.1 DHCP-server(dhcp-config)#exit
Setting DHCP exclude addresses
Sekarang kita setting range ip yang tidak akan diberikan/leased kepada DHCP client. Disini saya meng-exclude kan range ip 192.168.10.1 s/d 192.168.10.10
DHCP-server(config)#ip dhcp excluded-address 192.168.10.1 192.168.10.10 DHCP-server(config)#exit DHCP-server#copy running-config startup-config Destination filename [startup-config]? Building configuration... [OK]
Catatan
Menghapus DHCP Pool
R1(Config)#no ip dhcp pool <NAMA POOL>
Menghapus exclude IP (IP Pengecualian)
R1(Config)#no ip dhcp excluded-address <IP ADDRESS NYA>
Mengcopy hasil konfigurasi supaya dijalankan di awal
R1#copy run start
Merestart router
R1#reload