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


OSPF Configuration Guidelines

To configure Open Shortest Path First version 2 (OSPF), you include the following statements:

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 >;
                bfd-liveness-detection {
                    minimum-interval milliseconds;
                    minimum-receive-interval milliseconds;
                    minimum-transmit-interval milliseconds;
                    multiplier number;
                }
                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 ;
            }
            sham-link {
                local-endpoint address;
                remote-endpoint address {
                    metric metric;
                }
            }
            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 ;
            }
        }
    }
}

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-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 ;
            }
        }
    }
}

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:


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