Concept Guide

Applying cost for OSPFv3
Change in bandwidth directly aects the cost of OSPF routes.
Explicitly specify the cost of sending a packet on an interface.
INTERFACE mode
ipv6 ospf interface-cost
interface-cost:The range is from 1 to 65535. Default cost is based on the bandwidth.
Specify how the OSPF interface cost is calculated based on the reference bandwidth method. The cost of an interface is calculated as
Reference Bandwidth/Interface speed.
ROUTER OSPFv3
auto-cost [reference-bandwidth ref-bw]
To return to the default bandwidth or to assign cost based on the interface type, use the no auto-cost [reference-
bandwidth ref-bw] command.
ref-bw: The range is from 1 to 4294967. The default is 100 megabits per second.
Assigning IPv6 Addresses on an Interface
To assign IPv6 addresses to an interface, use the following commands.
1 Assign an IPv6 address to the interface.
CONF-INT-type slot/port mode
ipv6 address ipv6 address
IPv6 addresses are normally written as eight groups of four hexadecimal digits; separate each group by a colon (:).
The format is A:B:C::F/128.
2 Bring up the interface.
CONF-INT-type slot/port mode
no shutdown
Assigning Area ID on an Interface
To assign the OSPFv3 process to an interface, use the following command.
The ipv6 ospf area command enables OSPFv3 on an interface and places the interface in the specied area. Additionally, the
command creates the OSPFv3 process with ID on the router. OSPFv2 requires two commands to accomplish the same tasks — the
router ospf command to create the OSPF process, then the network area command to enable OSPFv2 on an interface.
NOTE
: The OSPFv2 network area command enables OSPFv2 on multiple interfaces with the single command. Use the OSPFv3
ipv6 ospf area command on each interface that runs OSPFv3.
Assign the OSPFv3 process and an OSPFv3 area to this interface.
CONF-INT-type slot/port mode
ipv6 ospf process-id area area-id
Open Shortest Path First (OSPFv2 and OSPFv3)
605