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


Tracing ICMP Protocol Traffic

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

[edit protocols router-discovery]
traceoptions { 
    file name <replace> <size size> <files number> <no-stamp> 
        <(world-readable | no-world-readable)>;
    flag flag <flag-modifier> <disable>; 
}

For a list of hierarchy levels at which you can configure these statements, see the statement summary sections for these statements.

You can specify the following ICMP-specific options in the ICMP flag statement:

You can specify the following global flag options:

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

Example: Tracing ICMP Protocol Traffic

Trace only unusual or abnormal operations to a file called routing-log, and trace router discovery state transitions to a file called icmp-log:

[edit]
routing-options {
    traceoptions {
        file routing-log;
    }
}
protocols {
    router-discovery { 
        traceoptions {
            file icmp-log;
            flag state;
        }
    }
} 

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