OSPF Configuration Guidelines
To configure Open Shortest Path First version 2 (OSPF), you include statements at the
[edit protocols ospf]hierarchy level of the configuration. To configure routing instances, include statements at the[routing-instancesrouting-instance-nameprotocols ospf]hierarchy level.protocols {ospf {disable;domain-iddomain-id;domain-vpn-tagnumber;export [policy-names];external-preferencepreference;graceful-restart {disable;helper-disable;notify-durationseconds;restart-durationseconds;}overload { <timeoutseconds> ; }preferencepreference;rib-groupgroup-name;reference-bandwidthreference-bandwidth;route-type-community (vendor | iana);traffic-engineering {no-topology;shortcuts;}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>;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)}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;}}}}To configure OSPF version 3, you include statements at the
[edit protocols ospf3]hierarchy level of the configuration:protocols {ospf3 {disable;export [policy-names];external-preferencepreference;overload { <timeoutseconds> ; }preferencepreference;reference-bandwidthreference-bandwidth;rib-groupgroup-name;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;}}}}By default, OSPFv2 and OSPFv3 are disabled.
In this chapter, 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 the Priority for Becoming the Designated Router
- Configure Route Summarization
- Modify the Interface Metric
- Configure Route Preferences
- Configure OSPF Timers
- Configure Graceful Restart
- 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
- Trace OSPF Protocol Traffic