mld-snooping host-tracking

Use mld-snooping host-tracking to enable host tracking for a VLAN.

Use undo mld-snooping host-tracking to disable host tracking for a VLAN.

Syntax

mld-snooping host-tracking

undo mld-snooping host-tracking

Default

Host tracking is disabled.

Views

VLAN view

Predefined user roles

network-admin

Usage guidelines

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

You can enable host tracking for a VLAN in VLAN view or globally for all VLANs in MLD-snooping view. For a VLAN, the VLAN-specific configuration has the same priority as the global configuration.

Examples

# In VLAN 2, enable MLD snooping, and then enable host tracking.

<Sysname> system-view
[Sysname] mld-snooping
[Sysname-mld-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] mld-snooping enable
[Sysname-vlan2] mld-snooping host-tracking

Related commands

display mld-snooping host-tracking

host-tracking (MLD-snooping view)

mld-snooping enable