OSPF Configuration Guidelines
To configure Open Shortest Path First version 2 (OSPF), you include the following statements:
protocols {ospf {disable;export [policy-names];external-preferencepreference;graceful-restart {disable;helper-disable;notify-durationseconds;restart-durationseconds;}overload { <timeoutseconds> ; }preferencepreference;prefix-export-limit;rib-groupgroup-name;reference-bandwidthreference-bandwidth;spf-delay;traffic-engineering {no-topology;shortcuts {lsp-metric-into-summary;}}traceoptions {filename<replace> <sizesize> <filesnumber> <no-stamp><(world-readable | no-world-readable)>;flagflag<flag-modifier> <disable>;}areaarea-id{area-rangenetwork/mask-length<restrict>;authentication-typeauthentication;interfaceinterface-name{disable;authentication-keykey<key-ididentifier>;bfd-liveness-detection {minimum-intervalmilliseconds;minimum-receive-intervalmilliseconds;minimum-transmit-intervalmilliseconds;multipliernumber;}dead-intervalseconds;hello-intervalseconds;interface-typetype;metricmetric;neighboraddress<eligible>;passive;poll-intervalseconds;prioritynumber;retransmit-intervalseconds;transit-delayseconds;}label-switched-pathnamemetricmetric;nssa {area-rangenetwork/mask-length<restrict>;default-lsa {default-metricmetric;metric-typetype;type-7;}(no-summaries | summaries);}peer-interfaceinterface-name{disable;dead-intervalseconds;hello-intervalseconds;retransmit-intervalseconds;transit-delayseconds;}sham-link {local-endpointaddress;remote-endpointaddress{metricmetric;}}stub <default-metricmetric> <summaries | no-summaries>;virtual-link neighbor-idrouter-idtransit-areaarea-id{disable;authentication-keykey<key-ididentifier>;dead-intervalseconds;hello-intervalseconds;retransmit-intervalseconds;transit-delayseconds;}}}}For a list of hierarchy levels at which you can configure these statements, see the statement summary sections for these statements.
To configure OSPF version 3 (OSPFv3), you include the following statements:
protocols {ospf3 {disable;export [policy-names];external-preferencepreference;graceful-restart {disable;helper-disable;notify-durationseconds;restart-durationseconds;}overload { <timeoutseconds> ; }preferencepreference;prefix-export-limit;reference-bandwidthreference-bandwidth;rib-groupgroup-name;spf-delay;traceoptions {filename<replace> <sizesize> <filesnumber> <no-stamp><(world-readable | no-world-readable)>;flagflag<flag-modifier> <disable>;}areaarea-id{area-rangenetwork/mask-length<restrict>;interfaceinterface-name{disable;dead-intervalseconds;hello-intervalseconds;metricmetric;passive;prioritynumber;retransmit-intervalseconds;transit-delayseconds;}nssa {area-rangenetwork/mask-length<restrict>;default-lsa {default-metricmetric;metric-typetype;type-7;}(no-summaries | summaries);}stub <default-metricmetric> <summaries | no-summaries>;virtual-link neighbor-idrouter-idtransit-areaarea-id{disable;dead-intervalseconds;hello-intervalseconds;retransmit-intervalseconds;transit-delayseconds;}}}}For a list of hierarchy levels at which you can configure these statements, see the statement summary sections for these statements.
By default, OSPFv2 and OSPFv3 are disabled.
NOTE: In this manual, the term OSPF refers to both OSPFv2 and OSPFv3.
This chapter describes the following tasks for configuring OSPF:
- Minimum OSPF Configuration
- Configure the Backbone Area and Other Areas
- Configure OSPF on Router Interfaces
- Configure Authentication
- Configure a Prefix Export Limit
- Configure the Priority for Becoming the Designated Router
- Configure Route Summarization
- Modify the Interface Metric
- Configure Route Preferences
- Configure OSPF Timers
- Configure the BFD Protocol
- Configure Graceful Restart
- Configure the SPF Delay
- Advertise Interface Addresses without Running OSPF
- Advertise Label-Switched Paths into OSPF
- Configure the Router to Appear Overloaded
- Enable OSPF Traffic Engineering Support
- Configure OSPF Routing Policy
- Configure OSPF Routing Table Groups
- Configure a Sham Link
- Configure a Peer Interface
- Trace OSPF Protocol Traffic