ip dhcp relay gateway

Configures the IP DHCP Relay on a Layer 3 gateway interface.

Syntax

ip dhcp relay gateway ip-addr
no ip dhcp relay gateway ip-addr

Parameters

ip-addr
IPv4 gateway address of the DHCP server where the DHCP client requests are to be forwarded.

Modes

Interface configuration mode

Usage Guidelines

Use this command to configure the IP DHCP Relay on the switch Layer 3 gateway interface using the IPv4 address of the DHCP server where the DHCP client requests are to be forwarded.

Use the no version of this command to remove the IP DHCP Relay from the interface.

Examples

To configure an IP DHCP Relay address on an interface:

device(config)# interface ethernet 0/4

device(config-if-eth-0/4)# ip dhcp relay gateway 10.50.22.26