Tracing MLD Protocol Traffic
To trace MLD protocol traffic, you can specify options in the global
traceoptionsstatement at the[edit routing-options]or[edit logical-routerslogical-router-namerouting-options]hierarchy level, and you can specify MLD-specific options by including thetraceoptionsstatement:traceoptions{filename<replace> <sizesize> <filesnumber> <no-stamp><(world-readable | no-world-readable)>;flagflag<flag-modifier> <disable>;}You can specify the following MLD-specific options in the MLD
flagstatement:
leave—Trace leave-group messages (for version 2 only).mtrace—Trace mtrace packets. Use themtracecommand to troubleshoot the software.packets—Trace all MLD packets.query—Trace MLD 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 System Basics Management Command Reference.For information about tracing and global tracing options, see the JUNOS Routing Protocols Configuration Guide.
Example: Tracing MLD Protocol Traffic
Trace only unusual or abnormal operations to
routing-log, and trace all MLD packets tomld-log:[edit]routing-options {traceoptions {file routing-log;flag errors;}}protocols {mld {traceoptions {file mld-log;flag packets;}}}