SUMMARY STEPS
1.
configure terminal
2.
service dhcp
3.
end
DETAILED STEPS
Purpose
Command or Action
Enters the global configuration mode.
configure terminal
Example:
Switch#
configure terminal
Step 1
Enables the DHCP server and relay agent on your switch.
By default, this feature is enabled.
service dhcp
Example:
Switch(config)#
service dhcp
Step 2
Returns to privileged EXEC mode.
end
Example:
Switch(config)#
end
Step 3
What to Do Next
See the
“
Configuring DHCP
”
section of the
“
IP Addressing and Services
”
section of the
Cisco IOS IP
Configuration Guide, Release 12.4
for these procedures:
•
Checking (validating) the relay agent information
•
Configuring the relay agent forwarding policy
Specifying the Packet Forwarding Address
If the DHCP server and the DHCP clients are on different networks or subnets, you must configure the switch
with the
ip helper-address address
interface configuration command. The general rule is to configure the
command on the Layer 3 interface closest to the client. The address used in the
ip helper-address
command
can be a specific DHCP server IP address, or it can be the network address if other DHCP servers are on the
destination network segment. Using the network address enables any DHCP server to respond to requests.
Beginning in privileged EXEC mode, follow these steps to specify the packet forwarding address:
Catalyst 2960-XR Switch Security Configuration Guide, Cisco IOS Release 15.0(2)EX1
174
OL-29434-01
Configuring DHCP
Specifying the Packet Forwarding Address