OSPFv3 global and interface settings

When first enabling OSPF, you may want to consider configuring ranges and restricting redistribution (if an ASBR is used) to avoid unwanted advertisements of external routes. You may also want to enable OSPFv3 traps to enhance troubleshooting. However, it is generally recommended that the remaining parameters with non-null default settings be left as-is until you have the opportunity to assess OSPFv3 operation and determine whether any adjustments to default settings are warranted.

For information on when to use the global and per-interface commands used with OSPFv3, see ip router-id. For detailed information on each command, see the page listed for each command.

Before enabling OSPFv3, ensure that ipv6 unicast-routing is enabled. Also, either begin each command with router ospf3, or execute router ospf3 at the global CONFIG level and then execute the individual commands in that context. For example:

Syntax

Switch(config)# router ospf3

Switch(ospf3)# enable

Use the appropriate interface context to set interface level OSPFv3 parameters for the desired interface. To access this context level, use vlan vid or interface tunnel tunnel-id either to move to the interface context level or to specify that context from the global config level.

Enabling OSPF

Switch(config)# vlan 20
Switch(vlan-20)# ipv6 ospf3 cost 15
Switch(config)# vlan 20 ipv6 ospf3 cost 15
Switch(config)# interface tunnel 3
Switch(tunnel-3)# ipv6 ospf3 cost 15
Switch(config)# interface tunnel 3 ipv6 ospf3 cost 15