Jumat, 06 Januari 2017

Cara Setting DHCP Service di Cisco Router



Kebetulan saya masih menggunakan router cisco 1700 dan ios 12.2 :

IOS (tm) C1700 Software (C1700-SV3Y-M), Version 12.3(13), RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2005 by cisco Systems, Inc.
Compiled Thu 10-Feb-05 08:03 by ssearch
Image text-base: 0x8000816C, data-base: 0x8109603C

ROM: System Bootstrap, Version 12.2(4r)XL, RELEASE SOFTWARE (fc1)
ROM: C1700 Software (C1700-SV3Y-M), Version 12.3(13), RELEASE SOFTWARE (fc2)

Saya ingin membuat dhcp services yang digunakan untuk router gateway untuk hotspot wifi. Berikut cara setting nya :

ip dhcp pool dhcp-ip-wifi
   network 192.168.11.0 255.255.255.0
   dns-server 8.8.8.8
   default-router 192.168.11.1
   lease 0 6

Untuk IP yang akan di static, tambahkan ip exclude nya :

ip dhcp excluded-address 192.168.11.1 192.168.11.10

Selesai, untuk melihat siapa saja yang terkoneksi bisa dengan perintah :

#sh ip dhcp binding
Bindings from all pools not associated with VRF:
IP address          Client-ID/    Lease expiration        Type
   Hardware address/
   User name
192.168.11.35       012c.0e3d.c5ae.4a       Jan 06 2017 02:04 PM    Automatic
192.168.11.36       e8bb.a83c.cff5          Jan 06 2017 02:10 PM    Automatic
192.168.11.37       014c.8d79.f1eb.9e       Jan 06 2017 02:04 PM    Automatic
192.168.11.38       4016.7ef0.1d0d          Jan 06 2017 02:04 PM    Automatic
192.168.11.39       01f4.f15a.ca0c.ba       Jan 06 2017 02:13 PM    Automatic
192.168.11.40       01f4.0e22.1ea0.16       Jan 06 2017 02:07 PM    Automatic
192.168.11.41       0118.895b.84fe.8a       Jan 06 2017 02:13 PM    Automatic
192.168.11.42       0148.137e.3319.43       Jan 06 2017 02:08 PM    Automatic

Untuk melihat total jumlah client yang terkoneksi, bisa dengan perintah :

#sh ip dhcp pool

Pool train-android :
 Utilization mark (high/low)    : 100 / 0
 Subnet size (first/next)       : 0 / 0
 Total addresses                : 254
 Leased addresses               : 13
 Pending event                  : none
 1 subnet is currently in the pool :
 Current index        IP address range                    Leased addresses
 192.168.11.48        192.168.11.1     - 192.168.11.254    13

Sementara itu, untuk memutus koneksi salah satu clien, bisa dengan perintah :

#clear ip dhcp binding x.x.x.x (IP address yang akan di putus)

Atau bisa semua nya dengan perintah 

#clear ip dhcp binding *

Jangan lupa disimpan hasil setting konfigurasi nya :

# wr mem


Semoga bermanfaat untuk pembaca semua.

Dony Ramansyah
site : http://donyramansyah.net
blog : dony-ramansyah.blogspot.com
email : dony.ramansyah[at]gmail.com
Registered linux user : ID 40017

Tidak ada komentar: