ip dhcp
ip dhcp {default-gateway yield-to-static | hostname <hostname>| primary-intf <ifname> | send-hostname} Sets global DHCP configuration. | ||
Syntax Description | yield-to-static | Does not allow you to install a default gateway from DHCP if there is already a statically configured one |
hostname | Specifies the hostname to be sent during DHCP client negotiation if send-hostname is enabled | |
primary-intf | Sets the interface from which a non-interface-specific configuration (resolver and routes) will be accepted via DHCP | |
send-hostname | Enables the DHCP client to send a hostname during negotiation | |
Default | no ip dhcp yield-to-static no ip dhcp hostname ip dhcp primary-intf eth0 no ip dhcp send-hostname | |
Configuration Mode | config | |
History | 1.5 | |
Example | ufmapl [ mgmt-sa ] (config) # ip dhcp default-gateway yield-to-static | |
Related Commands | show ip dhcp | |
Notes | DHCP is supported for IPv4 networks only |
show {ip | ipv6} dhcp
show {ip | ipv6} dhcp Displays the DHCP/DHCPv6 configuration and status. | ||
Syntax Description | N/A | |
Default | N/A | |
Configuration Mode | Any configuration mode | |
History | 1.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 | |
Notes |
ipv6 dhcp primary-intf
ipv6 dhcp primary-intf <if-name> Sets the interface from which non-interface-specific (resolver) configuration is accepted via DHCPv6. | ||
Syntax Description | if-name |
|
Default | N/A | |
Configuration Mode | config | |
History | 4.1.0 | |
Example | ufmapl [ mgmt-sa ] (config) # ipv6 dhcp primary-intf eth0 | |
Related Commands | ipv6 enable | |
Notes |
ipv6 dhcp stateless
ipv6 dhcp stateless Enables stateless DHCPv6 requests. | ||
Syntax Description | N/A | |
Default | N/A | |
Configuration Mode | config | |
History | 4.1.0 | |
Example | ufmapl [ mgmt-sa ] (config) # ipv6 dhcp stateless | |
Related Commands | ipv6 enable | |
Notes |
|