Relay Agent Option Support
When you use the ip dhcp relay information option command, the relay agent adds the circuit identifier suboption and the remote ID suboption to the relay agent information and forwards them to a DHCP server. The following explains the DHCP relay services process:
1. The DHCP client generates a DHCP request and broadcasts it on the network.
2. The DHCP relay agent intercepts the broadcast DHCP request packet and inserts the relay agent information option (82) in the packet. The relay agent option contains the related suboptions.
3. The DHCP relay agent unicasts the DHCP packet to the DHCP server.
4. The DHCP server receives the packet and uses the suboptions to assign IP addresses and other configuration parameters and forwards them back to the client.
5. The suboption fields are stripped off of the packet by the relay agent while forwarding to the client.
© 2006 Cisco Systems, Inc. Manipulating Routing Updates 5-81
Description of Option Support Commands and Parameters
|
Command and Parameter |
Description |
|
Router(config)#ip dhcp information option |
Enables the system to insert the DHCP relay agent information option (82) in forwarded BOOTREQUEST messages to a DHCP server. Disabled by default. |
|
Router(config)#ip dhcp information check |
Configures DHCP to check that the relay agent information option in forwarded BOOTREPLY messages is valid. This command is used only to re-enable this function if it is disabled; it is on by default. |
|
Router(config)#ip dhcp information policy{drop| keep | replace} |
Configures the reforwarding policy for the relay agent (specifies what a relay agent should do if a message already contains relay information). |
|
Router(config)#ip dhcp relay information trust-all |
Configures all information on a router as trusted sources of the DHCP relay information option. Useful when Ethernet switches are involved in delivery of packet. For an individual interface, the ip dhcp relay information trusted command can be used. |
|
Router#show ip dhcp-relay information trusted-sources |
Displays all interfaces configured to be a trusted source for the DHCP relay information option. |
5-82 Building Scalable Cisco Internetworks (BSCI) v3.0 © 2006 Cisco Systems, Inc.
router#
show ip dhcp database
• Displays recent activity on the DHCP database router#
show ip dhcp server statistics
• Shows count information about statistics and messages sent and received router#
show ip route dhcp
• Displays routes added to the routing table by DHCP
router#
debug ip dhcp server {events | packets | linkage}
• Enables debugging on the DHCP server
Description of DHCP Verification Commands and Parameters
|
Command and Parameter |
Description |
|
show ip dhcp database |
Displays recent activity in the DHCP database |
|
show ip dhcp server statistics |
Displays count information about server statistics and messages sent and received |
|
show ip route dhcp{ip-address} |
Displays the routes added to the routing table by the Cisco IOS DHCP server and relay agent |
|
{address} |
Displays a list of all bindings created on a specific DHCP server |
|
show ip dhcp conflict |
Displays a list of all address conflicts recorded by a specific DHCP server |
|
show ip dhcp import |
Displays the option parameters that were imported into the DHCP server database |
|
clear ip dhcp binding {address | *} |
Deletes an automatic address binding from the DHCP database |
|
clear ip dhcp conflict {address | *} |
Clears an address conflict from the DHCP database |
|
clear ip dhcp server statistics |
Resets all DHCP server counters to 0 |
|
clear ip route dhcp {ip-address} |
Removes routes from the routing table added by the Cisco IOS DHCP server and relay agent |
© 2006 Cisco Systems, Inc. Manipulating Routing Updates 5-83
Continue reading here: BGP connection is closed after being sent
Was this article helpful?