Mellanox MLNX-OS®Command Reference Guide for SX1018HP Ethernet Managed Blade Switch
Rev 1.6.2
Mellanox Technologies
58
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 <ifname> 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 ip dhcp primary-intf mgmt0
no ip dhcp send-hostname
Modes/Context Config
History 3.1.0000
Role admin
Example
switch (config) # ip dhcp default-gateway yield-to-static
switch (config) # show ip dhcp
DHCP primary interface:
Configured: mgmt0
Active: mgmt0
DHCP: yield default gateway to static configuration: yes
DHCP Client Options:
Send Hostname: no
Client Hostname: switch (using system hostname)
switch (config) #
Related Commands show ip dhcp
dhcp [renew]
Note DHCP is supported for IPv4 networks only.










