match ip multicast

To configure the IPv4 multicast features for the route-map matching, use the match ip multicast command. To remove the match, use the no form of this command.

match ip multicast { group address / length | source address / length | rp address / length [ rp-type asm ]}

no match ip multicast

Syntax Description

group address / length
Specifies the group address and the length of the network mask in bits in this format: A . B . C . D / length . The network number can be any valid IP address or prefix. The bit mask can be a number from 0 to 32.
You can configure group, source, and rp options.
source address / length
Specifies the source address and the length of the network mask in bits in this format: A . B . C . D / length . The network number can be any valid IP address or prefix. The bit mask can be a number from 0 to 32.
You can configure group, source, and rp options.
rp address / length
S pecifies the IPv4 rendezvous prefix (RP) and the length of the IPv4 prefix mask in bits in this format: A . B . C . D / length . The network number can be any valid IPv4 address or prefix. The bit mask can be a number from 0 to 32.
You can configure group, source, and rp options.
rp-type
(Optional) Specifies the multicast rendezvous point type.
asm
(Optional) Specifies the any-source multicast (ASM) rendezvous point type.

Command Default

None

Command Modes

Route-map configuration mode

Command History

Release
Modification
5.0(3)N1(1)
This command was introduced.

Usage Guidelines

The match ip multicast command is the only match command that is evaluated in the route map. You can specify the group prefix, group range, and source prefix to filter messages with the match ip multicast command.

Use the route-map command to enter route-map configuration mode. Once you enter the route-map command, the prompt changes to the following:

switch(config-route-map)#
 

Once you enter route-map configuration mode, you can enter the match ip multicast command.

You can configure both group and rp options.

Examples

This example shows how to specify the group IPv4 prefix and the length of the IPv4 prefix for the neighbors to match:

switch(config)# route-map blueberry
switch(config-route-map)# match ip multicast group 192.0.0.0/19
switch(config-route-map)#
 

This example shows how to specify both the group IPv4 prefix and the rendezvous point of the IPv4 prefix for the neighbors to match:

switch(config)# route-map raspberry
switch(config-route-map)# match ip multicast group 192.0.0.0/19 rp 209.165.201.0/27
switch(config-route-map)#
 

Related Commands

Command
Description
match route-type
Redistributes routes of the specified type.
route-map
Defines the conditions for redistributing routes from one routing protocol into another.