Skip to content

Belajar Mengkonfigurasi Cisco IOS DHCP Server

Belajar Mengkonfigurasi Cisco IOS DHCP Server
Langkah-langkahnya adalah sebagai berikut:
-----------------------------------------------
1.Tentukan dan konfigurasi pool dari DHCP Server
-DHPC pool name iwing-pool
-Network 192.168.10.0/24
-default-router 192.168.10.1
-Domain Name iwing.org
-lease time is 1 day, 5 hours, and 36 minutes
-----------------------------------------------
cnc1(config)#ip dhcp pool iwing-pool
cnc1(dhcp-config)#network 192.168.10.0 255.255.255.0
cnc1(dhcp-config)#default-router 192.168.10.1
cnc1(dhcp-config)#domain-name iwing.org
cnc1(dhcp-config)#lease 1 5 36
cnc1(dhcp-config)#
-----------------------------------------------
2. Jika kita tidak ingin DHCP Offers memberikan
Range IP address tertentu, kita bisa menggunakan 
perintah ip dhcp exclude [low ip add][high ip address]
-----------------------------------------------
cnc1(config)#ip dhcp excluded-address 192.168.10.1 192.168.10.100
-----------------------------------------------
3.How To check 1
-----------------------------------------------
cnc1#show ip dhcp ?
 binding   DHCP address bindings
 conflict  DHCP address conflicts
 database  DHCP database agents
 import    Show Imported Parameters
 pool      DHCP pools information
 relay     Miscellaneous DHCP relay information
 server    Miscellaneous DHCP server information

cnc1#show ip dhcp binding
Bindings from all pools not associated with VRF:
IP address          Client-ID/              Lease expiration        Type
 Hardware address/
 User name
192.168.10.101      0102.004c.4f4f.50       Apr 17 2010 08:37 PM    Automatic
cnc1#show ip dhcp pool

Pool iwing-pool :
 Utilization mark (high/low)    : 100 / 0
 Subnet size (first/next)       : 0 / 0
 Total addresses                : 254
 Leased addresses               : 1
 Pending event                  : none
 1 subnet is currently in the pool :
 Current index        IP address range                    Leased addresses
 192.168.10.102       192.168.10.1     - 192.168.10.254    1
cnc1#
-----------------------------------------------
3.How To check 2 (gunakan perintah debug)
-----------------------------------------------
cnc1#debug ip dhcp server events
DHCP server event debugging is on.
cnc1#debug ip dhcp server packet
DHCP server packet debugging is on.
-----------------------------------------------
4. Di client (wind** xp) ketikan ipconfig /renew,
IP address yang disewa, range dari 101-254 
-----------------------------------------------
C:\>ipconfig /renew

Windows IP Configuration
Ethernet adapter Local Area Connection 5:
        Connection-specific DNS Suffix  . : iwing.org
        IP Address. . . . . . . . . . . . : 192.168.10.101
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        IP Address. . . . . . . . . . . . : fec0::1:2%1
        IP Address. . . . . . . . . . . . : fe80::4cff:fe4f:4f50%7
        Default Gateway . . . . . . . . . : 192.168.10.1
C:\>
C:\>ping 192.168.10.1
Pinging 192.168.10.1 with 32 bytes of data:
Reply from 192.168.10.1: bytes=32 time=101ms TTL=255
Reply from 192.168.10.1: bytes=32 time=46ms TTL=255
Reply from 192.168.10.1: bytes=32 time=60ms TTL=255
Reply from 192.168.10.1: bytes=32 time=65ms TTL=255
Ping statistics for 192.168.10.1:
 Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
 Minimum = 46ms, Maximum = 101ms, Average = 68ms

C:\>
-----------------------------------------------
5.Hasil debug di DHCP Server
-----------------------------------------------
cnc1#
*Apr 16 14:53:17.655: DHCPD: checking for expired leases.
*Apr 16 14:54:04.131: DHCPD: Sending notification of DISCOVER:
*Apr 16 14:54:04.131:   DHCPD: htype 1 chaddr 0200.4c4f.4f50
*Apr 16 14:54:04.131:   DHCPD: remote id 020a0000c0a80a0110000000
*Apr 16 14:54:04.131:   DHCPD: circuit id 00000000
*Apr 16 14:54:04.131: DHCPD: DHCPDISCOVER received from client 0102.004c.4f4f.50 on interface FastEthernet1/0.
*Apr 16 14:54:04.135: DHCPD: Seeing if there is an internally specified pool class:
*Apr 16 14:54:04.135:   DHCPD: htype 1 chaddr 0200.4c4f.4f50
*Apr 16 14:54:04.135:   DHCPD: remote id 020a0000c0a80a0110000000
*Apr 16 14:54:04.135:   DHCPD: circuit id 00000000
*Apr 16 14:54:04.135: DHCPD: requested address 192.168.10.50 has already been assigned.
*Apr 16 14:54:04.135: DHCPD: Allocate an address without class information (192.168.10.0)
*Apr 16 14:54:06.139: DHCPD: Adding binding to radix tree (192.168.10.101)
*Apr 16 14:54:06.139: DHCPD: Adding binding to hash tree
*Apr 16 14:54:06.139: DHCPD: assigned IP address 192.168.10.101 to client 0102.004c.4f4f.50.
*Apr 16 14:54:06.139: DHCPD: Sending DHCPOFFER to client 0102.004c.4f4f.50 (192.168.10.101).
*Apr 16 14:54:06.143: DHCPD: broadcasting BOOTREPLY to client 0200.4c4f.4f50.
*Apr 16 14:54:07.191: DHCPD: Sending notification of DISCOVER:
*Apr 16 14:54:07.191:   DHCPD: htype 1 chaddr 0200.4c4f.4f50
*Apr 16 14:54:07.191:   DHCPD: remote id 020a0000c0a80a0110000000
*Apr 16 14:54:07.195:   DHCPD: circuit id 00000000
-*Apr 16 14:54:07.195: DHCPD: DHCPDISCOVER received from client 0102.004c.4f4f.50 on interface FastEthernet1/0.
*Apr 16 14:54:07.195: DHCPD: Seeing if there is an internally specified pool class:
*Apr 16 14:54:07.195:   DHCPD: htype 1 chaddr 0200.4c4f.4f50
*Apr 16 14:54:07.195:   DHCPD: remote id 020a0000c0a80a0110000000
*Apr 16 14:54:07.199:   DHCPD: circuit id 00000000
-*Apr 16 14:54:07.199: DHCPD: Sending DHCPOFFER to client 0102.004c.4f4f.50 (192.168.10.101).
*Apr 16 14:54:07.199: DHCPD: broadcasting BOOTREPLY to client 0200.4c4f.4f50.
*Apr 16 14:54:15.279: DHCPD: Sending notification of DISCOVER:
*Apr 16 14:54:15.283:   DHCPD: htype 1 chaddr 0200.4c4f.4f50
*Apr 16 14:54:15.283:   DHCPD: remote id 020a0000c0a80a0110000000
*Apr 16 14:54:15.283:   DHCPD: circuit id 00000000
*Apr 16 14:54:15.283: DHCPD: DHCPDISCOVER received from client 0102.004c.4f4f.50 on interface FastEthernet1/0.
*Apr 16 14:54:15.283: DHCPD: Seeing if there is an internally specified pool class:
*Apr 16 14:54:15.287:   DHCPD: htype 1 chaddr 0200.4c4f.4f50
*Apr 16 14:54:15.287:   DHCPD: remote id 020a0000c0a80a0110000000
*Apr 16 14:54:15.287:   DHCPD: circuit id 00000000
*Apr 16 14:54:15.287: DHCPD: Sending DHCPOFFER to client 0102.004c.4f4f.50 (192.168.10.101).
*Apr 16 14:54:15.287: DHCPD: broadcasting BOOTREPLY to client 0200.4c4f.4f50.
-*Apr 16 14:54:15.295: DHCPD: DHCPREQUEST received from client 0102.004c.4f4f.50.
*Apr 16 14:54:15.299: DHCPD: Sending notification of ASSIGNMENT:
*Apr 16 14:54:15.299:  DHCPD: address 192.168.10.101 mask 255.255.255.0
*Apr 16 14:54:15.299:   DHCPD: htype 1 chaddr 0200.4c4f.4f50
*Apr 16 14:54:15.299:   DHCPD: lease time remaining (secs) = 106560
*Apr 16 14:54:15.303: DHCPD: Appending default domain from pool
*Apr 16 14:54:15.303: DHCPD: Using hostname 'toiletumum-1.iwing.org.' for dynamic update (from FQDN option)
-*Apr 16 14:54:15.303: DHCPD: Sending DHCPACK to client 0102.004c.4f4f.50 (192.168.10.101).
*Apr 16 14:54:15.303: DHCPD: Including FQDN option name 'toiletumum-1.iwing.org.' rcode1=0, rcode2=0 flags=0x8
*Apr 16 14:54:15.303: DHCPD: broadcasting BOOTREPLY to client 0200.4c4f.4f50.
*Apr 16 14:55:17.655: DHCPD: checking for expired leases.

-----------------------------------------------
6.Jika ingin release, di client ketikan
ipconfig /release
-----------------------------------------------
C:\>ipconfig /release
Windows IP Configuration
Ethernet adapter Local Area Connection 5:
        Connection-specific DNS Suffix  . :
        IP Address. . . . . . . . . . . . : 0.0.0.0
        Subnet Mask . . . . . . . . . . . : 0.0.0.0
        IP Address. . . . . . . . . . . . : fec0::1:2%1
        IP Address. . . . . . . . . . . . : fe80::4cff:fe4f:4f50%7
        Default Gateway . . . . . . . . . :
C:\>
-----------------------------------------------
7. Hasil Debug di DHCP Server
-----------------------------------------------
cnc1#
*Apr 16 15:06:37.423: DHCPD: DHCPRELEASE message received from client 0102.004c.4f4f.50 (192.168.10.101).
*Apr 16 15:06:37.423: DHCPD: Sending notification of TERMINATION:
*Apr 16 15:06:37.423:  DHCPD: address 192.168.10.101 mask 255.255.255.0
*Apr 16 15:06:37.423:  DHCPD: reason flags: RELEASE
*Apr 16 15:06:37.423:   DHCPD: htype 1 chaddr 0200.4c4f.4f50
*Apr 16 15:06:37.427:   DHCPD: lease time remaining (secs) = 106232
*Apr 16 15:06:37.427: DHCPD: returned 192.168.10.101 to address pool iwing-pool.
*Apr 16 15:07:17.655: DHCPD: checking for expired leases.

-----------------------------------------------
Screenshoot 1

-----------------------------------------------
-----------------------------------------------
Screenshoot 2

-----------------------------------------------
-----------------------------------------------
Screenshoot 3

"--------Sekian dulu, semoga bermanfaat--------"
ref:
url:http//www.cisco.com, (april 2010)
No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 27 other followers

%d bloggers like this: