Configuring DHCP

Configuration Examples

DHCP Server Options Import and Autoconfiguration Example

The following example shows a remote and central server configured to support DHCP options import and autoconfiguration. The central server is configured to automatically update DHCP options, such as DNS and WINs addresses, within the DHCP pools. In response to a DHCP request from a local client behind CPE equipment, the remote server can request or “import” these option parameters from the centralized server. See Figure 16 for a diagram of the network topology.

Figure 16 DHCP Example Network Topology

PC/client

Local DNS

Central

Remote

server

router

router

 

 

 

10.0.0.210.0.0.1

FE0/0

FE0/0

72680

Central Router

!do not assign this range to DHCP clients ip dhcp-excluded address 10.0.0.1 10.0.0.5

!

ip dhcp pool central

!Specifies network number and mask for DHCP clients network 10.0.0.0 255.255.255.0

!Specifes the domain name for the client

domain-name central

!Specifies DNS server that will respond to DHCP clients when they need to correlate host

!name to ip address

dns-server 10.0.0.2

!Specifies the NETBIOS WINS server netbios-name-server 10.0.0.2

!

interface FastEthernet0/0

ip address 10.0.0.1 255.255.255.0 duplex auto

speed auto

Remote Router

!

ip dhcp pool client

!Imports DHCP options parameters into DHCP server database import all

network 20.0.0.0 255.255.255.0

!

interface FastEthernet0/0 ip address dhcp

duplex auto

Cisco IOS IP Configuration Guide

IPC-79

Page 125
Image 125
Cisco Systems 78-11741-02 Dhcp Server Options Import and Autoconfiguration Example, Central Router, Remote Router, IPC-79