Configuring OSPF on a port or VLAN

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 Interface Configuration mode:

    enable

    configure terminal

    interface GigabitEthernet {slot/port[/sub-port][-slot/port[/sub-port]][,...]} or interface vlan <1–4059>

    Note

    Note

    If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.

  2. Create an OSPF area on the interface:

    ipv6 ospf area {A.B.C.D}

  3. Enable OSPFv3 on the interface:

    ipv6 ospf enable

    The default is disabled.

  4. Configure optional parameters to meet your requirements:
    1. Configure the interface metric:

      ipv6 ospf cost <0-65535>

      The default for a brouter port or VLAN is 1.

      Note

      Note

      If you do not specify a cost for the interface, the switch dynamically updates the interface cost with the configured global OSPF default cost. The global OSPF default cost depends on the speed of the interface.

    2. Configure the router dead interval:

      ipv6 ospf dead-interval <1-65535>

      The default is 40 seconds.

    3. Configure the hello interval:

      ipv6 ospf hello-interval <1-65535>

      The default is 10 seconds.

    4. Configure the link LSA suppression:

      ipv6 ospf link-lsa-suppression

      Note

      Note

      Before configuring Link LSA suppression for OSPF, configure Link LSA suppression for OSPF area for point to point (p2p) or point to multipoint interfaces (p2mp), otherwise it defaults to a broadcast interface type where you cannot use Link LSA suppression. 

    5. Configure the poll interval:

      ipv6 ospf poll-interval <0-65535>

      The default is 120 seconds.

    6. Configure the interface priority:

      ipv6 ospf priority <0-255>

      The default is 1.

    7. Configure the retransmit interval:

      ipv6 ospf retransmit-interval <1-1800>

      The default is 5 seconds.

    8. Configure the transit delay:

      ipv6 ospf transit-delay <1-1800>

      The default is 1 second.

Example

Create an OSPF area on the interface:

Switch:1(config-if)#ipv6 ospf area 0.0.0.0

Enable OSPFv3 on the interface:

Switch:1(config-if)#ipv6 ospf enable 

Variable Definitions

Use the data in the following table to use the ipv6 ospf command.

Variable

Value

area {A.B.C.D}

Specifies the area ID to which the IPv6 interface connects. Use 0.0.0.0 for the OSPFv3 backbone.

cost <0-65535>

Specifies the cost for the interface.

The default for a brouter port or VLAN is 1.

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. 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 interal route to some areas.

If you disable the status, the interface is external to OSPFv3.

The default is disabled.

hello-interval <1-65535>

Specifies the number of seconds between hello packets that the router sends on this interface. Configure the same value on the virtual neighbor.

The default is 10 seconds.

link-lsa-suppression

Configures link LSA suppression on the specified port or VLAN. It is only used for point to point or point to multipoint interfaces. By default, it is disabled.

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 chance 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 router ID determines 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. This 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 to transmit a link-state update packet over this interface.

The default is 1 second.

Use the data in the following table to use the interface command.

Variable

Value

<1-4059>

Specifies the VLAN ID in the range of 1 to 4059. By default, VLAN IDs 1 to 4059 are configurable and the system reserves VLAN IDs 4060 to 4094 for internal use. On switches that support the vrf-scaling and spbm-config-mode boot configuration flags, if you enable these flags, the system also reserves VLAN IDs 3500 to 3998. VLAN ID 1 is the default VLAN and you cannot create or delete VLAN ID 1.

{slot/port[/sub-port][-slot/port[/sub-port]][,...]}

Identifies the slot and port in one of the following formats: a single slot and port (slot/port), a range of slots and ports (slot/port-slot/port), or a series of slots and ports (slot/port,slot/port,slot/port). If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.