Command Line Reference
IP Multicast
MLD Snooping Configuration
22 min
show vlan mld snooping show vlan mld snooping \[command] show vlan mld snooping \[ vlan id ] \[purpose] display mld snooping information \[view] system view \[use cases] sonic(config)# do show vlan mld snooping + + + + + + + + + + + + \| vlan id | mld snp | proxy | version | fast leave | querier | querier ip | robustness | query interval(s) | last member query interval(ms) | query max response time(s) | +===========+===========+==========+===========+==============+===========+==============+==============+=====================+==================================+==============================+ \| 10 | enabled | disabled | 1 | disabled | disabled | 0 0 0 0 | 2 | 125 | 1000 | 10 | + + + + + + + + + + + + show vlan mld snooping mrouter aging show vlan mld snooping mrouter aging \[command] show vlan mld snooping mrouter aging \[purpose] show router port aging time for mld snooping \[view] system view \[use cases] sonic# show vlan mld snooping mrouter aging + + + \| vlan id | aging time | +===========+==============+ \| 10 | 180 | + + + show vlan mld snooping mrouter show vlan mld snooping mrouter \[command] show vlan mld snooping mrouter \[purpose] display the router port information of mld snooping \[view] system view \[use cases] sonic# show vlan mld snooping mrouter + + + + \| vlan id | mrouter | type | +===========+===========+========+ \| 10 | ethernet5 | static | + + + + mld snooping enable mld snooping enable \[command] mld snooping enable no mld snooping enable \[purpose] enable mld snooping for vlan \[view] vlan view \[usage scenario] mld snooping operates on a layer 2 switching network between routers and user terminals it maintains multicast forwarding tables by listening to ipv6 multicast protocol messages from routers and user terminals, allowing multicast packets to be broadcast between specified interfaces within the vlan \[use cases] sonic(config)# vlan 20 sonic(config vlan 20)# mld snooping enable mld snooping version mld snooping version \[command] mld snooping version 1 2 \[purpose] configure the mld version \[view] vlan view \[use cases] sonic(config vlan 10)# mld snooping version 1 mld snooping proxy enable mld snooping proxy enable \[command] mld snooping proxy enable \[purpose] enable mld snooping proxy for vlan \[view] vlan view \[usage scenario] enabling mld snooping proxy functionality allows the switch to substitute for routers in sending mld query messages and receiving mld report/leave messages from users this alleviates the burden on router devices when there are numerous terminals in the network \[use cases] sonic(config)# vlan 20 sonic(config vlan 20)# mld snooping proxy enable mld snooping querier enable mld snooping querier enable \[command] mld snooping querier enable \[purpose] enable mld querier functionality \[view] vlan view \[usage scenario] configuring a querier on the device allows it to replace upstream devices in sending mld query messages the device will periodically broadcast mld query messages to all interfaces within the vlan, including router ports \[notes] if an mld querier already exists in the multicast network, it may trigger a re election of the mld querier \[use cases] sonic(config)# vlan 20 sonic(config vlan 20)# mld snooping proxy enable mld snooping querier ip mld snooping querier ip \[command] mld snooping querier ip x\ x x \ x no mld snooping querier ip x\ x x \ x \[purpose] configuring the source ip address of mld query messages \[view] vlan view \[usage scenario] when there are multiple queriers in the network, you can control the selection of the querier by modifying the ip address of the device's query messages \[use cases] sonic(config)# vlan 10 sonic(config vlan 10)# mld snooping querier enable sonic(config vlan 10)# mld snooping querier ip 1000 1 mld snooping fast leave enable mld snooping fast leave enable \[command] mld snooping fast leave enable no mld snooping fast leave enable \[purpose] enable fast leave of multicast groups on member interfaces \[view] vlan view \[usage scenario] upon receiving an mld leave message from a host indicating departure from a multicast group, the corresponding multicast forwarding table entry for that host is removed immediately without waiting for aging time \[use cases] sonic(config)# vlan 10 sonic(config vlan 10)# mld snooping fast leave enable mld snooping robustness mld snooping robustness \[command] mld snooping robustness count \[purpose] configure robustness \[parameter] parameter description count default 2, range 1 255 \[view] vlan view \[usage scenario] this command adjusts robustness in two ways adjusts the number of specific group query messages sent by the querier to avoid potential network packet loss when an mld leave message is received from a user for a specific multicast group, the command sends a specific group query message for a configured number of times, inquiring whether there are still members in that multicast group adjusts the member aging time after receiving a report message from a downstream host, the member aging time is set to specific group query message count × general query message interval for downstream hosts to reply to the querier \[use cases] sonic(config)# vlan 10 sonic(config vlan 10)# mld snooping robustness 100 mld snooping query interval mld snooping query interval \[command] mld snooping query interval interval \[purpose] configure the interval at which the device sends general query messages \[parameter] parameter description interval unit s, the default value is 125s,range 1 18000 \[view] vlan view \[use cases] sonic(config)# vlan 10 sonic(config vlan 10)# mld snooping query interval 200 mld snooping query max response time mld snooping query max response time \[command] mld snooping query max response time time \[purpose] configure the maximum response time for query messages \[parameter] parameter description time unit s, the default value is 10s, range 1 25 \[view] vlan view \[notes] it should be ensured that the interval at which the querier sends general query messages is greater than the maximum response time for downstream hosts to reply to the querier otherwise, there is a possibility of the device mistakenly deleting entries in the member table \[use cases] sonic(config)# vlan 10 sonic(config vlan 10)# mld snooping query max response time 20 mld snooping last member query interval mld snooping last member query interval \[command] mld snooping last member query interval last query interval \[purpose] configure the interval at which the querier sends specific group query messages \[parameter] parameter description last query interval unit ms, the default value is 1000ms,range 100 25500 \[use cases] sonic(config)# vlan 10 sonic(config vlan 10)# mld snooping last member query interval 2000 interface l2mc static group interface l2mc static group \[command] interface l2mc static group etherne interface name vlan id x\ x x \ x no interface l2mc static group ethernet interface name vlan id x\ x x \ x \[purpose] static addition of interfaces to multicast groups \[parameter] parameter description interface name interface name vlan id vlan id of the interface x\ x x \ x interface statically added multicast group address \[view] system configuration view \[notes] after configuring the interface to statically add a multicast group, users under the interface can receive multicast data from the group in a long term and stable manner, and need to enable the mld snooping function \[use cases] sonic(config)# interface l2mc static group ethernet 11 10 ff1e 0 0 0 0 0 0 1 mld snooping mrouter aging mld snooping mrouter aging \[command] mld snooping mrouter aging time \[purpose] configure dynamic router port aging time within a vlan \[parameter] parameter description time value range 1 1000, unit s, default is 180 seconds \[view] system configuration view \[notes] within the aging time of the dynamic router port, if no mld query or pim hello messages are received, it is considered that this port no longer belongs to the router port \[use cases] sonic(config)# vlan 20 sonic(config vlan 20)# mld snooping mrouter aging 10 mld snooping mrouter ethernet mld snooping mrouter ethernet \[command] mld snooping mrouter ethernet interface name no mld snooping mrouter ethernet interface name \[purpose] configure the interface as a static router port for vlan \[view] vlan view \[use cases] sonic(config)# vlan 10 sonic(config vlan 10)# mld snooping mrouter ethernet 1
