< Home

p2mp-peer

Function

The p2mp-peer command sets a cost for an OSPF route to a specified neighbor on a P2MP network.

The undo p2mp-peer command restores the default value.

By default, the cost of an OSPF route to a neighbor in a P2MP network equals the interface cost.

Format

p2mp-peer ip-address cost cost

undo p2mp-peer ip-address

Parameters

Parameter Description Value
ip-address Specifies the IP address of a neighbor on a P2MP network. The value is in dotted decimal notation.
cost cost Sets a cost for an OSPF route to a specified neighbor on a P2MP network. The value is an integer ranging from 1 to 65535.

Views

OSPF process view

Default Level

2: Configuration level

Usage Guidelines

By default, the cost of an OSPF route to a neighbor equals the interface cost on a P2MP network. If this default cost is not suitable, run the p2mp-peer command to set a desired cost.

The interface cost calculation formula is as follows: Cost of an interface = Bandwidth reference value/Interface bandwidth. The integer of the calculated result is used as the interface cost, and 1 is used as the interface cost if the calculated result is smaller than 1. The bandwidth reference value is set using the bandwidth-reference command, with the default value being 100 Mbit/s.

Example

# Set the cost to 100 for the OSPF route to the neighbor 10.1.1.1 in OSPF process 100 on a P2MP network.

<HUAWEI> system-view
[HUAWEI] ospf 100
[HUAWEI-ospf-100] p2mp-peer 10.1.1.1 cost 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >