This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
dhcp [2024/03/14 21:53] 114.119.155.78 old revision restored (2023/10/20 08:55) |
dhcp [2024/05/21 23:47] 54.235.17.69 old revision restored (2024/03/14 21:49) |
||
---|---|---|---|
Line 15: | Line 15: | ||
====DHCP Relay==== | ====DHCP Relay==== | ||
- | Relays are configured with **'' | + | 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. |
- | + | ||
- | ====Show Commands==== | + | |
- | + | ||
- | ===View Leases=== | + | |
- | < | + | |
- | R1#sh ip dhcp binding | + | |
- | Bindings from all pools not associated with VRF: | + | |
- | IP address | + | |
- | Hardware address/ | + | |
- | User name | + | |
- | 172.16.0.2 | + | |
- | 3230.342e.3430.3930. | + | |
- | 2e30.3030.312d.4661. | + | |
- | 302f.31 | + | |
- | 192.168.1.50 | + | |
- | 3230.332e.3366.6461. | + | |
- | 2e30.3030.302d.4661. | + | |
- | 302f.30 | + | |
- | </ | + | |
- | + | ||
- | ===Server Statistics=== | + | |
- | < | + | |
- | R1#sh ip dhcp server statistics | + | |
- | Memory usage | + | |
- | Address pools 2 | + | |
- | Database agents | + | |
- | Automatic bindings | + | |
- | Manual bindings | + | |
- | Expired bindings | + | |
- | Malformed messages | + | |
- | Secure arp entries | + | |
- | + | ||
- | Message | + | |
- | BOOTREQUEST | + | |
- | DHCPDISCOVER | + | |
- | DHCPREQUEST | + | |
- | DHCPDECLINE | + | |
- | DHCPRELEASE | + | |
- | DHCPINFORM | + | |
- | + | ||
- | Message | + | |
- | BOOTREPLY | + | |
- | DHCPOFFER | + | |
- | DHCPACK | + | |
- | DHCPNAK | + | |
- | </ | + | |
- | + | ||
- | ===Pool Stats=== | + | |
- | < | + | |
- | R1#sh ip dhcp pool | + | |
- | + | ||
- | Pool LAN : | + | |
- | | + | |
- | | + | |
- | Total addresses | + | |
- | | + | |
- | | + | |
- | 1 subnet is currently in the pool : | + | |
- | | + | |
- | | + | |
- | </ | + |