Tracing IGMP Protocol Traffic
To trace IGMP protocol traffic, you can specify options in the global
traceoptionsstatement at the[edit routing-options]or[edit logical-routerslogical-router-namerouting-options]hierarchy level.You can specify IGMP-specific options by including the
traceoptionsstatement:traceoptions {filename<replace> <sizesize> <filesnumber> <no-stamp><(world-readable | no-world-readable)>;flagflag<flag-modifier> <disable>;}You can specify the following IGMP-specific options in the IGMP
flagstatement:
leave—Trace leave-group messages (for IGMP version 2 only).mtrace—Trace mtrace packets. Use themtracecommand to troubleshoot the software.packets—Trace all IGMP packets.query—Trace IGMP membership query messages, including general and group-specific queries.report—Trace membership report messages.You can configure this statement at the following hierarchy levels:
To trace the paths of multicast packets, use the
mtracecommand, as described in the JUNOS Protocols, Class of Service, and Systems Basics Management Command Reference.For information about tracing and global tracing options, see the JUNOS Routing Protocols Configuration Guide.
Example: Tracing IGMP Protocol Traffic
Trace only unusual or abnormal operations to
routing-log, and trace all IGMP packets toigmp-log:[edit]routing-options {traceoptions {file routing-log;flag errors;}}protocols {igmp {traceoptions {file igmp-log;flag packets;}}}