mld-snooping general-query source-ip

Use mld-snooping general-query source-ip to configure the source IPv6 address for MLD general queries.

Use undo mld-snooping general-query source-ip to restore the default.

Syntax

mld-snooping general-query source-ip ipv6-address

undo mld-snooping general-query source-ip

Default

In a VLAN, the source IPv6 address for MLD general queries is the IPv6 link-local address of the current VLAN interface. If the current VLAN interface does not have an IPv6 link-local address, the source IPv6 address is FE80::02FF:FFFF:FE00:0001.

In a VSI, the source IPv6 address for MLD general queries is the IPv6 link-local address of the gateway interface for the VSI. If the gateway interface does not have an IPv6 link-local address, the source IPv6 address is FE80::02FF:FFFF:FE00:0001.

Views

VLAN view

VSI view

Predefined user roles

network-admin

Parameters

ipv6-address: Specifies the source IPv6 address for MLD general queries.

Usage guidelines

You must enable MLD snooping for a VLAN or VSI before you execute this command.

Examples

# In VLAN 2, enable MLD snooping, and specify FE80:0:0:1::1 as the source IPv6 address for MLD general queries.

<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping enable
[Sysname-vlan2] mld-snooping general-query source-ip fe80:0:0:1::1

# In VSI aaa, enable MLD snooping, and specify FE80:0:0:1::1 as the source IPv6 address for MLD general queries.

<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] quit
[Sysname] vsi aaa
[Sysname-vsi-aaa] mld-snooping enable
[Sysname-vsi-aaa] mld-snooping general-query source-ip fe80:0:0:1::1

Related commands

enable (MLD-snooping view)

mld-snooping enable