(Optional) Configuring the Router-Alert Option
Context
By default, the router does not check whether Multicast Listener Discovery (MLD) packets contain the Router-Alert option and sends all the MLD packets to the upper-layer routing protocol no matter whether the packets contain the Router-Alert option. Checking the Router-Alert option can improve system performance, reduce route costs, and increase network security. When the received MLD packets do not contain the Router-Alert option, the router discards the packets.
By default, the router sends MLD packets with the Router-Alert option.
For details about the Router-Alert option, see RFC 2113.
Procedure
- Run system-view
The system view is displayed.
- Run vlan vlan-id
The VLAN view is displayed.
- Run mld-snooping require-router-alert
The router is configured to check the Router-Alert option in MLD packets.
- Run mld-snooping send-router-alert
The Router-Alert option is added to the MLD packets sent by the router.