< Home

igmp-snooping send-query source-address

Function

The igmp-snooping send-query source-address command sets the source IP address of IGMP Query messages.

The undo igmp-snooping send-query source-address command restores the default source IP address of IGMP Query messages.

By default, the source IP address of IGMP Query messages is 192.168.0.1.

Format

igmp-snooping send-query source-address ip-address

undo igmp-snooping send-query source-address

Parameters

Parameter

Description

Value

ip-address

Specifies the source IP address of IGMP Query messages.

The value is in dotted decimal notation.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

IGMP Query messages include General Query messages, Group-Specific Query messages, and Group-and-Source-Specific Query messages. A Layer 2 device sends two types of IGMP General Query messages:

  • IGMP General Query messages sent by the querier when the querier function is enabled using the igmp-snooping proxy or igmp-snooping querier enable command.

  • IGMP General Query messages that the Layer 2 device sends after receiving Layer 2 topology change events (configured using the igmp-snooping send-query enable command).

By default, IGMP Query messages sent from a Layer 2 device use the source IP address 192.168.0.1. When this IP address is used by another device on the network, run the igmp-snooping send-query source-address command to change the source IP address of IGMP Query messages.

When multiple Layer 2 devices exist on a shared network, you can set source IP addresses of IGMP Query messages to identify the devices. For example, when multiple devices with different performance need to participate in querier election, you must configure a different source IP address of IGMP Query messages for each device.

Prerequisites

IGMP snooping has been enabled globally using the igmp-snooping enable (system view) command.

Example

# Set the source IP address of IGMP Query messages sent by the switch to 192.168.0.2.

<HUAWEI> system-view
[HUAWEI] igmp-snooping enable
[HUAWEI] igmp-snooping send-query source-address 192.168.0.2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >