The multicast longest-match command configures the switch to select the RPF route based on the longest matching rule.
The undo multicast longest-match command restores the default configuration.
By default, the switch selects the route with the highest preference as the RPF route.
Usage Scenario
By default, the switch selects the RPF route based on route preference. This command changes the route selection policy used by the switch during RPF check. After you run this command, the switch selects the RPF route with the longest mask. If multiple routes have the same mask length, the switch selects the route with the highest preference.
Prerequisites
IP multicast routing has been enabled using the multicast routing-enable command.