ip dhcp-source-address

This command allows the user to configure the DHCP relay source address.  This command is valid only in case of DHCP relay (remote).

Syntax

Mediant 500Li, Mediant 800Ci, and MP-5xx:
ip dhcp-source-address interface 
ip dhcp-source-address <IP Address>
Mediant 500L MSBR, Mediant 500 MSBR, Mediant 500C MSBR, Mediant 800B MSBR, and Mediant 800C MSBR:
ip dhcp-source-address all <IP Address>
ip dhcp-source-address <Interface Name> <IP Address>

Command

Description

<IP Address>

Specifies a valid IPv4 address (in dotted decimal notation, for example, 10.1.2.3) for the DHCP relay source address.

all

Enables all interfaces.

Note: Applicable only to Mediant 500L MSBR, Mediant 500 MSBR, Mediant 500C MSBR, Mediant 800B MSBR, and Mediant 800C MSBR.

interface

Uses the IP address of the LAN interface under which the command is run as the source address.

Note: Applicable only to Mediant 500Li, Mediant 800Ci, and MP-5xx.

<Interface Name>

Defines the interface.

Note: Applicable only to Mediant 500L MSBR, Mediant 500 MSBR, Mediant 500C MSBR, Mediant 800B MSBR, and Mediant 800C MSBR.

Default

NA

Notes

The address should be of one of the local interfaces.
If you don't configure dhcp-source-address, the default behavior is to use the source address of the WAN interface that is used to communicate with the DHCP server.

Command Mode

Privileged User

Related Commands

The dhcp-source-address command takes effect only when the DHCP Relay server is configured (see the ip dhcp-server command).

Example

Mediant 500Li, Mediant 800Ci, and MP-5xx:

This example configures VLAN 5 to relay DHCP requests to 10.5.5.11 and use the IP address of VLAN 5 as the source address on the relayed packets:

(config-data)# interface vlan 5
(conf-if-vlan 5)# ip dhcp-server 10.5.5.11
(conf-if-vlan 5)# ip dhcp-source-address interface
Mediant 500L MSBR, Mediant 500 MSBR, Mediant 500C MSBR, Mediant 800B MSBR, and Mediant 800C MSBR:

This example configures VLAN 5 to relay DHCP requests to 10.5.5.11 and use 10.4.4.11 as the source address on the relayed packets:

(config-data)# ip dhcp-server 10.5.5.11 vlan 5
(config-data)# ip dhcp-source-address vlan 5 10.4.4.11