Configure DHCP Parameters Globally
Before you begin
Configure an IP address on the interface to be used as the DHCP relay interface.
About this task
Configure DHCP relay parameters for the port or the VLAN.
Procedure
Example
Create the forwarding path from the client to the server. Enable the forwarding path from the client the server. Modify DHCP mode to forward both BOOTP and DHCP messages. Configure the forwarding path with source port 67 for BOOTP request.
Switch:1>enable Switch:1#configure terminal Switch:1(config)#ip dhcp-relay fwd-path 192.0.2.120 192.0.2.50 Switch:1(config)#ip dhcp-relay fwd-path 192.0.2.128 192.0.2.50 enable Switch:1(config)#ip dhcp-relay fwd-path 192.0.2.128 192.0.2.50 mode bootp_dhcp Switch:1(config)#ip dhcp-relay fwd-path 192.0.2.128 192.0.2.50 src-port-67
Variable Definitions
The following table defines parameters for the ip dhcp-relay fwd-path command.
Variable |
Value |
---|---|
{A.B.C.D} |
The {A.B.C.D} variable is the agent IP address configured on an interface (a locally configured IP address). |
{A.B.C.D} |
The {A.B.C.D} variable is the IP address of the DHCP server in the network. |
disable |
Disables DHCP Relay globally. |
enable |
Enables DHCP Relay globally. |
mode {bootp|bootp_dhcp|dhcp> |
Modifies DHCP mode to forward BOOTP messages only, DHCP messages only, or both. The default is both. |
src-port-67 Note: Exception: not
supported on VSP 8600
Series.
|
Configures the UDP source port to 67 for BOOTP request. The default is 68. |