Use this command to configure multicast routes across routing-enabled VLANs the same way a Multicast Routing Protocol such as PIM does dynamically. You can configure only IPv4 multicast routes on VLAN routing interfaces. The command provides the option to configure one or more Static Multicast Routes by specifying a multicast Group IP and a single, or a list of, VLAN interfaces.
| Format | ip mroute static-multicast group-ip-addr vlan-list |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| group-ip-addr | Specify the multicast Group IP. |
| vlan-list | Configures the routing-enabled VLAN interface. The range of the VLAN ID is 1 to 4093. |
Example: A static multicast route can be created for Group ID 225.1.1.2 and you can specify VLAN 10, 20, and 30 as the egress list. If multicast data traffic (with TTL > 1) is received from any of these VLANs, for example VLAN 10, the traffic is routed to VLAN 20 and 30. The traffic is also switched on VLAN 10 ports.
If the multicast traffic is received from a different VLAN, for example, VLAN 40, the multicast traffic is only routed to VLAN 10, 20, and 30. Because VLAN 40 is not part of the command egress list, traffic is not switched in this VLAN. This is irrespective of IGMP Snooping and MLD Snooping being enabled or disabled.
Example: This IP Multicast Static Route feature can also be used to switch traffic within a single VLAN. To achieve that, provide a single VLAN in the command egress VLAN list. When traffic is received on this VLAN, it is switched within this VLAN. Again, this is irrespective of IGMP Snooping and MLD Snooping being enabled or disabled.
The hardware L3 entries (IP multicast) that this feature creates are time bound. If traffic stops for more than 210 seconds, the corresponding entry is deleted. The hardware entry is recreated as soon as the traffic resumes again. This is done to use the limited IP multicast table in hardware in the most efficient way.
It is not allowed to configure two static multicast routes with the same Group IP, even though the VLAN list differs. If you want to change the VLAN list for a given static route, delete the existing static route and create a new one with an updated VLAN list.
However, the same VLAN can be part of any number of static multicast routes.
No default list of static multicast routes exists in the switch. You must configure them to use.