Configuring The DHCP Relay
Configuring The DHCP Relay
Configuring The DHCP Relay
Note The ACE does not support DHCP relay for DHCP broadcast packets received on
shared VLANs.
Cisco 4700 Series Application Control Engine Appliance Routing and Bridging Configuration Guide
OL-11159-01 6-1
Chapter 6 Configuring the DHCP Relay
DHCP Server and Client Overview
127137
Cisco 4700 Series Application Control Engine Appliance Routing and Bridging Configuration Guide
6-2 OL-11159-01
Chapter 6 Configuring the DHCP Relay
DHCP Relay Configuration Quick Start
The rest of the examples in this table use the Admin context unless
otherwise specified. For details on creating contexts, see the Cisco 4700
Series Application Control Engine Appliance Virtualization Configuration
Guide.
2. Enter configuration mode by entering config.
host1/Admin# config
Enter configuration commands, one per line. End with CNTL/Z
host1/Admin(config)#
3. Enable the DHCP relay agent to accept DHCP requests from clients on the
associated context or VLAN interface.
host1/Admin(config)# ip dhcp relay enable
4. Specify the IP address of a DHCP server to which the DHCP relay agent
forwards client requests.
host1/Admin(config)# ip dhcp relay server 192.168.20.1
5. (Optional) Configure a relay agent information reforwarding policy on the
DHCP server to identify what the DHCP server should do if a forwarded
message already contains relay information.
host1/Admin(config)# ip dhcp relay information policy replace
6. (Optional) Save your configuration changes to flash memory.
host1/Admin(config)# exit
host1/Admin# copy running-config startup-config
Cisco 4700 Series Application Control Engine Appliance Routing and Bridging Configuration Guide
6-3 OL-11159-01
Chapter 6 Configuring the DHCP Relay
Configuring the DHCP Relay Agent
For example, to enable the DHCP relay to all interfaces associated with a context,
enter:
host1/Admin(config)# ip dhcp relay enable
Cisco 4700 Series Application Control Engine Appliance Routing and Bridging Configuration Guide
6-4 OL-11159-01
Chapter 6 Configuring the DHCP Relay
Configuring the DHCP Relay Agent
For example, to enable the DHCP relay at the VLAN interface level, enter:
host1/Admin(config)# interface vlan 50
host1/Admin(config-if)# ip dhcp relay enable
To disable the DHCP relay for all interfaces associated with a context, enter:
host1/Admin(config)# no ip dhcp relay enable
The ip_address argument specifies the IP address of the DHCP server. Enter the
address in dotted-decimal IP notation (for example, 192.168.20.1).
For example, to set the IP address of a DHCP relay server to all interfaces
associated with a context, enter:
host1/Admin(config)# ip dhcp relay enable
host1/Admin(config)# ip dhcp relay server 192.168.20.1
For example, to set the IP address of a DHCP relay server at the VLAN interface
level, enter:
host1/Admin(config)# interface vlan 50
host1/Admin(config-if)# ip dhcp relay enable
host1/Admin(config-if)# ip dhcp relay server 192.168.20.1
Cisco 4700 Series Application Control Engine Appliance Routing and Bridging Configuration Guide
6-5 OL-11159-01
Chapter 6 Configuring the DHCP Relay
Configuring the DHCP Relay Agent
Note You cannot set the relay agent information reforwarding policy at the VLAN
interface level; you can only globally set this function for all interfaces associated
with a context.
To restore the default relay information policy to drop the DHCP relay packet,
enter:
host1/Admin(config)# no ip dhcp relay information policy replace
Cisco 4700 Series Application Control Engine Appliance Routing and Bridging Configuration Guide
6-6 OL-11159-01
Chapter 6 Configuring the DHCP Relay
Viewing DHCP Relay Configuration and Statistics
To clear all of the DHCP relay statistics information, use the clear ip dhcp relay
statistics command. For example, enter:
host1/Admin# clear ip dhcp relay statistics
Table 6-2 describes the fields in the show ip dhcp relay conf command output.
Table 6-2 Field Descriptions for the show ip dhcp relay conf Command
Output
Field Description
Context level configuration Configuration information for the DHCP relay
agent at the context level.
Status Operating status of the DHCP server at the context
level: Enabled or Disabled.
Server IP address of the DHCP server at the context level.
Cisco 4700 Series Application Control Engine Appliance Routing and Bridging Configuration Guide
OL-11159-01 6-7
Chapter 6 Configuring the DHCP Relay
Viewing DHCP Relay Configuration and Statistics
Table 6-2 Field Descriptions for the show ip dhcp relay conf Command Output
(continued)
Field Description
Interface level Configuration information for the DHCP relay
configuration agent at the VLAN interface level.
VLAN Assigned interface VLAN number.
Interface ID Interface ID for the VLAN.
Status Operating status of the DHCP server at the VLAN
interface level: Enabled or Disabled.
Server IP address of the DHCP server at the VLAN
interface level.
Table 6-3 describes the fields in the show ip dhcp relay statistics command
output.
Table 6-3 Field Descriptions for the show ip dhcp relay statistics Command
Output
Field Description
Context level configuration Statistics for the DHCP relay agent at the context
level.
Number of Incremented number of forwarded
BOOTREQUEST packets BOOTREQUEST packets to a DHCP server.
relayed
Number of Incremented number of forwarded
DHCPDISCOVER packets DHCPDISCOVER packets to a DHCP server.
relayed
Number of Incremented number of forwarded
DHCPREQUEST packets DHCPREQUEST packets to a DHCP server.
relayed
Number of Incremented number of forwarded
DHCPDECLINE packets DHCPDECLINE packets to a DHCP server.
relayed
Cisco 4700 Series Application Control Engine Appliance Routing and Bridging Configuration Guide
6-8 OL-11159-01
Chapter 6 Configuring the DHCP Relay
Viewing DHCP Relay Configuration and Statistics
Table 6-3 Field Descriptions for the show ip dhcp relay statistics Command
Output (continued)
Field Description
Number of Incremented number of forwarded
DHCPRELEASE packets DHCPRELEASE packets to a DHCP server.
relayed
Number of DHCPINFORM Incremented number of forwarded
packets relayed DHCPINFORM packets to a DHCP server.
Number of BOOTREPLY Incremented number of forwarded BOOTREPLY
packets relayed packets to a DHCP server.
Number of DHCPOFFER Incremented number of forwarded DHCPOFFER
packets relayed packets to a DHCP server.
Number of DHCPACK Incremented number of forwarded DHCPACK
packets relayed packets to a DHCP server.
Number of DHCPNAK Incremented number of forwarded DHCPNAK
packets relayed packets to a DHCP server.
Number of failures while Number of failures that occurred while the DHCP
relaying relay agent forwarded packets to a DHCP server.
Interface level Statistics for the DHCP relay agent at the VLAN
configuration interface level.
Cisco 4700 Series Application Control Engine Appliance Routing and Bridging Configuration Guide
OL-11159-01 6-9
Chapter 6 Configuring the DHCP Relay
Viewing DHCP Relay Configuration and Statistics
Cisco 4700 Series Application Control Engine Appliance Routing and Bridging Configuration Guide
6-10 OL-11159-01