To configure OSPF, you include statements at the [edit protocols ospf] hierarchy level of the configuration.
protocols {
ospf {
disable;
export [policy-names];
external-preference preference;
preference preference;
rib-group routing-table-group-name;
reference-bandwidth reference-bandwidth;
traffic-engineering {
no-topology;
shortcuts;
}
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;
transmit-interval seconds;
}
nssa {
area-range network/mask-length <restrict>;
default-metric metric;
(summaries | no-summaries);
}
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;
}
}
}
}
This chapter describes the following tasks for configuring OSPF: