Chapter 5 Configuring a LAN with DHCP and VLANs
|
|
| Configure DHCP |
| ||||
|
|
|
| |||||
|
| Command | Purpose | |||||
| Step 3 |
|
| |||||
| ip dhcp | Specifies IP addresses that the DHCP server should | ||||||
|
| not assign to DHCP clients. In this example, we are | ||||||
|
|
| excluding the router address. | |||||
|
| Example: |
|
|
|
|
|
|
|
| Router(config)# ip dhcp |
|
|
|
|
|
|
|
| 192.168.9.0 |
|
|
|
|
|
|
| Step 4 |
|
| |||||
| ip dhcp pool name | Creates a DHCP address pool on the router and | ||||||
|
|
| enters DHCP pool configuration mode. The name | |||||
|
| Example: | argument can be a string or an integer. | |||||
|
| Router(config)# ip dhcp pool dpool1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
| Step 5 |
|
| |||||
| network | Defines subnet number (IP) address for the DHCP | ||||||
|
|
| address pool, optionally including the mask. | |||||
|
| Example: |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
| 255.255.255.0 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
| Step 6 |
|
| |||||
| import all | Imports DHCP option parameters into the DHCP | ||||||
|
|
| portion of the router database. | |||||
|
| Example: |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
| |
| Step 7 |
|
| |||||
| Specifies up to 8 default routers for a DHCP client. | |||||||
|
| Example: |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
| |
| Step 8 |
|
| |||||
| Specifies up to 8 DNS servers available to a DHCP | |||||||
|
|
| client. | |||||
|
| Example: |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
| |
| Step 9 |
|
| |||||
|
| Specifies the domain name for a DHCP client. | ||||||
|
| Example: |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
|
|
|
| |
| Step 10 |
|
| |||||
| exit | Exits DHCP configuration mode, and enters global | ||||||
|
|
| configuration mode. | |||||
|
| Example: |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
|
| Router(config)# |
|
|
|
|
|
|
|
|
|
|
|
|
| ||
|
| Cisco 1800 Series Integrated Services Routers (Fixed) Software Configuration Guide |
|
|
|
| ||
|
|
| ||||||
|
|
|
|
|
| |||
|
|
|
|
|