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;}import [policy-names];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 {md5key-id;simple-passwordkey-id;}bfd-liveness-detection {minimum-intervalmilliseconds;minimum-receive-intervalmilliseconds;minimum-transmit-intervalmilliseconds;multipliernumber;}dead-intervalseconds;hello-intervalseconds;interface-typetype;metricmetric;neighboraddress<eligible>;passive;p2p;poll-intervalseconds;prioritynumber;retransmit-intervalseconds;te-metricmetric;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 {md5 key-id;simple-password key-id;}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;}import [policy-names];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
- Configuring the Backbone Area and Other Areas
- Configuring OSPF on Router Interfaces
- Configuring Authentication
- Configuring a Prefix Export Limit
- Configuring the Priority for Becoming the Designated Router
- Configuring Route Summarization
- Modifying the Interface Metric
- Configuring Route Preferences
- Configuring OSPF Timers
- Configuring the BFD Protocol
- Configuring Graceful Restart
- Configuring the SPF Delay
- Advertising Interface Addresses Without Running OSPF
- Advertising Label-Switched Paths into OSPF
- Configuring the Router to Appear Overloaded
- Enabling OSPF Traffic Engineering Support
- Modifying the Traffic Engineering Metric
- Configuring OSPF Routing Policy
- Configuring OSPF Routing Table Groups
- Configuring a Sham Link
- Configuring a Peer Interface
- Configuring Point-to-Point Adjacency over LAN Interfaces
- Tracing OSPF Protocol Traffic