Router - DHCP server.
Konfigurasi awal, yang biasa dilakukan pada router. Hanya option saja.
Konfigurasi awal, yang biasa dilakukan pada router. Hanya option saja.
Router>enable
Router#configure
terminal
Enter configuration
commands, one per line. End with CNTL/Z.
Router(config)#hostname
DHCP-SERVER
DHCP-SERVER(config)#
Konfigurasi interface
fast ethernet 0/0 pada router.
DHCP-SERVER(config)#inter
fa0/0
DHCP-SERVER(config-if)#ip
address 192.168.50.1 255.255.255.0
DHCP-SERVER(config-if)#desc
GATEWAY LAN
DHCP-SERVER(config-if)#no
shut
%LINK-5-CHANGED:
Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN:
Line protocol on Interface FastEthernet0/0, changed state to up
DHCP-SERVER(config-if)#exit
DHCP-SERVER(config)#
Konfigurasi DHCP poolnya.
DHCP-SERVER(config)#ip
dhcp pool landhcp
DHCP-SERVER(dhcp-config)#network
192.168.50.0 255.255.255.0
DHCP-SERVER(dhcp-config)#defau
DHCP-SERVER(dhcp-config)#default-router
192.168.50.1
DHCP-SERVER(dhcp-config)#dns
192.168.50.1
DHCP-SERVER(dhcp-config)#exit
Konfigurasi selanjutnya
mengeset IP address berapa saja yang tidak boleh diberikan ke users.
DHCP-SERVER(config)#ip
dhcp ?
excluded-address Prevent
DHCP from assigning certain addresses
pool Configure
DHCP address pools
DHCP-SERVER(config)#ip
dhcp exclude
DHCP-SERVER(config)#ip
dhcp excluded-address ?
A.B.C.D Low
IP address
DHCP-SERVER(config)#ip
dhcp excluded-address 192.168.50.1 ?
A.B.C.D High
IP address
<cr>
DHCP-SERVER(config)#ip
dhcp excluded-address 192.168.50.1
DHCP-SERVER(config)#ip
dhcp excluded-address 192.168.50.30 192.168.50.50
DHCP-SERVER(config)#do
wr
Building
configuration...
[OK]
DHCP-SERVER(config)#
Cek hasil semua
konfigurasi dengan menggunakan perintah sh run ( show running-config )
DHCP-SERVER#sh run
Building
configuration...
Tidak ada komentar:
Posting Komentar