Configuration Examples
To display DHCP server information, use the following commands in EXEC mode, as needed:
Command | Purpose |
Router> show ip dhcp binding [address] | Displays a list of all bindings created on a specific DHCP |
| server. |
|
|
Router> show ip dhcp conflict [address] | Displays a list of all address conflicts recorded by a specific |
| DHCP server. |
|
|
Router# show ip dhcp database [url] | Displays recent activity on the DHCP database. |
| Note Use this command in privileged EXEC mode. |
|
|
Router> show ip dhcp server statistics | Displays count information about server statistics and mes- |
| sages sent and received. |
|
|
Configuration Examples
This section provides the following configuration examples:
•DHCP Database Agent Configuration Example
•DHCP Address Pool Configuration Example
•Manual Bindings Configuration Example
DHCP Database Agent Configuration Example
The following example stores bindings on host 172.16.4.253. The file transfer protocol is FTP. The server should wait 2 minutes (120 seconds) before writing database changes.
ip dhcp database
DHCP Address Pool Configuration Example
In the following example, three DHCP address pools are created: one in network 172.16.0.0, one in subnetwork 172.16.1.0, and one in subnetwork 172.16.2.0. Attributes from network 172.16.0.0, such as the domain name, DNS server, NetBIOS name server, and NetBIOS node type, are inherited in subnetworks 172.16.1.0 and 172.16.2.0. In each pool, clients are granted
Table 1 | DHCP Address Pool Devices |
|
|
| |
|
|
| |||
Pool 0 (Network 172.16.0.0) | Pool 1 (Subnetwork 172.16.1.0) | Pool 2 (Subnetwork 172.16.2.0) | |||
|
|
|
|
|
|
Device | IP Address | Device | IP Address | Device | IP Address |
|
|
|
|
|
|
Default routers | – | Default routers | 172.16.1.100 | Default routers | 172.16.2.100 |
|
|
| 172.16.1.101 |
| 172.16.2.101 |
|
|
|
|
|
|
DNS server | 172.16.1.102 | — | — | — | — |
| 172.16.2.102 |
|
|
|
|
|
|
|
|
|
|
NetBIOS name server | 172.16.1.103 | — | — | — | — |
| 172.16.2.103 |
|
|
|
|
|
|
|
|
|
|
NetBIOS node type | — | — | — | — | |
|
|
|
|
|
|
10Release 12.0(1)T