To enable the multicast VLAN registration (MVR) feature on the switch, use the mvr global configuration command without keywords on the switch stack or on a standalone switch. To return to the default settings,
use the no form of this command.
mvr [ group ip-address [ count] | mode [ compatible | dynamic] | querytime value | vlan vlan-id]
no mvr [ group ip-address [ count] | mode [ compatible | dynamic] | querytime value | vlan vlan-id]
Syntax Description
group ip-address
|
(Optional) Statically configures an MVR group IP multicast address on the switch.
Use the no form of this command to remove a statically configured IP multicast address or contiguous addresses or, when no IP address
is entered, to remove all statically configured MVR IP multicast addresses.
|
count
|
(Optional) Multiple contiguous MVR group addresses. The range is 1 to 256; the default is 0.
|
mode
|
(Optional) Specifies the MVR mode of operation.
The default is compatible mode.
|
compatible
|
(Optional) Sets MVR mode to provide compatibility with Catalyst 2900 XL and Catalyst 3500 XL switches. This mode does not
allow dynamic membership joins on source ports.
|
dynamic
|
(Optional) Sets MVR mode to allow dynamic MVR membership on source ports.
|
querytime value
|
(Optional) Sets the maximum time to wait for IGMP report memberships on a receiver port. This time applies only to receiver-port
leave processing. When an IGMP query is sent from a receiver port, the switch waits for the default or configured MVR querytime
for an IGMP group membership report before removing the port from multicast group membership.
The value is the response time in units of tenths of a second. The range is 1 to 100; the default is 5 tenths or one-half
second.
Use the no form of the command to return to the default setting.
|
vlan vlan-id
|
(Optional) Specifies the VLAN on which MVR multicast data is expected to be received. This is also the VLAN to which all the
source ports belong. The range is 1 to 4094; the default is VLAN 1.
|
Command Default
MVR is disabled by default.
The default MVR mode is compatible mode.
No IP multicast addresses are configured on the switch by default.
The default group ip-address count is 0.
The default query response time is five-tenths or one-half second.
The default multicast VLAN for MVR is VLAN 1.
Command Modes
Global configuration
Command History
Release
|
Modification
|
Cisco IOS Release 15.0(2)EXCisco IOS Release 15.2(5)E
|
This command was introduced.
|
Usage Guidelines
A maximum of 256 MVR multicast groups can be configured on a switch.
Use the command with keywords to set the MVR mode for a switch, configure the MVR IP multicast address, set the maximum time
to wait for a query reply before removing a port from group membership, and to specify the MVR multicast VLAN.
Use the mvr group command to statically set up all the IP multicast addresses that will take part in MVR. Any multicast data sent to a configured
multicast address is sent to all the source ports on the switch and to all receiver ports that have registered to receive
data on that IP multicast address.
MVR supports aliased IP multicast addresses on the switch. However, if the switch is interoperating with Catalyst 3550 or
Catalyst 3500 XL switches, you should not configure IP addresses that alias between themselves or with the reserved IP multicast
addresses (in the range 224.0.0.xxx).
The mvr querytime command applies only to receiver ports.
If the switch MVR is interoperating with Catalyst 2900 XL or Catalyst 3500 XL switches, set the multicast mode to compatible.
When operating in compatible mode, MVR does not support IGMP dynamic joins on MVR source ports.
MVR can coexist with IGMP snooping on a switch.
Multicast routing and MVR cannot coexist on a switch. If you enable multicast routing and a multicast routing protocol while
MVR is enabled, MVR is disabled and a warning message appears. If you try to enable MVR while multicast routing and a multicast
routing protocol are enabled, the operation to enable MVR is cancelled with an error message.
Examples
This example shows how to enable MVR:
Device(config)# mvr
Use the show mvr privileged EXEC command to display the current setting for maximum multicast groups.
This example shows how to configure 228.1.23.4 as an IP multicast address:
Device(config)# mvr group 228.1.23.4
This example shows how to configure ten contiguous IP multicast groups with multicast addresses from 228.1.23.1 to 228.1.23.10:
Device(config)# mvr group 228.1.23.1 10
Use the show mvr members privileged EXEC command to display the IP multicast group addresses configured on the switch.
This example shows how to set the maximum query response time as one second (10 tenths):
Device(config)# mvr querytime 10
This example shows how to set VLAN 2 as the multicast VLAN:
Device(config)# mvr vlan 2
You can verify your settings by entering the show mvr privileged EXEC command.