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.
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. |
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.