background image
Using the Cisco 700 Series Router as a DHCP Server and Relay Agent 209
Figure 7-4
DHCP Setup for the 700 Series Router
The set dhcp server command declares that the router be used as the DHCP server. The address
pool and network mask are then declared. The syntax for the address pool is different from the
syntax used to specify a pool in the IOS command set.
The address (in this case, 10.1.1.2) is the first address in the pool. The second number (252)
declares the number of addresses that are assigned internally for the DHCP pool. Hence, the
pool in this case uses the IP addresses 10.1.1.2 through 10.1.1.253. The gateway that is given
to all DHCP clients is the 700 Ethernet interface. The DNS and WINS servers are defined as
192.168.1.5, and the domain sent to all clients is "mycompany".
The key issue is that the 700 series router is assigning itself as the gateway for the clients on its
Ethernet segment. In this fashion, it becomes the router for all clients. To become successful
with the CCNP material, you should focus on the flexibility of the 700 series router and not on
the details of the syntax.
Example 7-4
700 Configuration to Implement the Router as a DHCP Server
set dhcp server
set dhcp address 10.1.1.2 252
set dhcp netmask 255.255.255.0
set dhcp gateway primary 10.1.1.1
set dhcp dns primary 192.168.1.5
set dhcp wins primary 192.168.1.5
set dhcp domain mycompany
Cisco 700
series router
ISDN
cloud
Central router
DHCP
client
10.1.1.1
DHCP address pool
10.1.1.2 through 10.1.1.253
WINS/DNS
server
192.168.1.5