Using the Cisco 700 Series Router as a DHCP Server and Relay Agent
The 700 series router is capable of being the DHCP server or functioning as a relay agent to a DHCP server running on another device. To perform the function of a relay agent, the router is configured as follows:
set dhcp relay ip-address
The use of the 700 series router as a relay agent is very similar to setting an IP helper-address on an IOS router pointing to a DHCP server. Using the set dhcp relay command passes only the DHCP request; however, the IP helper-address can pass other broadcast packets if not configured for only DHCP requests. The use of the router as a relay agent simply points to another device responsible for the maintenance of the IP addressing.
Using the 700 series router as a DHCP server is also syntactically very simple: the router must be declared as the server and the address pool must be defined. Any DHCP broadcast request received from the LAN interface is satisfied from the pool. The code in Example 7-4 is required on the router shown in Figure 7-4.
Using the Cisco 700 Series Router as a DHCP Server and Relay Agent 209
|
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 |
Figure 7-4 DHCP Setup for the 700 Series Router
Figure 7-4 DHCP Setup for the 700 Series Router
DHCP client
192.168.1.5
DHCP client
Cisco 700 series router
DHCP address pool 10.1.1.2 through 10.1.1.253
WINS/DNS server
192.168.1.5
WINS/DNS server
Cisco 700 series router
DHCP address pool 10.1.1.2 through 10.1.1.253
Continue reading here: X25 Configuration Examples
Was this article helpful?