To trace IGMP protocol traffic, specify options to the traceoptions statement at the [edit routing-options] or [edit logical-systems logical-system-name routing-options] hierarchy level. Options applied at the routing options level trace all packets, and options applied at the protocol level trace only IGMP traffic.
You can specify IGMP-specific options by including the traceoptions statement:
-
traceoptions {
- file filename <replace> <size size> <files number> <no-stamp>
<world-readable | no-world-readable>;
- flag flag <flag-modifier> <disable>;
- }
You can include this statement at the following hierarchy levels:
You can specify the following IGMP-specific options in the IGMP flag statement:
To trace the paths of multicast packets, use the mtrace command, as described in the JUNOS System Basics and Services Command Reference.
For information about tracing and global tracing options, see the JUNOS Routing Protocols Configuration Guide.
Trace only unusual or abnormal operations to the file routing-log, and trace all IGMP packets to the file igmp-log:
- [edit]
- routing-options {
-
- traceoptions {
- file routing-log;
- flag errors;
- }
- }
- protocols {
-
-
igmp {
-
- traceoptions {
- file igmp-log;
- flag packets;
- }
- }
- }