Example for Configuring Multicast SSM Mapping
Networking Requirements
As shown in Figure 9-8, RouterA connects to user hosts through a Layer 2 device RouterB. RouterA runs IGMPv3 and uses the Any-Source Multicast (ASM) model and Source-Specific Multicast (SSM) model to provide multicast services. User hosts HostA, HostB, and HostC on the network run IGMPv2 and do not support IGMPv3. The multicast sources Source1 and Source2 send multicast data to the multicast group 225.1.1.1, but the user hosts want to receive only the multicast data sent from Source1.
Configuration Roadmap
To meet the preceding requirements, configure SSM mapping on RouterB. The configuration roadmap is as follows:
On RouterB, create a VLAN and add interfaces to the VLAN.
Enable IGMP snooping globally and in the VLAN.
Configure an IGMP snooping SSM policy to add the multicast address of the ASM mode to the SSM group address range.
Configure SSM mapping to allow the users to receive only multicast data sent from the specified source.
Procedure
- Create a VLAN and add interfaces to the VLAN.
<Huawei> system-view [Huawei] sysname RouterB [RouterB] vlan 10 [RouterB-vlan10] quit [RouterB] interface ethernet 2/0/1 [RouterB-Ethernet2/0/1] port hybrid pvid vlan 10 [RouterB-Ethernet2/0/1] port hybrid untagged vlan 10 [RouterB-Ethernet2/0/1] quit [RouterB] interface ethernet 2/0/3 [RouterB-Ethernet2/0/3] port hybrid pvid vlan 10 [RouterB-Ethernet2/0/3] port hybrid untagged vlan 10 [RouterB-Ethernet2/0/3] quit
- Enable IGMP snooping.
# Enable IGMP snooping globally.
[RouterB] igmp-snooping enable
# Enable IGMP snooping in VLAN 10.
[RouterB] vlan 10 [RouterB-vlan10] igmp-snooping enable [RouterB-vlan10] quit
- Configure an IGMP snooping SSM policy.
# Create an ACL, and configure a rule that allows hosts to receive data of multicast group 225.1.1.1.
[RouterB] acl number 2008 [RouterB-acl-basic-2008] rule 5 permit source 225.1.1.1 0 [RouterB-acl-basic-2008] quit
# Apply the SSM mapping policy in the VLAN and treat the multicast group 225.1.1.1 as a member in the SSM groups.
[RouterB] vlan 10 [RouterB-vlan10] igmp-snooping ssm-policy 2008
- Enable SSM mapping.
# Configure RouterB to run IGMPv3, enable SSM mapping, and configure a mapping between the multicast group 225.1.1.1 and the source IP address 10.10.1.1.
[RouterB-vlan10] igmp-snooping version 3 [RouterB-vlan10] igmp-snooping ssm-mapping enable [RouterB-vlan10] igmp-snooping ssm-mapping 225.1.1.1 32 10.10.1.1 [RouterB-vlan10] quit
- Verify the configuration.
# Check the IGMP snooping configuration in the VLAN.
<RouterB> display igmp-snooping vlan configuration IGMP Snooping Configuration for VLAN 10 igmp-snooping enable igmp-snooping version 3 igmp-snooping ssm-mapping enable igmp-snooping ssm-policy 2008 igmp-snooping ssm-mapping 225.1.1.1 255.255.255.255 10.10.1.1
An SSM mapping policy has been configured in VLAN 10.
# Check the Layer 2 multicast forwarding table.
<RouterB> display l2-multicast forwarding-table vlan 10 VLAN ID : 10, Forwarding Mode : IP ---------------------------------------------------------------------------- (Source, Group) Interface Out-Vlan ---------------------------------------------------------------------------- Router-port Ethernet2/0/3 10 (10.10.1.1, 225.1.1.1) Ethernet2/0/1 10 Ethernet2/0/3 10 Total Group(s) : 1 ----------------------------------------------------------------------------
The command output shows that a mapping entry (10.10.1.1, 225.1.1.1) has been generated on RouterB. The mapping entry indicates that the data is sent by Source1.
Configuration Files
RouterB configuration file
# sysname RouterB # vlan batch 10 # igmp-snooping enable # acl number 2008 rule 5 permit source 225.1.1.1 0 # vlan 10 igmp-snooping enable igmp-snooping ssm-mapping enable igmp-snooping version 3 igmp-snooping ssm-policy 2008 igmp-snooping ssm-mapping 225.1.1.1 255.255.255.255 10.10.1.1 # interface Ethernet2/0/1 port hybrid pvid vlan 10 port hybrid untagged vlan 10 # interface Ethernet2/0/3 port hybrid pvid vlan 10 port hybrid untagged vlan 10 # return