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

Tracing OSPF Protocol Traffic

To trace OSPF protocol traffic, you can specify options with the global traceoptions statement included at the [edit routing-options] hierarchy level, and you can specify OSPF-specific options by including the traceoptions statement:

(ospf | ospf3) {
traceoptions {
file filename <size size> <files number> <world-readable | no-world-readable>;
flag flag <flag-modifier> <disable>;
}
}

For a list of hierarchy levels at which you can configure this statement, see the statement summary section for this statement.

You can specify the following OSPF-specific trace flags in the OSPF traceoptions statement:

For general information about tracing and global tracing options, see Tracing Global Routing Protocol Operations.

Examples: Tracing OSPF Protocol Traffic

Trace only unusual or abnormal operations to the file routing-log, and trace detailed information about all OSPF packets to the file ospf-log:

[edit]
routing-options {
traceoptions {
file routing-log;
}
}
protocols {
ospf {
traceoptions {
file ospf-log size 10k files 5;
flag lsa-ack;
flag database-description;
flag hello;
flag lsa-update;
flag lsa-request;
}
area 0.0.0.0 {
interface 10.0.0.1;
}
}
}

Trace SPF calculations:

[edit]
protocols {
ospf {
traceoptions {
file ospf-log;
flag spf;
}
area 0.0.0.0 {
interface 10.0.0.1;
}
}
}

Trace the creation, receipt, and retransmission of all link-state advertisements:

[edit]
protocols {
ospf {
traceoptions {
file ospf-log;
flag lsa-request;
flag lsa-update;
flag lsa-ack;
area 0.0.0.0 {
interface 10.0.0.1;
}
}
}
}

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