< Home

Filtering IGMP Messages Based on Source IP Addresses

Context

A Layer 3 multicast switch directly connected to a user network segment processes all the IGMP messages received. To improve security and prevent multicast services from being affected by IGMP messages maliciously forged by other devices, you can configure IGMP message filtering on switch interfaces connected to hosts. The switch supports filtering of IGMP Query, Report and Leave messages.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

  3. (Optional) On an Ethernet interface, run undo portswitch

    The interface is switched to Layer 3 mode.

    By default, an Ethernet interface works in Layer 2 mode.

    Only the S5720-EI, S5720-HI, S5730-HI, S5731-H, S5731-S, S5731S-H, S5731S-S, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730-H, S6730S-H, S6730-S, and S6730S-S support switching between Layer 2 and Layer 3 modes.

  4. Run igmp query ip-source-policy basic-acl-number

    A policy is configured on the interface to filter Query messages based on source IP addresses.

    By default, the switch processes all the received Query messages without filtering them.

    When configuring an access control list (ACL) for the interface, use the permit parameter to configure the interface to accept only Query messages with source addresses in a specified range. If no rule is configured in the ACL, the interface rejects all IGMP Query messages.

  5. Run igmp ip-source-policy [ basic-acl-number ]

    A policy is configured on the interface to filter Report/Leave messages based on source IP addresses.

    By default, the switch processes all the received Report/Leave messages without filtering them.

    After Report/Leave message filtering is configured without specifying an ACL, the switch processes Report/Leave messages based on source IP addresses as follows:

    • If the source IP address of a Report/Leave message is 0.0.0.0 or on the same network segment as the IP address of the inbound interface, the switch processes the Report/Leave message.

    • If the source IP address of a Report/Leave message is on a different network segment than the IP address of the inbound interface, the switch discards the Report/Leave message.

    When configuring an ACL rule for the interface, use the permit parameter to configure the interface to accept only Report/Leave messages with source addresses in a specified range. If no rule is configured in the ACL, the interface rejects all IGMP Report/Leave messages.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >