Cisco Systems OL-6426-02 manual Configure Dhcp

Models: OL-6426-02

1 196
Download 196 pages 47.1 Kb
Page 64
Image 64

Chapter 5 Configuring a LAN with DHCP and VLANs

Configure DHCP

Configure VLANs

Note The procedures in this chapter assume you have already configured basic router features as well as PPPoE or PPPoA with NAT. If you have not performed these configurations tasks, see Chapter 1, “Basic Router Configuration,” Chapter 3, “Configuring PPP over Ethernet with NAT,” and Chapter 4, “Configuring PPP over ATM with NAT” as appropriate for your router. See the Cisco IOS IP Configuration Guide to assign an IP address to the ports.

Configure DHCP

Perform these steps to configure your router for DHCP operation, beginning in global configuration mode:

 

Command

Purpose

Step 1

 

 

ip domain name name

Identifies the default domain that the router uses to

 

 

complete unqualified hostnames (names without a

 

Example:

dotted-decimal domain name).

 

Router(config)# ip domain name smallbiz.com

 

 

Router(config)#

 

Step 2

 

 

ip name-server server-address1

Specifies the address of one or more Domain

 

[server-address2...server-address6]

Name System (DNS) servers to use for name and

 

 

address resolution.

 

Example:

 

 

Router(config)# ip name-server 192.168.11.12

 

 

Router(config)#

 

Step 3

 

 

ip dhcp excluded-address low-address

Specifies IP addresses that the DHCP server

 

[high-address]

should not assign to DHCP clients. In this

 

 

example, we are excluding the router address.

 

Example:

 

 

Router(config)# ip dhcp excluded-address

 

 

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

 

 

Router(config-dhcp)#

 

Step 5

 

 

network network-number [mask prefix-length]

Defines subnet number (IP) address for the DHCP

 

 

address pool, optionally including the mask.

 

Example:

 

 

Router(config-dhcp)# network 10.10.0.0

 

 

255.255.255.0

 

 

Router(config-dhcp)#

 

 

 

 

Book Title

5-2

OL-xxxxx-xx

 

 

Page 64
Image 64
Cisco Systems OL-6426-02 manual Configure Dhcp