< Home

label distribution default-route

Function

The label distribution default-route command enables a device to assign a label to a default IGP route.

The undo label distribution default-route command restores the default configuration.

By default, the device is disabled from assigning a label to a default IGP route.

Format

label distribution default-route

undo label distribution default-route

Parameters

None

Views

MPLS-LDP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenarios

To enable a device to use MPLS assign a label to a default IGP route in independent mode, run the label distribution default-route command. An LSP can be established using the default route.

Prerequisites

MPLS LDP has been enabled globally using the mpls ldp command in the system view.

Example

# Enable a device to assign a label to a default IGP route.

<HUAWEI> system-view
[HUAWEI] mpls ldp
[HUAWEI-mpls-ldp] label distribution default-route
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >