The igmp-snooping ssm-mapping command configures the mapping between a multicast group and a multicast source in a VSI.
The undo igmp-snooping ssm-mapping command deletes the mapping between a multicast group and a multicast source in a VSI.
By default, no mappings between multicast groups and multicast sources exist in a VSI.
igmp-snooping ssm-mapping ip-group-address { ip-group-mask | mask-length } ip-source-address
undo igmp-snooping ssm-mapping ip-group-address { ip-group-mask | mask-length } ip-source-address
Parameter |
Description |
Value |
---|---|---|
ip-group-address |
Specifies the IP address of a multicast group. |
The value is in dotted decimal notation, and the value range is specified by the igmp-snooping ssm-policy command. |
ip-group-mask |
Specifies the mask of the multicast group address. |
The value is in dotted decimal notation. |
mask-length |
Specifies the mask length of the multicast group address. |
The value is an integer that ranges from 4 to 32. |
ip-source-address |
Specifies the IP address of a multicast source. |
The value is in dotted decimal notation. |
Usage Scenario
The SSM mapping mechanism converts IGMPv1 and IGMPv2 Report messages into messages with (S, G) information. This mechanism enables hosts that do not support IGMPv3 to work with SSM. To use this mechanism, enable SSM mapping and configure mappings between a multicast group G and multicast sources such as S1, S2 on the switch connected to user hosts. When the switch receives IGMPv1 and IGMPv2 Report messages for a multicast group, it checks the group address of the messages. If the group address is in the SSM group range, the switch converts the messages into one or more IGMPv3 IS_IN (S1, S2...) messages with the group address G.
Prerequisites
Precautions
The configuration takes effect only when IGMP snooping is enabled in the VSI using the igmp-snooping enable (VSI view) command.
# Map multicast group 238.0.0.1 to multicast source 10.1.1.1 in VSI company1.
<HUAWEI> system-view [HUAWEI] igmp-snooping enable [HUAWEI] igmp-snooping over-vpls enable [HUAWEI] vsi company1 [HUAWEI-vsi-company1] igmp-snooping enable [HUAWEI-vsi-company1] igmp-snooping version 3 [HUAWEI-vsi-company1] igmp-snooping ssm-mapping enable [HUAWEI-vsi-company1] igmp-snooping ssm-mapping 238.0.0.1 32 10.1.1.1