Configuring Fast Leave for Member Ports
Context
The fast leave function enables a switch to delete the multicast forwarding entry corresponding to an interface immediately after the interface receives a Leave message, without waiting for aging of the forwarding entry.
When each interface in a VLAN is connected to only one host, you can enable fast leave in the VLAN.
Procedure
- Run:
system-view
The system view is displayed.
- Run:
vlan vlan-id
The VLAN view is displayed.
- Run:
mld-snooping prompt-leave [ group-policy acl6-number [ default-permit ] ]
Fast leave is enabled.
By default, fast leave is disabled.
If you do not specify group-policy when configuring the fast leave function, this function takes effect for all groups. To specify a group policy in the command, create an ACL and configure rules for the ACL before running the command. The ACL rules filter groups in different ways depending on whether default-permit is specified in the command:- If default-permit is not specified in the command, the group policy prevents member ports in the VLAN from fast leaving any group by default. Specify the permit keyword in the rule command to allow member ports in the VLAN to fast leave the specified groups.
- If default-permit is specified in the command, the group policy allows member ports in the VLAN to fast leave all groups by default. Specify the deny keyword in the rule command to prevent member ports in the VLAN from fast leaving the specified groups.