Configuration Guide DHCP Configuration
Ruijie(config)# service dhcp
Enable the DHCP server and the
DHCP relay agent.
Ruijie(config)# no service dhcp
Disable the DHCP server and the
DHCP relay agent.
By default, in v10.1 and later, the command service dhcp can
be used for both DHCP server and DHCP relay, which are two
mutually-exclusive functions. The switchover of those two
functions depends on whether the DHCP address pool is
configured or not.
However, for the product in the version prior to v10.1(excluding
v10.1), the command service dhcp is not supported by both
DHCP server and DHCP relay. You can use the command
service dhcp to enable the DHCP service or the DHCP server.
For some product in v10.1 and later, DHCP may conflict with
some functions. For the details, see the prompting message of
specific product.
Configuring Ping Packet Timeout
By default, the DHCP server considers the IP address inexistent if it has not
received a response within 500 milliseconds after pinging an IP address. You
can adjust the Ping packet timeout.
To configure the Ping packet timeout, execute the following commands in the
global configuration mode:
Ruijie(config)# ip dhcp ping
timeout milliseconds
Configure the Ping packet timeout for
the DHCP server. The default value
is 500ms.
Configuring the DHCP Client on the Ethernet Interface
Ruijie products support obtaining the IP address dynamicaly assigned by the
DHCP server on an Ethernet interface.
To configure the DHCP client on the Ethernet port, execute the following
command in the interface configuration mode:
Ruijie(config-if)# ip address dhcp
Obtain an IP address through DHCP.