image image image image image

On This Page

ip dhcp


ip dhcp {default-gateway yield-to-static | hostname <hostname>| primary-intf <ifname> | send-hostname}
no ip dhcp {default-gateway yield-to-static | hostname | primary-intf | send-hostname}

Sets global DHCP configuration.
The no form of the command deletes the DHCP configuration.

Syntax Descriptionyield-to-staticDoes not allow you to install a default gateway from DHCP if there is already a statically configured one
hostnameSpecifies the hostname to be sent during DHCP client negotiation if send-hostname is enabled
primary-intfSets the interface from which a non-interface-specific configuration (resolver and routes) will be accepted via DHCP
send-hostnameEnables the DHCP client to send a hostname during negotiation
Defaultno ip dhcp yield-to-static
no ip dhcp hostname
ip dhcp primary-intf eth0
no ip dhcp send-hostname
Configuration Modeconfig
History1.5
Example
ufmapl [ mgmt-sa ] (config) # ip dhcp default-gateway yield-to-static
Related Commands

show ip dhcp
dhcp [renew]

NotesDHCP is supported for IPv4 networks only

show {ip | ipv6} dhcp


show {ip | ipv6} dhcp

Displays the DHCP/DHCPv6 configuration and status.

Syntax DescriptionN/A
DefaultN/A
Configuration ModeAny configuration mode
History1.5
Example
ufmapl [ mgmt-sa ] (config) # show ip dhcp 
--------------------------------------
Interface    DHCP      DHCP      Valid 
             Enabled   Running   lease 
-------------------------------------- 
bond0        no        no         no 
eth0         yes       yes        yes 
eth1         no        no         no 
ib0          no        no         no 
ib1          no        no         no 
lo           no        no         no 

IPv4 dhcp default gateway yields to static configuration: no

DHCP primary interface: 
   Configured: eth0 
   Active: eth0 

DHCP client options: 
   Send Hostname: no 
   Client Hostname: ufmapl (using system hostname) 
Related Commands

ip dhcp
dhcp [renew]

Notes

ipv6 dhcp primary-intf


ipv6 dhcp primary-intf <if-name>
no ipv6 dhcp primary-intf

Sets the interface from which non-interface-specific (resolver) configuration is accepted via DHCPv6.
The no form of the command resets non-interface-specific (resolver) configuration.

Syntax Descriptionif-name
  • lo
  • eth0
  • eth1
DefaultN/A
Configuration Modeconfig
History4.1.0
Example
ufmapl [ mgmt-sa ] (config) # ipv6 dhcp primary-intf eth0
Related Commands

ipv6 enable
ipv6 address
show interface <ifname>

Notes

ipv6 dhcp stateless


ipv6 dhcp stateless
no ipv6 dhcp stateless

Enables stateless DHCPv6 requests.
The no form of the command disables stateless DHCPv6 requests.

Syntax DescriptionN/A
DefaultN/A
Configuration Modeconfig
History4.1.0
Example
ufmapl [ mgmt-sa ] (config) # ipv6 dhcp stateless
Related Commands

ipv6 enable
ipv6 address
show interface <ifname>

Notes
  • This command only gets DNS configuration, not an IPv6 address
  • The no form of the command requests all information, including an IPv6 address