Configure OSPF on a Tunnel
Configure the OSPF protocol on IPv6 interface to support dynamic routing on the interface.
Before you begin
The IPv6 interface must exist.
Procedure
Example
Create an OSPF area on the interface:
Switch:1(config-if)#ipv6 tunnel 4 area 0.0.0.0
Enable OSPFv3 on the interface:
Switch:1(config-if)#ipv6 tunnel 4 enable
Variable definitions
Use the data in the following table to use the ipv6 tunnel command.
Variable |
Value |
---|---|
<1–2000> |
Specifies the tunnel ID. |
area {A.B.C.D} |
Specifies the area ID to which the IPv6 interface connects. Use 0.0.0.0 for the OSPFv3 backbone. |
dead-interval <1-65535> |
Specifies the number of seconds after which the neighbor declares the router down if it does not receive hello packets. Configure this value as a multiple of the hello interval. Tip:
You must configure the same value on the virtual neighbor. The default is 40 seconds. |
enable |
Specifies the administrative status for the OSPFv3 interface. If you enable the status, it is advertised as an internal route to some areas. If you disable the status, the interface is external to OSPFv3. The default is enabled. |
hello-interval <1-65535> |
Specifies the number of seconds between hello packets that the router sends on this interface. Tip:
You must configure the same value on the virtual neighbor. The default is 10 seconds. |
metric <0-65535> |
Specifies the cost for the interface. The default for a tunnel is 100. |
poll-interval <0-65535> |
Specifies the number of seconds between hello packets sent to an inactive NBMA neighbor. The default is 120. |
priority <0-255> |
Specifies the priority of this interface. Multiaccess networks use the priority in the designated router election. A higher priority value increases the likelihood that the router becomes the designated router. A value of zero (0) indicates the router cannot become the designated router for the network. If more than one router uses the same priority value, the system uses the router ID to determine which router becomes the designated router. The default is 1. |
retransmit-interval <1-1800> |
Specifies the number of seconds between link-state advertisement retransmissions for adjacencies that belong to this interface. The retransmit-interval value also applies to the retransmissions of database description and link-state request packets. The default is 5 seconds. |
transit-delay <1-1800> |
Specifies the estimated number of seconds required to transmit a link-state update packet over this interface. The default is 1 second. |