Chapter 5 Configuring a LAN with DHCP and VLANs

Configure DHCP

 

Command

Purpose

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

 

 

Router(dhcp-config)#

 

Step 5

 

 

network network-number [mask prefix-length]

Defines subnet number (IP) address for the DHCP

 

 

address pool, optionally including the mask.

 

Example:

 

 

Router(dhcp-config)# network 10.10.0.0

 

 

255.255.255.0

 

 

Router(dhcp-config)#

 

Step 6

 

 

import all

Imports DHCP option parameters into the DHCP

 

 

portion of the router database.

 

Example:

 

 

Router(dhcp-config)# import all

 

 

Router(dhcp-config)#

 

Step 7

 

 

default-routeraddress [address2...address8]

Specifies up to 8 default routers for a DHCP client.

 

Example:

 

 

Router(dhcp-config)# default-router

 

 

10.10.10.10

 

 

Router(dhcp-config)#

 

Step 8

 

 

dns-serveraddress [address2...address8]

Specifies up to 8 DNS servers available to a DHCP

 

 

client.

 

Example:

 

 

Router(dhcp-config)#dns-server 192.168.35.2

 

 

Router(dhcp-config)#

 

Step 9

 

 

domain-name domain

Specifies the domain name for a DHCP client.

 

Example:

 

 

Router(dhcp-config)# domain-name cisco.com

 

 

Router(dhcp-config)#

 

Step 10

 

 

exit

Exits DHCP configuration mode, and enters

 

 

global configuration mode.

 

Example:

 

 

Router(dhcp-config)# exit

 

 

Router(config)#

 

 

 

 

Cisco Secure Router 520 Series Software Configuration Guide

 

OL-14210-01

5-3

 

 

 

Page 59
Image 59
Cisco Systems 520 series manual Creates a Dhcp address pool on the router, Enters Dhcp pool configuration mode. The name