Default OSPF Parameters lists OSPF parameters and their default values.
Parameter | Description | Default Value |
---|---|---|
router ID | Provides for the identification of one router to another and helps establish adjacencies among OSPF routers. | highest IP address of configured routing interfaces |
interface cost | An outbound interface value used in determining which routing interface should forward when more than one routing interface is available. | 10 |
interface priority | A value placed on the interface that helps in determining which router will be elected designated router. | 1 |
interface network type | Specifies the type of network an interface is connecting to. | broadcast |
LSA Thresholds | Specifies:
|
4294967295 Update starts 4294967295 Update restarts 50 Inter-area/external updates 0 Intra updates |
LSA Pause Frequency | Specifies the number of units SPF calculation runs before pausing. | 10000 |
SPF delay timer | Specifies the amount of time between receiving an OSPF update and the start of an SPF calculation. | 5 seconds |
retransmit interval | A timer that determines the retransmission of LSAs in order to ensure reliable flooding. | 5 seconds |
transmit delay | Specifies the number of seconds it takes to transmit a link state update packet over this interface. | 1 second |
hello interval | The period between transmissions of hello packet advertisements. | 10 seconds for broadcast and point-to-point networks; 30 seconds for non-broadcast and point-to-multipoint networks |
dead interval | The period that can elapse without receiving a router‘s hello packets before its neighbors will declare it down. | 40 seconds |
distance | Specifies the administrative distance for OSPF routes. The available protocol with the lowest administrative distance is chosen for this route. | connected = 0 static = 1 OSPF = 110 RIP = 120 |
graceful-restart | Provides for an OSPF router to remain on the forwarding path during a restart of its OSPF software. | disabled |
graceful-restart restart interval | Specifies the maximum time in seconds after which the graceful restart will terminate should it not complete or terminate for other reasons within the interval. | 120 seconds |
PE-CE Protocol | Enables the Customer Edge (CE) router as a Provider Edge (PE) router peers. | disabled |
Configuring Basic OSPF Parameters describes how to configure basic OSPF parameters. All commands in this procedure are entered in OSPF router configuration command mode, except where indicated.
Step | Task | Command(s) |
---|---|---|
1 | Configure an IP address for all routing interfaces in the AS.
|
ip address {ip-address | ip-address/prefixLength} ip-mask [primary | secondary] |
2 | Create an OSPF routing instance. | router ospf process-id |
3 | Configure the network addresses, masks, and areas for each subnet on this AS.
|
network ip-address wildcard-mask area area-id |
Configuring OSPF General Optional Parameters describes how to configure basic OSPF parameters.
Task | Command(s) |
---|---|
Optionally, change the OSPF router ID for this device. | router-id ip-address |
Optionally, enable the OSPF PE-CE protocol. | enable-pe-ce |
Optionally, configure the OSPF VRF domain tag. | domain-tag tag |
Optionally, configure the OSPF VRF domain ID. | domain-id [secondary] type type value value |
Optionally, configure the OSPF router neighbors for this router. | neighbor ip-address [priority priority] |
Optionally, change the SPF LSA thresholds for this router. | spf lsa-thresholds num-start num-restart num-intra-full num-ia-ext-full |
Optionally, change the SPF pause frequency to specify the number of units SPF calculation runs before pausing. | spf pause-frequency units |
Optionally, change the delay, in milliseconds, between the receipt of an update and the beginning of the SPF execution. | timers spf spf-delay |
Optionally, enable BFD on all OSPF interfaces (S-, K-Series). | bfd all-intfs-on |
Optionally, change the administrative distance for OSPF routes. | distance [ospf {external | intra-area}] weight |
Optionally, define the range of addresses used by this Area Border Router (ABR) when communicating routes to other areas. | area area-id range ip-address ip-mask [not-advertised] |
Optionally, configure an area as a stub area. | area area-id stub [no-summary] |
Optionally, set the cost for the default route that is sent into a stub area by an ABR. | area area-id default-cost cost |
Optionally, configure an area as a not so stubby area. | area {area-id | ip-address} nssa [no-summary] [transstabilityint seconds] [transrole always] |
Optionally, configure an Autonomous System Border Router (ASBR) to summarize Type 7 to Type 5 routes matching the specified address and mask. | area {area-id | ip-address} nssa-range ip-address mask |
Optionally, configure an OSPF sham link between two PE routers. | area area-id sham-link source-ip-address destination-ip-address |
Optionally, configure an OSPF sham link authentication key password. | area area-id sham-link source-ip-address destination-ip-address authentication-key password |
Optionally, modify the OSPF sham link dead interval. | area area-id sham-link source-ip-address destination-ip-address dead-interval seconds |
Optionally, modify the OSPF sham link hello interval. | area area-id sham-link source-ip-address destination-ip-address hello-interval seconds |
Optionally, configure the OSPF sham link keychain. | area area-id sham-link source-ip-address destination-ip-address keychain name |
Optionally, specify an OSPF sham link message digest key and MD5 authentication key. | area area-id sham-link source-ip-address destination-ip-address message-digest-key digest-key md5 auth-key |
Optionally, modify the OSPF sham link retransmit interval. | area area-id sham-link source-ip-address destination-ip-address retransmit-interval seconds |
Optionally, modify the OSPF sham link transmit delay period. | area area-id sham-link source-ip-address destination-ip-address transmit-delay seconds |
Optionally, modify the OSPF sham link cost. | area area-id sham-link source-ip-address destination-ip-address cost cost |
Optionally, configure an OSPF virtual-link, which represents a logical connection between the backbone and a non-backbone OSPF area. | area area-id virtual-link ip-address area area-id virtual-link ip-address authentication-key key area area-id virtual-link ip-address dead-interval seconds area area-id virtual-link ip-address hello-interval seconds |
area area-id virtual-link ip-address message-digest-key digest-key md5 format line auth-key area area-id virtual-link ip-address retransmit-interval seconds area area-id virtual-link ip-address transmit-delay seconds |
|
Optionally, change the bandwidth reference setting used for calculating interface cost for this OSPF instance. | auto-cost reference-bandwidth bandwidth-multiplier |
Optionally, enable passive OSPF on the specified interface. | passive-interface {vlan-id | interface-name | default} |
Optionally, allow routing information discovered through non-OSPF protocols to be distributed in OSPF update messages. | redistribute {rip | static | connected} [route-map id-number] [metric metric value] [metric-type type-value] [tag tag] |
Optionally, assign an OSPF route filter route-map to the OSPF distribute-list. | distribute-list route-map name in |
Optionally, enable the graceful-restart feature on this router. | graceful-restart enable |
Optionally, change the graceful-restart restart interval for this router. | graceful-restart restart-interval interval |
Optionally, in system command mode, reset the specified OSPF process ID or the OSPF process. | clear ip ospf process [process-id] |
Optionally, in global configuration command mode, enable OSPF protocol debugging output for the specified subsystem. | debug ip ospf {subsystem} |
Optionally, enable this OSPF router for RFC 1583 compatibility. | rfc1583compatible |
Configuring OSPF Optional Interface Parameters describes how to configure optional OSPF interface parameters. All commands in this procedure are entered in interface configuration command mode.
Step | Task | Command(s) |
---|---|---|
1 | Optionally, change the cost of sending an OSPF packet on this router interface. This setting overrides all other interface cost methods. | ip ospf cost cost |
2 | Optionally, sum the interface speeds contained in the specified tracked object when calculating the OSPF interface cost. | ip ospf cost track trackobject-name |
3 | Optionally, change the OSPF priority value for this router interface. | ip ospf priority number |
4 | Optionally, change the OSPF poll-interval value for this non-broadcast neighbor. | ip ospf poll-interval seconds |
5 | Optionally, change the amount of time between retransmissions of LSAs for adjacencies that belong to this interface. | ip ospf retransmit-interval seconds |
6 | Optionally, change the amount of time required to transmit a link state update packet on this interface. | ip ospf transmit-delay seconds |
7 | Optionally, enable the ignore MTU advertisement feature for the neighbor of this interface. | ip ospf ignore-mtu |
8 | Optionally, change the number of seconds this router must wait before sending a hello packet to neighbor routers on this interface. | ip ospf hello-interval seconds |
9 | Optionally, change the number of seconds this router must wait to receive a hello packet from its neighbor before determining that the neighbor is out of service. | ip ospf dead-interval {seconds | minimal hello-multiplier number} |
10 | Optionally, assign a password on this interface to be used by neighboring routers using OSPF‘s simple password authentication. | ip ospf authentication-key password |
11 | Optionally, enable OSPF MD5 authentication on this interface. | ip ospf message-digest-key keyid md5 key |
12 | Optionally, disable the graceful restart helper feature on this interface. | ip ospf helper-disable |
13 | Optionally, specify the network type that this interface is connected to. | ip ospf network {non-broadcast | broadcast | point-to-point | point-to-multipoint} |
Displaying OSPF Configuration and Statistics describes how to display OSPF configuration and statistics.
Task | Command(s) |
---|---|
Displaying OSPF configuration. | show ip ospf |
Displaying OSPF link state database information. | show ip ospf database [link-state-id] |
Displaying information about OSPF internal entries to area border routers and autonomous system boundary routers. | show ip ospf border-routers |
Displaying OSPF interface configuration information. | show ip ospf interface [vlan vlan-id] |
Displaying OSPF neighbor information. | show ip ospf neighbor [detail] [ip-address] [vlan vlan-id] |
Displaying OSPFv3 sham link information. | show ipv6 ospf sham-link |
Displaying OSPF virtual-links configuration information. | show ip ospf virtual-links |