undo pnp enable

Function

The undo pnp enable command disables PnP.

By default, PnP is enabled.

Format

undo pnp enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
pnp execute

Usage Guidelines

Usage Scenario

The plug-and-play function runs on the DHCP client and is enabled by default. That is, after the DHCP client is powered on, the DHCP client can apply for an IP address from the NMS (DHCP server) through the DHCP protocol and automatically configure the IP address.

If the plug-and-play function is not required, run the undo pnp enable command to disable the plug-and-play function to prevent the automatic VLAN learning function from affecting other user configurations. This command takes effect only when no IP address is obtained.

In VS mode, this command is supported only by the admin VS.

Precautions

When a device is powered on and starts with a configuration file, the PnP process is triggered. In this case, the device checks whether any of the following configurations exists in the configuration file:

  • An IP address, excluding the management interface address (192.168.0.1/24), loopback interface address, and the IP address of a DCN-related sub-interface, is configured for any interface.
  • The undo pnp enable command is run globally.
  • A VLAN is configured globally.
  • A BD is configured globally.
  • A VSI is configured globally.
  • The device is configured as an AP.
  • The DHCP client function is configured on an interface.

    If any of the preceding configurations exists on the device, the PnP process ends. Otherwise, the device applies for an IP address from the NMS (DHCP server) through the DHCP protocol and automatically configures the IP address.

Example

# Disable the PNP function.
<HUAWEI> system-view
[~HUAWEI] undo pnp enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic