dhcp server request-packet all-interface

Function

The dhcp server request-packet all-interface command enables or disables the DHCP server function on all interfaces.

By default,the DHCP server function is disabled on all interfaces.

Format

dhcp server request-packet all-interface { enable | disable }

Parameters

Parameter Description Value
enable

Enables the DHCP server function on all interfaces.

-

disable

Disables the DHCP server function on all interfaces.

-

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
dhcp write

Usage Guidelines

Usage Scenario

By default, the DHCP server function is disabled on all interfaces. To enable the DHCP server function on all interfaces, run the dhcp server request-packet all-interface enable command. After the command is run, all interfaces allow users to go online.

Precautions

  • If the DHCP server function is enabled in the system view but disabled in the view of an interface, this function is disabled on the interface. in this case, the interface does not allow users to go online.
  • If the DHCP server function is disabled in the system view but enabled in the view of an interface, this function is enabled on the interface. in this case, the interface allows users to go online.

Example

# Enable the DHCP server function in the system view.
<HUAWEI> system-view
[~HUAWEI] dhcp server request-packet all-interface enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >