peer virtual-link te metric

Function

The peer virtual-link te metric command sets a metric for a peer virtual link.

The undo peer virtual-link te metric command cancels the configuration.

By default, no metric is configured for a virtual link.

Format

peer peerIpv6Addr virtual-link te metric metric-value

undo peer peerIpv6Addr virtual-link te metric

undo peer peerIpv6Addr virtual-link te metric metric-value

Parameters

Parameter Description Value
peerIpv6Addr

Specifies the IPv6 address of a peer.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

metric-value

Specifies a metric.

The value is an integer that ranges from 1 to 16777215.

Views

BGP view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

You can run the peer virtual-link te metric command to set a metric for a virtual link between BGP peers. The metric is used by the controller to calculate routes.

Prerequisites

A virtual link across an L3 network has been constructed using the peer virtual-link command. The device has been enabled to report topology information to the controller based on the virtual link for path computation.

Example

# Set the metric of the peer virtual link to 20.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 2001:db8:1::1 as-number 100
[*HUAWEI-bgp] peer 2001:db8:1::1 egress-engineering srv6
[*HUAWEI-bgp] peer 2001:db8:1::1 virtual-link
[*HUAWEI-bgp] peer 2001:db8:1::1 virtual-link te metric 20
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >