Mellanox MLNX-OS User Manual for SX1018HP Ethernet Managed Blade Switch

Rev 2.10
Mellanox Technologies
120
Mellanox Technologies Confidential
4.1.6.5 DHCP
Sets global DHCP configuration.
The no form of the command deletes the DHCP configuration.
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
negotiat
ion if send-hostname is enabled.
primary-intf <ifname> Sets the interface from which a non-interface-specific
configuration (resolver a
nd routes) will be accepted via
DHCP.
send-hostname Enables the DHCP client to send a hostname during
negotiat
ion.
no ip dhcp yield-to-static
no ip dhcp hostname
ip ip dhcp primary-intf mgmt0
no ip dhcp send-hostname
Config
3.1.0000
admin
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) #
show ip dhcp
dhcp [renew]
DHCP is supported for IPv4 networks only.
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-host-
name}
Syntax Description
Default
Configuration Mode
History
Role
Example
Related Commands
Note