igmp-snooping host-aging-time
Use igmp-snooping host-aging-time to set the aging timer for dynamic member ports in a VLAN or VSI.
Use undo igmp-snooping host-aging-time to restore the default.
Syntax
igmp-snooping host-aging-time seconds
undo igmp-snooping host-aging-time
Default
The aging timer for dynamic member ports is 260 seconds.
Views
VLAN view
VSI view
Predefined user roles
network-admin
mdc-admin
Parameters
seconds: Specifies an aging timer for dynamic member ports, in the range of 1 to 8097894 seconds.
Usage guidelines
You must enable IGMP snooping for a VLAN or VSI before you execute this command.
You can set the timer for a VLAN in VLAN view, for a VSI in VSI view, or globally for all VLANs and VSIs in IGMP-snooping view. For a VLAN, the VLAN-specific configuration takes priority over the global configuration. For a VSI, the VSI-specific configuration takes priority over the global configuration.
To avoid mistakenly deleting multicast group members, set the aging timer for dynamic member ports to be greater than the value calculated by using the following formula:
[ IGMP general query interval ] + [ maximum response time for IGMP general queries ]
As a best practice, set the aging timer of dynamic member ports to the value calculated by using the following formula:
[ IGMP general query interval ] × 2 + [ maximum response time for IGMP general queries ]
Examples
# In VLAN 2, enable IGMP snooping, and set the aging timer for dynamic member ports to 300 seconds.
<Sysname> system-view [Sysname] igmp-snooping [Sysname-igmp-snooping] quit [Sysname] vlan 2 [Sysname-vlan2] igmp-snooping enable [Sysname-vlan2] igmp-snooping host-aging-time 300
# In VSI aaa, enable IGMP snooping, and set the aging timer for dynamic member ports to 300 seconds.
<Sysname> system-view [Sysname] igmp-snooping [Sysname-igmp-snooping] quit [Sysname] vsi aaa [Sysname-vsi-aaa] igmp-snooping enable [Sysname-vsi-aaa] igmp-snooping host-aging-time 300
Related commands
enable (IGMP-snooping view)
host-aging-time (IGMP-snooping view)
igmp-snooping enable