pnp default route

Function

The pnp default route command creates a plug-and-play (PNP) route.

By default, PnP routes are automatically created during PnP.

Format

pnp default route ip-address [ vpn-instance VpnName ]

Parameters

Parameter Description Value
ip-address

Specifies an IP address.

The value is in dotted decimal notation.

vpn-instance VpnName

Specifies the name of a VPN instance.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
pnp write

Usage Guidelines

Usage Scenario

During PnP, a device automatically generates PnP routes. After device commissioning is complete, PnP is not needed any more. To delete the routes generated during PnP, run the undo pnp default route command. During ZTP, a device automatically generates PnP routes. After the device restarts, the configuration is downloaded. After the ZTP process ends, the device restarts. Before the restart, the device automatically deletes the PnP routes.

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

Example

# Create the default PNP VPN route.
<HUAWEI> system-view
[~HUAWEI] pnp default route 1.1.1.1 vpn-instance vrf1
# Create the default PNP public route.
<HUAWEI> system-view
[~HUAWEI] pnp default route 1.1.1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >