The multicast static-flow command configures static flows in a multicast VLAN.
The undo multicast static-flow command deletes static flows from a multicast VLAN.
By default, no static flow is configured in multicast VLANs.
multicast static-flow { ipv4-group-address1 [ to ipv4-group-address2 ] [ source ipv4-source-address ] | ipv6 ipv6-group-address1 [ to ipv6-group-address2 ] [ source ipv6-source-address ] }
undo multicast static-flow { ipv4-group-address1 [ to ipv4-group-address2 ] [ source ipv4-source-address ] | ipv6 ipv6-group-address1 [ to ipv6-group-address2 ] [ source ipv6-source-address ] | all }
Parameter |
Description |
Value |
---|---|---|
ipv4-group-address1 [ to ipv4-group-address2 ] |
Specifies the IPv4 address of a multicast group. |
The value ranges from 224.0.1.0 to 239.255.255.255, in dotted decimal notation. |
source ipv4-source-address |
Specifies the source IPv4 address. |
The value is in dotted decimal notation. |
ipv6 ipv6-group-address1 [ to ipv6-group-address2 ] |
Specifies the IPv6 address of a multicast group. |
The address is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X. An IPv6 multicast address starts with FF. |
source ipv6-source-address |
Specifies the source IPv6 address. |
The address is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X. |
all | Deletes all static multicast flows in a VLAN. | - |
Usage Scenario
When a user VLAN (for example, UVLAN) needs to join multiple multicast VLANs (for example, MVLAN1 to MVLANn), you need to run the multicast flow-trigger enable command in the view of user VLAN to enable the triggering of multicast flows, and then configure static flows in each multicast VLAN. In this manner, the many-to-many mapping based on {UVLAN, Source, Group} is set up between user VLANs and multicast VLANs.
Precautions
Any two static flows in a multicast VLAN cannot be the same. Note that flows of the same multicast group with different source IP addresses are considered as different flows.
When you use the multicast static-flow { ipv4-group-address1 to ipv4-group-address2 | ipv6-group-address1 to ipv6-group-address2 } command to configure static multicast flows in batches, a maximum of 256 flows can be configured each time. When configuring an IPv4 multicast address segment, ensure that the consecutive addresses are in a multicast address segment with a 24-bit mask. When configuring an IPv6 multicast address segment, ensure that the consecutive addresses are in a multicast address segment with a 120-bit prefix. For example, the multicast static-flow 225.0.0.255 to 225.0.1.1 command will not take effect because the addresses belong to two different segments: 225.0.0.0/24 and 225.0.1.0/24.
# Configure a static flow with the source address being 10.0.0.1 and group address being 232.0.0.1 in multicast VLAN 10.
<HUAWEI> system-view [HUAWEI] igmp-snooping enable [HUAWEI] vlan 10 [HUAWEI-vlan10] igmp-snooping enable [HUAWEI-vlan10] igmp-snooping version 3 [HUAWEI-vlan10] multicast-vlan enable [HUAWEI-vlan10] multicast static-flow 232.0.0.1 source 10.0.0.1
# Configure a static flow with the source address being FE80::1 and group address being FF23::123 in multicast VLAN 20.
<HUAWEI> system-view [HUAWEI] vlan 20 [HUAWEI-vlan20] mld-snooping enable [HUAWEI-vlan20] mld-snooping version 2 [HUAWEI-vlan20] multicast-vlan enable [HUAWEI-vlan20] multicast static-flow ipv6 ff23::123 source fe80::1