Configuration Guide
IP Multicast Configuration
Multicast VLAN Configuration
9 min
introduction introduction when users in different vlans have the same multicast data requirements, the upstream router needs to send multiple copies of the same multicast packet, each carrying a different vlan, to different vlans with multicast vlan functionality deployed on layer 2 devices, the upstream router no longer needs to replicate the multicast stream in each user vlan instead, the data stream is duplicated within the multicast vlan and then sent to the layer 2 devices this approach avoids unnecessary duplication of multicast streams on the upstream router, saving network bandwidth and reducing the burden on the upstream router explanation of principles explanation of principles in a multicast vlan, vlans are divided into multicast vlans and user vlans the multicast vlan is the vlan to which the interfaces connected to multicast sources belong, used to aggregate multicast streams the user vlan is the vlan to which multicast member hosts belong, used to receive multicast traffic from the multicast vlan multiple user vlans can be bound to a multicast vlan the implementation process of multicast vlan functionality consists of two parts protocol message forwarding and multicast data forwarding protocol message forwarding replace the tag of igmp report messages from user vlans with the tag of the corresponding multicast vlan and send them out from the router ports of the multicast vlan replace the tag of igmp query messages from the multicast vlan with the tag of the corresponding user vlan and send them out from the member ports of the user vlan merge the learned entries from igmp snooping in user vlans into the multicast vlan multicast data forwarding if the forwarding table entry corresponding to the multicast vlan is found, the outgoing ports and outgoing port vlan ids can be determined then, the data packet is copied and sent to each member port in each user vlan if the corresponding forwarding table entry is not found, the data packet will be discarded or broadcast according to user policy multicast vlan configuration multicast vlan configuration operation command description enter the system configuration view configure configure the multicast vlan vlan mvlan multicast vlan user vlan multicast vlan multicast vlan user vlan user vlan, supports configuring multiple vlans separated by commas ',' or configuring a range using ' ' display and maintenance display and maintenance operation command view multicast vlan configuration show vlan mvlan vlan id vlan id configuration example configuration example network requirements network requirements the service vlan used to transmit multicast data between router and device is vlan 10, while the downstream user hosts belong to vlan 100 and vlan 200 respectively, and all need to receive multicast data from multicast source by configuring the multicast vlan one to one multifunction based on user vlans, for multiple copies of the same multicast demand from different user hosts, router only needs to send one copy of multicast data to vlan 10, reducing the bandwidth waste between router and device procedure procedure create a vlan and enable igmp snooping sonic(config)# vlan 100 sonic(config vlan 100)# igmp snooping enable sonic(config)# vlan 200 sonic(config vlan 200)# igmp snooping enable create a multicast vlan and enable igmp snooping sonic(config)# vlan 10 sonic(config vlan 10)# igmp snooping enable add the interface to the specified vlan sonic(config)# vlan 100 sonic(config)# vlan 200 sonic(config)# vlan 10 sonic(config)# interface ethernet 1 sonic(config if 1) switchport access vlan 100 sonic(config)# interface ethernet 2 sonic(config if 2) switchport access vlan 100 sonic(config)# interface ethernet 3 sonic(config if 3) switchport access vlan 200 sonic(config)# interface ethernet 4 sonic(config if 4) switchport access vlan 200 sonic(config)# interface ethernet 50 sonic(config if 50) switchport access vlan 10 bind user vlan100, vlan200 under multicast vlan sonic(config)# vlan mvlan 20 200,201 verify configuration verify configuration view multicast vlan configuration sonic# show vlan mvlan + + + \| mvlan id | uvlan ids | +=============+=============+ \| 20 | 200 | \| | 100 | + + +
