source-interface (Connect-PCE server view)

Function

The source-interface command is used to configure the source IP address of a PCEP session.

The undo source-interface command is used to remove the source IP address of a PCEP session.

By default, the source IP is not configured.

Format

source-interface { port-type port-num | interface-name }

undo source-interface [ port-type port-num | interface-name ]

Parameters

Parameter Description Value
port-type

Specifies the interface type.

-

port-num

Specifies the interface number.

-

interface-name

Specifies the interface name.

-

Views

Connect-PCE server view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
pce write

Usage Guidelines

Usage Scenario

The PCEP session is established by default using the MPLS LSR-ID as the source IP address. In some special cases, the MPLS LSR-ID is unreachable. You can configure this command to borrow the IP address of other local interfaces as the source IP address.

Example

# Configure PCEP session uses the IP address of LoopBack0 as source IP address.
<HUAWEI> system-view
[~HUAWEI] pce-client
[*HUAWEI-pce-client] connect-server 10.1.1.1
[*HUAWEI-pce-client-connect-10.1.1.1] source-interface LoopBack 0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >