Ip6 Route Ospfv3
Ip6 Route Ospfv3
Open Shortest Path First version 3 (OSPFv3) is an IPv4 and IPv6 link-state routing protocol that supports
IPv6 and IPv4 unicast address families (AFs).
An address prefix occurs in almost all newly defined LSAs. The prefix is represented by three fields:
PrefixLength, PrefixOptions, and Address Prefix. In OSPFv3, addresses for these LSAs are expressed as
prefix, prefix length instead of address, mask. The default route is expressed as a prefix with length 0. Type
3 and Type 9 LSAs carry all prefix (subnet) information that, in OSPFv2, is included in device LSAs and
network LSAs. The Options field in certain LSAs (device LSAs, network LSAs, interarea-device LSAs, and
link LSAs) has been expanded to 24 bits to provide support for OSPFv3.
In OSPFv3, the sole function of the link-state ID in interarea-prefix LSAs, interarea-device LSAs, and
autonomous-system external LSAs is to identify individual pieces of the link-state database. All addresses or
device IDs that are expressed by the link-state ID in OSPF version 2 are carried in the body of the LSA in
OSPFv3.
The link-state ID in network LSAs and link LSAs is always the interface ID of the originating device on the
link being described. For this reason, network LSAs and link LSAs are now the only LSAs whose size cannot
be limited. A network LSA must list all devices connected to the link, and a link LSA must list all of the
address prefixes of a device on the link.
NBMA in OSPFv3
On NBMA networks, the designated router (DR) or backup DR (BDR) performs the LSA flooding. On
point-to-point networks, flooding simply goes out an interface directly to a neighbor.
Devices that share a common segment (Layer 2 link between two interfaces) become neighbors on that segment.
OSPFv3 uses the Hello protocol, periodically sending hello packets out each interface. Devices become
neighbors when they see themselves listed in the neighbor’s hello packet. After two devices become neighbors,
they may proceed to exchange and synchronize their databases, which creates an adjacency. Not all neighboring
devices have an adjacency.
On point-to-point and point-to-multipoint networks, the software floods routing updates to immediate neighbors.
There is no DR or BDR; all routing information is flooded to each networking device.
On broadcast or NBMA segments only, OSPFv3 minimizes the amount of information being exchanged on
a segment by choosing one device to be a DR and one device to be a BDR. Thus, the devices on the segment
have a central point of contact for information exchange. Instead of each device exchanging routing updates
with every other device on the segment, each device exchanges information with the DR and BDR. The DR
and BDR relay the information to the other devices.
The software looks at the priority of the devices on the segment to determine which devices will be the DR
and BDR. The device with the highest priority is elected the DR. If there is a tie, then the device with the
higher device ID takes precedence. After the DR is elected, the BDR is elected the same way. A device with
a device priority set to zero is ineligible to become the DR or BDR.
When using NBMA in OSPFv3, you cannot automatically detect neighbors. On an NBMA interface, you
must configure your neighbors manually using interface configuration mode.
OSPFv3 Customization
You can customize OSPFv3 for your network, but you likely will not need to do so. The defaults for OSPFv3
are set to meet the requirements of most customers and features. If you must change the defaults, refer to the
IPv6 command reference to find the appropriate syntax.
Caution Be careful when changing the defaults. Changing defaults will affect your OSPFv3 network, possibly
adversely.
The table below defines the symbols used in the OSPFv3 cost calculation.
D RLF-related formula:
((100 – RLF) * 2^16)/100
Because each network might have unique characteristics that require different settings to optimize actual
network performance, these are recommended values intended as a starting point for optimizing an OSPFv3
network. The table below lists the recommended value settings for OSPFv3 cost metrics.
The default path costs were calculated using this formula, as noted in the following list. If these values do not
suit your network, you can use your own method of calculating path costs.
• 56-kbps serial link—Default cost is 1785.
To illustrate these settings, the following example shows how OSPFv3 cost metrics might be defined for a
Virtual Multipoint Interface (VMI) interface:
interface vmi1
ipv6 ospf cost dynamic weight throughput 0
ipv6 ospf cost dynamic weight resources 29
ipv6 ospf cost dynamic weight latency 29
ipv6 ospf cost dynamic weight L2-factor 29
SUMMARY STEPS
1. enable
2. configure terminal
3. router ospfv3 [process-id]
4. area area-ID [default-cost | nssa | stub]
5. auto-cost reference-bandwidth Mbps
6. default {area area-ID [range ipv6-prefix | virtual-link router-id]} [default-information originate
[always | metric | metric-type | route-map] | distance | distribute-list prefix-list prefix-list-name {in |
out} [interface] | maximum-paths paths | redistribute protocol | summary-prefix ipv6-prefix]
7. ignore lsa mospf
8. interface-id snmp-if-index
9. log-adjacency-changes [detail]
10. passive-interface [default | interface-type interface-number]
11. queue-depth {hello | update} {queue-size | unlimited}
12. router-id router-id
DETAILED STEPS
Example:
Device# configure terminal
Step 3 router ospfv3 [process-id] Enters router configuration mode for the IPv4 or IPv6
address family.
Example:
Device(config)# router ospfv3 1
Step 4 area area-ID [default-cost | nssa | stub] Configures the OSPFv3 area.
Example:
Device(config-router)# area 1
Device(config-router)# auto-cost
reference-bandwidth 1000
Step 6 default {area area-ID [range ipv6-prefix | virtual-link Returns an OSPFv3 parameter to its default value.
router-id]} [default-information originate [always | metric
| metric-type | route-map] | distance | distribute-list
prefix-list prefix-list-name {in | out} [interface] |
maximum-paths paths | redistribute protocol |
summary-prefix ipv6-prefix]
Example:
Device(config-router)# default area 1
Step 7 ignore lsa mospf Suppresses the sending of syslog messages when the
device receives LSA Type 6 multicast OSPFv3 packets,
Example: which are unsupported.
Step 9 log-adjacency-changes [detail] Configures the device to send a syslog message when
an OSPFv3 neighbor goes up or down.
Example:
Device(config-router)# log-adjacency-changes
Step 10 passive-interface [default | interface-type interface-number] Suppresses sending routing updates on an interface
when an IPv4 OSPFv3 process is used.
Example:
Device(config-router)# passive-interface default
Step 11 queue-depth {hello | update} {queue-size | unlimited} Configures the number of incoming packets that the
IPv4 OSPFv3 process can keep in its queue.
Example:
Device(config-router)# queue-depth update 1500
Example:
Device(config-router)# router-id 10.1.1.1
Note • You cannot automatically detect neighbors when using NBMA interfaces. You must manually
configure your device to detect neighbors when using an NBMA interface.
• When the ipv6 ospf neighbor command is configured, the IPv6 address used must be the link-local
address of the neighbor.
SUMMARY STEPS
1. enable
2. configure terminal
3. interface type number
4. no switchport
5. ipv6 enable
6. ipv6 ospf neighbor ipv6-address [priority number] [poll-interval seconds] [cost number]
[database-filter all out]
DETAILED STEPS
Example:
Device# configure terminal
Step 3 interface type number Specifies an interface type and number, and places
the device in interface configuration mode.
Example:
Device(config)# interface Gigabitethernet 0/0
Example:
Device (config-if)# no switchport
Example:
Device (config-if)#ipv6 enable
Step 6 ipv6 ospf neighbor ipv6-address [priority number] Configures an OSPFv3 neighboring device.
[poll-interval seconds] [cost number] [database-filter all
out]
Example:
Device(config-if) ipv6 ospf neighbor
FE80::A8BB:CCFF:FE00:C01
1. enable
2. clear ospfv3 [process-id] force-spf
3. clear ospfv3 [process-id] process
4. clear ospfv3 [process-id] redistribution
5. clear ipv6 ospf [process-id] {process | force-spf | redistribution}
DETAILED STEPS
Step 2 clear ospfv3 [process-id] force-spf Runs SPF calculations for an OSPFv3 process.
• If the clear ospfv3 force-spf command is configured, it overwrites
Example: the clear ipv6 ospf configuration.
Device# clear ospfv3 1 force-spf
• Once the clear ospfv3 force-spf command has been used, the clear
ipv6 ospf command cannot be used.
Step 5 clear ipv6 ospf [process-id] {process | Clears the OSPFv3 state based on the OSPFv3 routing process ID, and
force-spf | redistribution} forces the start of the SPF algorithm.
• If the clear ospfv3 force-spf command is configured, it overwrites
Example: the clear ipv6 ospf configuration.
Device# clear ipv6 ospf force-spf
SUMMARY STEPS
1. enable
2. show ospfv3 [process-id] [address-family] border-routers
3. show ospfv3 [process-id [area-id]] [address-family] database [database-summary | internal | external
[ipv6-prefix ] [link-state-id] | grace | inter-area prefix [ipv6-prefix | link-state-id] | inter-area router
[destination-router-id | link-state-id] | link [interface interface-name | link-state-id] | network [link-state-id]
| nssa-external [ipv6-prefix] [link-state-id] | prefix [ref-lsa {router | network} | link-state-id] |
promiscuous | router [link-state-id] | unknown [{area | as | link} [link-state-id]] [adv-router router-id]
[self-originate]
4. show ospfv3 [process-id] [address-family] events [generic | interface | lsa | neighbor | reverse | rib |
spf]
5. show ospfv3 [process-id] [area-id] [address-family] flood-list interface-type interface-number
6. show ospfv3 [process-id] [address-family] graceful-restart
7. show ospfv3 [process-id] [area-id] [address-family] interface [type number] [brief]
8. show ospfv3 [process-id] [area-id] [address-family] neighbor [interface-type interface-number]
[neighbor-id] [detail]
9. show ospfv3 [process-id] [area-id] [address-family] request-list[neighbor] [interface] [interface-neighbor]
10. show ospfv3 [process-id] [area-id] [address-family] retransmission-list [neighbor] [interface]
[interface-neighbor]
11. show ospfv3 [process-id] [address-family] statistic [detail]
12. show ospfv3 [process-id] [address-family] summary-prefix
13. show ospfv3 [process-id] [address-family] timers rate-limit
14. show ospfv3 [process-id] [address-family] traffic[interface-type interface-number]
15. show ospfv3 [process-id] [address-family] virtual-links
DETAILED STEPS
Step 2 show ospfv3 [process-id] [address-family] border-routers Displays the internal OSPFv3 routing table
entries to an ABR and ASBR.
Example:
Device# show ospfv3 border-routers
Step 3 show ospfv3 [process-id [area-id]] [address-family] database Displays lists of information related to the
[database-summary | internal | external [ipv6-prefix ] [link-state-id] OSPFv3 database for a specific device.
| grace | inter-area prefix [ipv6-prefix | link-state-id] | inter-area
router [destination-router-id | link-state-id] | link [interface
interface-name | link-state-id] | network [link-state-id] | nssa-external
[ipv6-prefix] [link-state-id] | prefix [ref-lsa {router | network} |
link-state-id] | promiscuous | router [link-state-id] | unknown [{area
| as | link} [link-state-id]] [adv-router router-id] [self-originate]
Example:
Device# show ospfv3 database
Step 4 show ospfv3 [process-id] [address-family] events [generic | interface Displays detailed information about OSPFv3
| lsa | neighbor | reverse | rib | spf] events.
Example:
Device# show ospfv3 events
Step 5 show ospfv3 [process-id] [area-id] [address-family] flood-list Displays a list of OSPFv3 LSAs waiting to be
interface-type interface-number flooded over an interface.
Example:
Device# show ospfv3 flood-list
Step 6 show ospfv3 [process-id] [address-family] graceful-restart Displays OSPFv3 graceful restart information.
Example:
Device# show ospfv3 graceful-restart
Step 7 show ospfv3 [process-id] [area-id] [address-family] interface [type Displays OSPFv3-related interface
number] [brief] information.
Example:
Device# show ospfv3 interface
Example:
Device# show ospfv3 neighbor
Step 9 show ospfv3 [process-id] [area-id] [address-family] Displays a list of all LSAs requested by a
request-list[neighbor] [interface] [interface-neighbor] device.
Example:
Device# show ospfv3 request-list
Step 10 show ospfv3 [process-id] [area-id] [address-family] Displays a list of all LSAs waiting to be
retransmission-list [neighbor] [interface] [interface-neighbor] re-sent.
Example:
Device# show ospfv3 retransmission-list
Step 11 show ospfv3 [process-id] [address-family] statistic [detail] Displays OSPFv3 SPF calculation statistics.
Example:
Device# show ospfv3 statistic
Step 12 show ospfv3 [process-id] [address-family] summary-prefix Displays a list of all summary address
redistribution information configured under
Example: an OSPFv3 process.
Step 13 show ospfv3 [process-id] [address-family] timers rate-limit Displays all of the LSAs in the rate limit
queue.
Example:
Device# show ospfv3 timers rate-limit
Step 14 show ospfv3 [process-id] [address-family] traffic[interface-type Displays OSPFv3 traffic statistics.
interface-number]
Example:
Device# show ospfv3 traffic
Step 15 show ospfv3 [process-id] [address-family] virtual-links Displays parameters and the current state of
OSPFv3 virtual links.
Example:
Device# show ospfv3 virtual-links
Additional References
Related Documents
Standard/RFC Title
RFCs for IPv6 IPv6 RFCs
MIBs
Technical Assistance
Description Link
The Cisco Support and Documentation website http://www.cisco.com/cisco/web/support/index.html
provides online resources to download documentation,
software, and tools. Use these resources to install and
configure the software and to troubleshoot and resolve
technical issues with Cisco products and technologies.
Access to most tools on the Cisco Support and
Documentation website requires a Cisco.com user ID
and password.