Configuring 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

  1. Enter OSPF Router Configuration mode:

    enable

    configure terminal

    router ospf

  2. Create an OSPF area on the interface:

    ipv6 tunnel <1–2000> area {A.B.C.D}

  3. Enable OSPFv3 on the interface:

    ipv6 tunnel <1–2000> enable

  4. Configure optional parameters to meet your requirements:
    1. Configure the router dead interval:

      ipv6 tunnel <1–2000> dead-interval <1-65535>

      The default is 40 seconds.

    2. Configure the hello interval:

      ipv6 tunnel <1–2000> hello-interval <1-65535>

      The default is 10 seconds.

    3. Configure the interface metric:

      ipv6 tunnel <1–2000> metric <0-65535>

    4. Configure the poll interval:

      ipv6 tunnel <1–2000> poll-interval <0-65535>

      The default is 120 seconds.

    5. Configure the interface priority:

      ipv6 tunnel <1–2000> priority <0-255>

      The default is 1.

    6. Configure the retransmit interval:

      ipv6 tunnel <1–2000> retransmit-interval <1-1800>

      The default is 5 seconds.

    7. Configure the transit delay:

      ipv6 tunnel <1–2000> transit-delay <1-1800>

      The default is 1 second.

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.