Configuring IP Multicast Routing: Finding Feature Information
Configuring IP Multicast Routing: Finding Feature Information
Configuring IP Multicast Routing: Finding Feature Information
Related Topics
Feature History and Information for Troubleshooting Software Configuration
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-29322-01 1
Configuring IP Multicast Routing
Restrictions for Configuring IP Multicast Routing
• You must enable IP multicast routing and configure the PIM version and PIM mode on the switch. After
performing these tasks, the switch can then forward multicast packets and can populate its multicast
routing table.
• To participate in IP multicasting, the multicast hosts, routers, and multilayer switch must have IGMP
operating.
Note For complete syntax and usage information for the commands used in this chapter, see the IP Multicast
Command Reference, Cisco IOS XE Release 3SE (Catalyst 3850 Switches). For information on configuring
the Multicast Source Discovery Protocol (MSDP), see the Catalyst 3850 Routing Configuration Guide.
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
2 OL-29322-01
Configuring IP Multicast Routing
Cisco’s Implementation of IP Multicast Routing
Note The switch does not support the Distance Vector Multicast Routing Protocol (DVMRP) nor the Cisco
Group Management Protocol (CGMP).
The following figure shows where the Cisco-supported protocols for the switch operate within the IP multicast
environment.
Figure 1: IP Multicast Routing Protocols
According to IPv4 multicast standards, the MAC destination multicast address begins with 0100:5e and is
appended by the last 23 bits of the IP address. For example, if the IP destination address is 239.1.1.39, the
MAC destination address is 0100:5e01:0127.
A multicast packet is unmatched when the destination IPv4 address does not match the destination MAC
address. The switch forwards the unmatched packet in hardware based upon the MAC address table. If the
destination MAC address is not in the MAC address table, the switch floods the packet to the all port in the
same VLAN as the receiving port.
Related Topics
Configuring Basic IP Multicast Routing, on page 6
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-29322-01 3
Configuring IP Multicast Routing
Multicast Group Concept
• Registering with the MRIB to learn the entry and interface flags set by the control plane
• Handling data-driven events that must be sent to the control plane
• Maintaining counts, rates, and bytes of received, dropped, and forwarded multicast packets
The MRIB is the communication channel between MRIB clients. Examples of MRIB clients are PIM, IGMP,
the multicast routing (mroute) table, and the MFIB.
Related Topics
Configuring IP Multicast Forwarding, on page 8
Multicast Boundaries
Administratively-scoped boundaries can be used to limit the forwarding of multicast traffic outside of a domain
or subdomain. This approach uses a special range of multicast addresses, called administratively-scoped
addresses, as the boundary mechanism. If you configure an administratively-scoped boundary on a routed
interface, multicast traffic whose multicast group addresses fall in this range cannot enter or exit this interface,
which provides a firewall for multicast traffic in this address range.
Note Multicast boundaries and TTL thresholds control the scoping of multicast domains; however, TTL thresholds
are not supported by the switch. You should use multicast boundaries instead of TTL thresholds to limit
the forwarding of multicast traffic outside of a domain or a subdomain.
The following figure shows that Company XYZ has an administratively-scoped boundary set for the multicast
address range 239.0.0.0/8 on all routed interfaces at the perimeter of its network. This boundary prevents any
multicast traffic in the range 239.0.0.0 through 239.255.255.255 from entering or leaving the network. Similarly,
the engineering and marketing departments have an administratively-scoped boundary of 239.128.0.0/16
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
4 OL-29322-01
Configuring IP Multicast Routing
Multicast Routing and Switch Stacks
around the perimeter of their networks. This boundary prevents multicast traffic in the range of 239.128.0.0
through 239.128.255.255 from entering or leaving their respective networks.
Figure 2: Administratively-Scoped Boundaries
You can define an administratively-scoped boundary on a routed interface for multicast group addresses. A
standard access list defines the range of addresses affected. When a boundary is defined, no multicast data
packets are allowed to flow across the boundary from either direction. The boundary allows the same multicast
group address to be reused in different administrative domains.
The IANA has designated the multicast address range 239.0.0.0 to 239.255.255.255 as the
administratively-scoped addresses. This range of addresses can then be reused in domains administered by
different organizations. The addresses would be considered local, not globally unique.
Related Topics
Configuring an IP Multicast Boundary, on page 14
Example: Configuring an IP Multicast Boundary, on page 21
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-29322-01 5
Configuring IP Multicast Routing
Default Multicast Routing Configuration
Note If an active switch running the IP Services feature set fails and if the newly elected
active switch is running the IP Base feature set, the switch stack loses its multicast
routing capability.
• They do not build multicast routing tables. Instead, they use the multicast routing table that is distributed
by the active switch.
Note If you enable PIM on multiple interfaces, when most of these interfaces are not on the outgoing interface
list, and IGMP snooping is disabled, the outgoing interface might not be able to sustain line rate for
multicast traffic because of the extra replication.
In populating the multicast routing table, dense-mode interfaces are always added to the table. Sparse-mode
interfaces are added to the table only when periodic join messages are received from downstream devices or
when there is a directly connected member on the interface.
When forwarding from a LAN, sparse-mode operation occurs if there is a rendezvous point (RP) known for
the group. An RP acts as the meeting place for sources and receivers of multicast data. If an RP exists, the
packets are encapsulated and sent toward the RP. When no RP is known, the packet is flooded in a dense-mode
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
6 OL-29322-01
Configuring IP Multicast Routing
Configuring Basic IP Multicast Routing
fashion. If the multicast traffic from a specific source is sufficient, the receiver’s first-hop router might send
join messages toward the source to build a source-based distribution tree.
By default, multicast routing is disabled, and there is no default mode setting.
This procedure is required.
SUMMARY STEPS
1. configure terminal
2. ip multicast-routing
3. interface interface-id
4. ip pim {dense-mode | sparse-mode | sparse-dense-mode}
5. end
6. show running-config
7. copy running-config startup-config
DETAILED STEPS
Example:
Switch# configure terminal
Step 3 interface interface-id Specifies the Layer 3 interface on which you want to enable multicast routing,
and enters interface configuration mode.
Example: The specified interface must be one of the following:
Switch(config)# interface • A routed port—A physical port that has been configured as a Layer 3 port
gigabitethernet 1/0/1
by entering the no switchport interface configuration command. You will
also need to enable IP PIM sparse-dense-mode on the interface, and join
the interface as a statically connected member to an IGMP static group.
For a configuration example, see Example: Interface Configuration as a
Routed Port
• An SVI—A VLAN interface created by using the interface vlan vlan-id
global configuration command. You will also need to enable IP PIM
sparse-dense-mode on the VLAN, join the VLAN as a statically connected
member to an IGMP static group, and then enable IGMP snooping on the
VLAN, the IGMP static group, and physical interface. For a configuration
example, see Example: Interface Configuration as an SVI
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-29322-01 7
Configuring IP Multicast Routing
Configuring IP Multicast Forwarding
Example:
The keywords have these meanings:
Example:
Switch(config-if)# end
Example:
Switch# show running-config
Step 7 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
Switch# copy running-config
startup-config
Related Topics
Cisco’s Implementation of IP Multicast Routing, on page 2
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
8 OL-29322-01
Configuring IP Multicast Routing
Configuring IP Multicast Forwarding
Note After you have enabled IP multicast routing by using the ip multicast-routing command, IPv4 multicast
forwarding is enabled. Because IPv4 multicast forwarding is enabled by default, you can use the no form
of the ip mfib command to disable IPv4 multicast forwarding.
SUMMARY STEPS
1. configure terminal
2. ip mfib
3. exit
4. show running-config
5. copy running-config startup-config
DETAILED STEPS
Example:
Switch# configure terminal
Example:
Switch(config)# ip mfib
Example:
Switch(config)# exit
Example:
Switch# show running-config
Step 5 copy running-config startup-config (Optional) Saves your entries in the configuration
file.
Example:
Switch# copy running-config
startup-config
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-29322-01 9
Configuring IP Multicast Routing
Configuring a Static Multicast Route (mroute)
Related Topics
Multicast Forwarding Information Base Overview , on page 3
Static mroutes are strictly local to the switch on which they are defined. Because Protocol Independent Multicast
(PIM) does not have its own routing protocol, there is no mechanism to distribute static mroutes throughout
the network. Consequently, the administration of static mroutes tends to be more complicated than the
administration of unicast static routes.
When static mroutes are configured, they are stored on the switch in a separate table referred to as the static
mroute table. When configured, the ip mroute command enters a static mroute into the static mroute table
for the source address or source address range specified for the source-address and mask arguments. Sources
that match the source address or that fall in the source address range specified for the source-address argument
will RPF to either the interface associated with the IP address specified for the rpf-address argument or the
local interface on the switch specified for the interface-type and interface-number arguments. If an IP address
is specified for the rpf-address argument, a recursive lookup is done from the unicast routing table on this
address to find the directly connected neighbor.
If there are multiple static mroutes configured, the switch performs a longest-match lookup of the mroute
table. When the mroute with the longest match (of the source-address) is found, the search terminates and the
information in the matching static mroute is used. The order in which the static mroutes are configured is not
important.
The administrative distance of an mroute may be specified for the optional distance argument. If a value is
not specified for the distance argument, the distance of the mroute defaults to zero. If the static mroute has
the same distance as another RPF source, the static mroute will take precedence. There are only two exceptions
to this rule: directly connected routes and the default unicast route.
SUMMARY STEPS
1. configure terminal
2. ip mroute [vrf vrf-name] source-address mask { fallback-lookup {global | vrf vrf-name }[ protocol ]
{rpf-address | interface-type interface-number}} [distance]
3. exit
4. show running-config
5. copy running-config startup-config
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
10 OL-29322-01
Configuring IP Multicast Routing
Configuring sdr Listener Support
DETAILED STEPS
Example:
Switch# configure terminal
Step 2 ip mroute [vrf vrf-name] source-address mask { The source IP address 10.1.1.1 is configured to be
fallback-lookup {global | vrf vrf-name }[ protocol ] reachable through the interface associated with IP
{rpf-address | interface-type interface-number}} [distance] address 10.2.2.2.
Example:
Switch(configure)# ip mroute 10.1.1.1 255.255.255.255
10.2.2.2
Example:
Switch(config)# exit
Example:
Switch# show running-config
Step 5 copy running-config startup-config (Optional) Saves your entries in the configuration
file.
Example:
Switch# copy running-config
startup-config
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-29322-01 11
Configuring IP Multicast Routing
Configuring sdr Listener Support
SDR is a multicast application that listens to a well-known multicast group address and port for Session
Announcement Protocol (SAP) multicast packets from SAP clients, which announce their conference sessions.
These SAP packets contain a session description, the time the session is active, its IP multicast group addresses,
media format, contact person, and other information about the advertised multimedia session. The information
in the SAP packet is displayed in the SDR Session Announcement window.
SUMMARY STEPS
1. configure terminal
2. interface interface-id
3. ip sap listen
4. end
5. show running-config
6. copy running-config startup-config
DETAILED STEPS
Example:
Switch# configure terminal
Step 2 interface interface-id Specifies the interface to be enabled for sdr, and enters interface configuration
mode.
Example: The specified interface must be one of the following:
Switch(config)# interface • A routed port—A physical port that has been configured as a Layer 3
gigabitethernet 1/0/1
port by entering the no switchport interface configuration command.
You will also need to enable IP PIM sparse-dense-mode on the interface,
and join the interface as a statically connected member to an IGMP
static group. For a configuration example, see Example: Interface
Configuration as a Routed Port
• An SVI—A VLAN interface created by using the interface vlan vlan-id
global configuration command. You will also need to enable IP PIM
sparse-dense-mode on the VLAN, join the VLAN as a statically
connected member to an IGMP static group, and then enable IGMP
snooping on the VLAN, the IGMP static group, and physical interface.
For a configuration example, see Example: Interface Configuration as
an SVI
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
12 OL-29322-01
Configuring IP Multicast Routing
Configuring sdr Listener Support
Step 3 ip sap listen Enables the switch software to listen to session directory announcements.
Example:
Switch(config-if)# ip sap listen
Example:
Switch(config-if)# end
Example:
Switch# show running-config
Step 6 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
Switch# copy running-config
startup-config
SUMMARY STEPS
1. configure terminal
2. ip sap cache-timeout minutes
3. end
4. show running-config
5. show ip sap
6. copy running-config startup-config
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-29322-01 13
Configuring IP Multicast Routing
Configuring an IP Multicast Boundary
DETAILED STEPS
Example:
Switch# configure terminal
Step 2 ip sap cache-timeout minutes Limits how long a Session Announcement Protocol (SAP)
cache entry stays active in the cache.
Example: By default, entries are never deleted from the cache.
Switch(config)# ip sap cache-timeout 30 For minutes, the range is 1 to 1440 minutes (24 hours).
Example:
Switch(config)# end
Example:
Switch# show running-config
Example:
Switch# show ip sap
Step 6 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
Switch# copy running-config
startup-config
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
14 OL-29322-01
Configuring IP Multicast Routing
Configuring an IP Multicast Boundary
SUMMARY STEPS
1. configure terminal
2. access-list {access-list-number 1-99 | access-list-number 100-199 | access-list-number 1300-1999
|access-list-number 2000-2699 | dynamic-extended | rate-limit}
3. interface interface-id
4. ip multicast boundary access-list-number
5. end
6. show running-config
7. copy running-config startup-config
DETAILED STEPS
Example:
Switch# configure terminal
Step 2 access-list {access-list-number 1-99 | Creates a standard access list, repeating the command as many times as necessary.
access-list-number 100-199 |
access-list-number 1300-1999 • For access-list-number, the ranges are as follows:
|access-list-number 2000-2699 | ◦access-list-number 1—99 (IP standard access list)
dynamic-extended | rate-limit}
◦access-list-number 100—199 ( IP extended access list)
Example: ◦access-list-number 1300—1999 (IP standard access list - expanded
Switch(config)# access-list 99
range)
permit any
◦access-list-number 2000—2699 (IP extended access list - expanded
range)
The access list is always terminated by an implicit deny statement for everything.
Step 3 interface interface-id Specifies the interface to be configured, and enters interface configuration mode.
The specified interface must be one of the following:
Example:
• A routed port—A physical port that has been configured as a Layer 3 port
Switch(config)# interface by entering the no switchport interface configuration command. You will
gigabitEthernet1/0/1
also need to enable IP PIM sparse-dense-mode on the interface, and join
the interface as a statically connected member to an IGMP static group.
For a configuration example, see Example: Interface Configuration as a
Routed Port
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-29322-01 15
Configuring IP Multicast Routing
Configuring an IP Multicast Boundary
Step 4 ip multicast boundary Configures the boundary, specifying the access list you created in Step 2.
access-list-number Additional command options include:
Example:
Switch(config-if)# end
Example:
Switch# show running-config
Step 7 copy running-config startup-config (Optional) Saves your entries in the configuration file.
Example:
Switch# copy running-config
startup-config
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
16 OL-29322-01
Configuring IP Multicast Routing
Monitoring and Maintaining IP Multicast Routing
What to Do Next
Proceed to the other supported IP multicast routing procedures.
Related Topics
Multicast Boundaries, on page 4
Example: Configuring an IP Multicast Boundary, on page 21
Command Purpose
clear ip igmp group {group [ hostname | IP Deletes entries from the IGMP cache.
address] | vrf name group [ hostname | IP
address] }
clear ip mfib { counters [group | source] | Clears the IP multicast forwarding information base cache.
global counters [group | source] | vrf * }
clear ip mroute { * | [hostname | IP address] Deletes entries from the IP multicast routing table
| vrf name group [ hostname | IP address] }
clear ip msdp { peer | sa-cache | statistics | Clears the Multicast Source Discovery Protocol (MSDP)
vrf } cache.
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-29322-01 17
Configuring IP Multicast Routing
Displaying System and Network Statistics
Command Purpose
clear ip sap [group-address | “session-name”] Deletes the Session Directory Protocol Version 2 cache or
an sdr cache entry.
You can display information to learn resource usage and solve network problems. You can also display
information about node reachability and discover the routing path that packets of your device are taking
through the network.
You can use any of the privileged EXEC commands in the following table to display various routing statistics.
Command Purpose
ping [group-name | group-address] Sends an ICMP Echo Request to a multicast group
address.
show ip igmp groups [type-number | detail ] Displays the multicast groups that are directly
connected to the switch and that were learned through
IGMP.
show ip igmp membership [ name/group address | Displays IGMP membership information for
all | tracked ] forwarding.
show ip igmp ssm-mapping [ hostname/IP address Displays IGMP SSM mapping information.
]
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
18 OL-29322-01
Configuring IP Multicast Routing
Displaying System and Network Statistics
Command Purpose
show ip mfib [ type number ] Displays the IP multicast forwarding information
base.
show ip mrib { client | route | vrf } Displays the multicast routing information base.
show ip mrm { interface | manager | status-report Displays the IP multicast routing monitor information.
}
show ip mroute [group-name | group-address] Displays the contents of the IP multicast routing table.
[source] [ count | interface | proxy | pruned |
summary | verbose]
show ip msdp { count | peer | rpf-peer | sa-cache | Displays the Multicast Source Discovery Protocol
summary | vrf } (MSDP) information.
show ip pim interface [type number] [count | detail Displays information about interfaces configured for
| df | stats ] PIM. This command is available in all software
images.
show ip pim neighbor [type number] Lists the PIM neighbors discovered by the switch.
This command is available in all software images.
show ip pim rp-hash [group-name | group-address] Displays the RP to be chosen based upon the group
selected.
show ip pim vrf name Displays VPN routing and forwarding instances.
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-29322-01 19
Configuring IP Multicast Routing
Monitoring IP Multicast Routing
Command Purpose
show ip rpf {source-address | name} Displays how the switch is doing Reverse-Path
Forwarding (that is, from the unicast routing table,
DVMRP routing table, or static mroutes).
Command parameters include:
• Host name or IP address—IP name or group
address.
• Select—Group-based VRF select information.
• vrf—Selects VPN Routing/Forwarding
instance.
show ip sap [group | “session-name” | detail] Displays the Session Announcement Protocol (SAP)
Version 2 cache.
Command parameters include:
• A.B.C.D—IP group address.
• WORD—Session name (in double quotes).
• detail—Session details.
Command Purpose
mrinfo { [hostname | address] | vrf } Queries a multicast router or multilayer
switch about which neighboring multicast
devices are peering with it.
mstat { [hostname | address] | vrf } Displays IP multicast packet rate and loss
information.
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
20 OL-29322-01
Configuring IP Multicast Routing
Configuration Examples for IP Multicast Routing
Related Topics
Configuring an IP Multicast Boundary, on page 14
Multicast Boundaries, on page 4
Switch# mrinfo
171.69.214.27 (mm1-7kd.cisco.com) [version cisco 11.1] [flags: PMS]:
171.69.214.27 -> 171.69.214.26 (mm1-r7kb.cisco.com) [1/0/pim/querier]
171.69.214.27 -> 171.69.214.25 (mm1-45a.cisco.com) [1/0/pim/querier]
171.69.214.33 -> 171.69.214.34 (mm1-45c.cisco.com) [1/0/pim]
171.69.214.137 -> 0.0.0.0 [1/0/pim/querier/down/leaf]
171.69.214.203 -> 0.0.0.0 [1/0/pim/querier/down/leaf]
171.69.214.18 -> 171.69.214.20 (mm1-45e.cisco.com) [1/0/pim]
171.69.214.18 -> 171.69.214.19 (mm1-45c.cisco.com) [1/0/pim]
171.69.214.18 -> 171.69.214.17 (mm1-45a.cisco.com) [1/0/pim]
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-29322-01 21
Configuring IP Multicast Routing
Additional References
Additional References
Related Documents
For information on configuring the Multicast Source Catalyst 3850 Routing Configuration Guide
Discovery Protocol (MSDP).
Standard/RFC Title
RFC 1112 Host Extensions for IP Multicasting
MIBs
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
22 OL-29322-01
Configuring IP Multicast Routing
Feature Information for IP Multicast
Technical Assistance
Description Link
The Cisco Support website provides extensive online http://www.cisco.com/support
resources, including documentation and tools for
troubleshooting and resolving technical issues with
Cisco products and technologies.
To receive security and technical information about
your products, you can subscribe to various services,
such as the Product Alert Tool (accessed from Field
Notices), the Cisco Technical Services Newsletter,
and Really Simple Syndication (RSS) Feeds.
Access to most tools on the Cisco Support website
requires a Cisco.com user ID and password.
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
OL-29322-01 23
Configuring IP Multicast Routing
Feature Information for IP Multicast
Consolidated Platform Configuration Guide, Cisco IOS XE Release 3SE (Catalyst 3850 Switches)
24 OL-29322-01