ipv6 ospf neighbor cost

Use this command to assign a cost for the specified neighbor on the interface.

Syntax

ipv6 ospf neighbor ipv6-address cost number
no ipv6 ospf neighbor ipv6-address cost

Parameters

ipv6-address Specifies the neighbor IPv6 address.
number Specifies the cost assigned to the specified neighbor on the interface. Valid values are 1 - 65535. The default value is 10.

Defaults

None.

Mode

Interface configuration.

Usage

Assigns a cost to the interface neighbor. If a neighbor cost is not assigned, the cost specified by the ipv6 ospf cost command is used. This command does not apply to NBMA networks.

The “no” form of this command resets the neighbor cost to the default of 10.

Example

This example shows how to set the to 5 for VLAN 1 neighbor 2010:2001:eff0::10:

System(rw-config)->interface vlan 1
System(rw-config-intf-vlan.0.1)->ipv6 ospf neighbor 2010:2001:eff0::10 cost 5