networking:cisco:dhcp-server

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
networking:cisco:dhcp-server [2026/02/02 11:25] – created ilyasanetworking:cisco:dhcp-server [2026/02/02 12:03] (current) ilyasa
Line 1: Line 1:
 +{{indexmenu_n>020}}
 ====== Cisco : DHCP Server ====== ====== Cisco : DHCP Server ======
 Dynamic Host Configuration Protocol (DHCP) adalah protokol manajemen jaringan yang digunakan pada jaringan untuk secara otomatis memberikan alamat IP dan parameter konfigurasi jaringan lainnya ke perangkat pada jaringan, sehingga memungkinkan mereka untuk berkomunikasi secara efisien. Dynamic Host Configuration Protocol (DHCP) adalah protokol manajemen jaringan yang digunakan pada jaringan untuk secara otomatis memberikan alamat IP dan parameter konfigurasi jaringan lainnya ke perangkat pada jaringan, sehingga memungkinkan mereka untuk berkomunikasi secara efisien.
Line 29: Line 30:
  
 ==== Topologi ==== ==== Topologi ====
 +{{ :networking:cisco:cisco_dhcp.png?nolink |}}
  
  
Line 37: Line 38:
  
 <code>  <code> 
-// Masuk ke Global Configuration Mode  +// Masuk Global Configration mode 
-C2691> enable +C2691> enable
 C2691# configure terminal C2691# configure terminal
- +C2691(config)# 
-// Setup IP interface gateway +//setup ip interface gateaway 
-C2691(config)# interface f0/0 +C2691(config)#interface f0/0 
-C2691(config-if)# ip address 192.168.0.1 255.255.255.0 +C2691(config-if)#ip address 192.168.0.1 255.255.255.0
-C2691(config-if)# no shutdown+
  
 // Setup DHCP Server // Setup DHCP Server
-C2691(config)# ip dhcp pool LAN +C2691(config-if)#ip dhcp pool LAN 
-C2691(dhcp-config)# network 192.168.0.0 255.255.255.0 +C2691(dhcp-config)#network 192.168.0.0 255.255.255.0 
-C2691(dhcp-config)# default-router 192.168.0.1 +C2691(dhcp-config)#default-router 192.168.0.1 
-C2691(dhcp-config)# exit +C2691(dhcp-config)#exit 
- +C2691(config)#ip dhcp excluded-address 192.168.0.1 192.168.0.100
-// Exclude IP address +
-C2691(config)# ip dhcp excluded-address 192.168.0.1 192.168.0.100+
 </code> </code>
  
 === PCs === === PCs ===
  
-<code> // PC1 PC1> ip dhcp DORA IP 192.168.0.101/24 GW 192.168.0.1 +<code>  
 +// PC1 
 +PC1> ip dhcp 
 +DDORA IP 192.168.0.101/24 GW 192.168.0.1
 // PC2 // PC2
 +
 PC2> ip dhcp PC2> ip dhcp
 DORA IP 192.168.0.102/24 GW 192.168.0.1 DORA IP 192.168.0.102/24 GW 192.168.0.1
- 
 // PC3 // PC3
 PC3> ip dhcp PC3> ip dhcp
Line 71: Line 71:
 ==== Cheatsheet ==== ==== Cheatsheet ====
  
-<code> ip dhcp excluded-address 192.168.0.1 ip dhcp pool LAN network 192.168.0.0 255.255.255.0 default-router 192.168.0.1 exit </code>+<code>  
 +ip dhcp excluded-address 192.168.0.1 
 +ip dhcp pool LAN 
 +  network 192.168.0.0 255.255.255.0 
 +  default-router 192.168.0.1 
 +  exit 
 +</code>
  • networking/cisco/dhcp-server.1770006344.txt.gz
  • Last modified: 2026/02/02 11:25
  • by ilyasa