This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
dhcp [2024/03/14 21:58] 114.119.149.71 old revision restored (2023/10/14 14:41) |
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===== | ||
- | **DHCP** is //really// important. It's responsible for the automatic | + | Use DHCP to address |
- | + | ||
- | It does all of the things. | + | |
====Configuration==== | ====Configuration==== | ||
Line 9: | Line 7: | ||
< | < | ||
R1#sh run | s dhcp | R1#sh run | s dhcp | ||
- | no ip dhcp use vrf connected | ||
ip dhcp excluded-address 192.168.0.1 192.168.0.49 | ip dhcp excluded-address 192.168.0.1 192.168.0.49 | ||
ip dhcp pool MYNETWORK | ip dhcp pool MYNETWORK | ||
Line 15: | Line 12: | ||
| | ||
R1# | R1# | ||
+ | </ | ||
+ | |||
+ | ====DHCP Relay==== | ||
+ | Relays are configured with **'' | ||
+ | |||
+ | ====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 25022 | ||
+ | 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 : | ||
+ | | ||
+ | | ||
</ | </ |