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
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. |