Chapter 5 Configuring a LAN with DHCP and VLANs
Configure DHCP
Configuration Example
The following configuration example shows a portion of the configuration file for the DCHP configuration described in this chapter.
ip dhcp excluded-address 192.168.9.0
!
ip dhcp pool dpool1 import all
network 10.10.0.0 255.255.255.0
!
ip domain name smallbiz.com ip
Verify Your DHCP Configuration
Use the following commands to view your DHCP configuration.
•show ip dhcp
•show ip dhcp
•show ip dhcp server
Router# show ip dhcp import
|
|
| Address Pool Name: dpool1 |
|
|
| |
|
|
| Router# show ip dhcp pool |
|
|
| |
|
|
| Pool dpool1 : |
|
|
|
|
|
|
| Utilization mark (high/low) | : 100 / 0 |
|
| |
|
|
| Subnet size (first/next) | : 0 / 0 |
|
| |
|
|
| Total addresses |
| : 254 |
|
|
|
|
| Leased addresses |
| : 0 |
|
|
|
|
| Pending event |
| : none |
|
|
|
|
| 1 subnet is currently in the pool : |
|
| ||
|
|
| Current index | IP address range | Leased addresses | ||
10.10.0.1 | 10.10.0.1 | - 10.10.0.254 | 0 |
| |||
|
|
| Router# show ip dhcp | server statistics |
|
| |
|
|
| Memory usage | 15419 |
|
|
|
|
|
| Address pools | 1 |
|
|
|
|
|
| Database agents | 0 |
|
|
|
|
|
| Automatic bindings | 0 |
|
|
|
|
|
| Manual bindings | 0 |
|
|
|
|
|
| Expired bindings | 0 |
|
|
|
|
|
| Malformed messages | 0 |
|
|
|
|
|
| Secure arp entries | 0 |
|
|
|
|
|
| Message | Received |
|
|
|
|
|
| BOOTREQUEST | 0 |
|
|
|
|
|
| DHCPDISCOVER | 0 |
|
|
|
|
|
| DHCPREQUEST | 0 |
|
|
|
|
|
| DHCPDECLINE | 0 |
|
|
|
|
|
| DHCPRELEASE | 0 |
|
|
|
|
|
| DHCPINFORM | 0 |
|
|
|
|
|
| Cisco 1800 Series Integrated Services Routers (Fixed) Software Configuration Guide |
|
| ||
|
|
|
|
| |||
|
|
|
|
|
| ||
|
|
|
|
|
|