User Tools

Site Tools


dhcp

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
dhcp [2024/03/14 22:06]
114.119.141.71 old revision restored (2017/05/03 00:20)
dhcp [2024/05/05 02:05] (current)
216.244.66.196 old revision restored (2023/12/30 16:47)
Line 1: Line 1:
 =====DHCP===== =====DHCP=====
 +Use DHCP to address automatic IP assignment within a network.
 +
 ====Configuration==== ====Configuration====
 Below is the configuration for DHCP in Cisco's IOS.  Below is the configuration for DHCP in Cisco's IOS. 
Line 14: Line 16:
 ====DHCP Relay==== ====DHCP Relay====
 Relays are configured with **''ip helper-address x.x.x.x''** to specify which address to forward received DHCP requests. When our RTR forwards a DHCP request out via Relay, it does so with the **''SOURCE ADDRESS''** of the ''**INTERFACE**'' the ''**HELPER-ADDRESS**'' command was configured on. When this happens, the DHCP server can look at the ''**SOURCE ADDR**'' of the packet, and know exactly which scope to lease an address from - the same network that source resides in, ofc. Relays are configured with **''ip helper-address x.x.x.x''** to specify which address to forward received DHCP requests. When our RTR forwards a DHCP request out via Relay, it does so with the **''SOURCE ADDRESS''** of the ''**INTERFACE**'' the ''**HELPER-ADDRESS**'' command was configured on. When this happens, the DHCP server can look at the ''**SOURCE ADDR**'' of the packet, and know exactly which scope to lease an address from - the same network that source resides in, ofc.
- 
-The helper address is configured on the interface connected to the subnet which does not contain the DHCP server. 
-<code> 
-interface FastEthernet0/1 
- ip address 172.16.0.1 255.255.255.0 
- ip helper-address 192.168.1.1 
- duplex auto 
- speed auto 
-end 
- 
-</code> 
  
 ====Show Commands==== ====Show Commands====
Line 73: Line 64:
  
 ===Pool Stats=== ===Pool Stats===
-Note that ''**excluded**'' address ranges are not deducted from the ''**Total addresses**'' field in the output. 
 <code> <code>
 R1#sh ip dhcp pool  R1#sh ip dhcp pool 
dhcp.1710453983.txt.gz ยท Last modified: 2024/03/14 22:06 by 114.119.141.71