[Contents] [Prev] [Next] [Index] [Report an Error]


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-instances routing-instance-name protocols ospf] hierarchy level.

protocols {
    ospf { 
        disable; 
        export [ policy-names ];
        external-preference preference;
        graceful-restart {
            disable;
            helper-disable;
            notify-duration seconds;
            restart-duration seconds;
        }
        overload { 

            <timeout seconds>;

        } 
        preference preference;
        prefix-export-limit;
        rib-group group-name; 
        reference-bandwidth reference-bandwidth; 
        spf-delay;
        traffic-engineering {
            no-topology;
            shortcuts {
                lsp-metric-into-summary;
            }
        }
        traceoptions {
            file name <replace> <size size> <files number> <no-stamp> 
                <(world-readable | no-world-readable)>;
            flag flag <flag-modifier> <disable>; 
        }
        area area-id {
            area-range network/mask-length <restrict>;
            authentication-type authentication; 
            interface interface-name {
                disable;
                authentication-key key <key-id identifier>;
                dead-interval seconds;
                hello-interval seconds;
                interface-type type;
                metric metric;
                neighbor address <eligible>;
                passive;
                poll-interval seconds;
                priority number;
                retransmit-interval seconds;
                transit-delay seconds;
            }
            label-switched-path name metric metric;
            nssa {
                area-range network/mask-length <restrict>;
                default-lsa {
                    default-metric metric;
                    metric-type type;
                    type-7;
                }
                (no-summaries | summaries)
            }
            peer-interface interface-name {
                disable;
                dead-interval seconds;
                hello-interval seconds;
                retransmit-interval seconds;
                transit-delay seconds;
            }
            stub <default-metric metric> <summaries | no-summaries>;
            virtual-link neighbor-id router-id transit-area area-id {
                disable;
                authentication-key key <key-id identifier>;
                dead-interval seconds;
                hello-interval seconds;
                retransmit-interval seconds;
                transit-delay seconds;
            }
        }
    }
}

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-preference preference;
        graceful-restart {
            disable;
            helper-disable;
            notify-duration seconds;
            restart-duration seconds;
        }
        overload { 

            <timeout seconds>;

        } 
        preference preference;
        prefix-export-limit;
        reference-bandwidth reference-bandwidth; 
        rib-group group-name; 
        spf-delay;
        traceoptions {
            file name <replace> <size size> <files number> <no-stamp> 
                <(world-readable | no-world-readable)>;
            flag flag <flag-modifier> <disable>; 
        }
        area area-id {
            area-range network/mask-length <restrict>;
            interface interface-name {
                disable;
                dead-interval seconds;
                hello-interval seconds;
                metric metric;
                passive;
                priority number;
                retransmit-interval seconds;
                transit-delay seconds;
            }
            nssa {
                area-range network/mask-length <restrict>;
                default-lsa {
                    default-metric metric;
                    metric-type type;
                    type-7;
                }
                (no-summaries | summaries)
            }
            stub <default-metric metric> <summaries | no-summaries>;
            virtual-link neighbor-id router-id transit-area area-id {
                disable;
                dead-interval seconds;
                hello-interval seconds;
                retransmit-interval seconds;
                transit-delay seconds;
            }
        }
    }
}

By default, OSPFv2 and OSPFv3 are disabled.


In this manual, the term OSPF refers to both OSPFv2 and OSPFv3.


This chapter describes the following tasks for configuring OSPF:


[Contents] [Prev] [Next] [Index] [Report an Error]