Command Reference DHCP Commands
Command Description
bootfile
Defines the default startup mapping file name of
the DHCP client.
ip dhcp pool
Defines the name of the DHCP address pool and
enters DHCP address pool configuration mode.
Related
Commands
ip help-address
Defines the Helper address on the interface.
option
Configures the option of the RGOS software DHCP
server.
Platform
Description
N/A
option
Use this command to configure the option of the DHCP server. Use the no form of this command to
delete the definition of option.
option code { ascii string | hex string | ip ip-address }
no option
Parameter
Description
Parameter Description
code
Defines the DHCP option codes.
ascii string
Defines an ASCII string.
hex string
Defines a hexadecimal string.
ip ip-address
Defines an IP address list.
Defaults
N/A
Command
Mode
DHCP address pool configuration mode
Usage Guide
The DHCP provides a mechanism to transmit the configuration information to the host in the TCP/IP
network. The DHCP message has a variable option field that can be defined according to the actual
requirement. The DHCP client needs to carry the DHCP message with at least 312 bytes of option
information. Furthermore, the fixed data field in the DHCP message is also referred to as an option.
For the current definition of DHCP option, see the RFC 2131.
Configuration
Examples
The following example defines the option code 19, which determines whether the DHCP client can
enable the IP packet forwarding. 0 indicates to disable the IP packet forwarding, and 1 indicates to
enable the IP packet forwarding. The following configuration enables the IP packet forwarding on the
DHCP client.
Ruijie(dhcp-config)# option 19 hex 1