Preface
IP multicast is a bandwidth-saving technique that reduces data streams to thousands of corporate receivers and homes by simultaneously transmitting a single message stream. Multicast Applications include video conferences, company communications, remote education and software distribution, stock quotations, and news. This topic describes the basic configurations of multicast in different networking scenarios.
The information provided in this article is created from a device in a specific lab environment. All devices used in this article start with a default (default) configuration. If you work on a real network, make sure you understand the potential impact of all commands before using it.
Intensive Mode
Cisco recommends protocol-Independent Multicast (PIM) Sparse Mode, with special automatic RP, especially for new configurations whenever possible. However, if intensive mode is desired, configure the global Command ip multicast-routing and interface command ip pim sparse-dense-mode in each interface that needs to process multicast data streams. For general requirements, all configurations in this article are to configure global multicast and configure PIM on the interface. From Cisco IOS®Version 11.1: The interface commands ip pim dense-mode and ip pim sparse-mode can be configured simultaneously with the ip pim sparse-dense-mode command. In this mode, if the group is in dense mode, the interface is treated as intensive mode. If the group is in Sparse Mode (for example, if RP is known), the interface is treated as Sparse Mode.
Note: In this example, "Source" indicates the source of the multicast data stream and "receiver" indicates the multicast data stream receiver.
Route Configuration
Ip multicast-routing
Interface ethernet0
Ip address
Ip pim sparse-dense-mode
Interface serial0
Ip address
Ip pim sparse-dense-mode
Vrob B Configuration
Ip multicast-routing
Interface serial0
Ip address
Ip pim sparse-dense-mode
Interface ethernet0
Ip address
Ip pim sparse-dense-mode
Sparse Mode for One RP
In this example, vroa A is typically the RP closest to the source router. With static RP configuration, all routers must have the same ip address pim rp address command configured in the pim domain. You can configure multiple RP, but there can be only one RP for each specific group.
Route Configuration
Ip multicast-routing
Ip pim rp-address 1.1.1.1
Interface ethernet0
Ip address
Ip pim sparse-dense-mode
Interface serial0
Ip address 1.1.1.1 255.255.255.0
Ip pim sparse-dense-mode
Vrob B Configuration
Ip multicast-routing
Ip pim rp-address 1.1.1.1
Interface serial0
Ip address
Ip pim sparse-dense-mode
Interface ethernet0
Ip address
Ip pim sparse-dense-mode
Sparse Mode for multiple RP
In this example, source A is sent to 224.1.1.1, 224.1.1.2, and 224.1.1.3. Source-B is sent to 224.2.2.2, 224.2.2.3, and 224.2.2.4. You may have a router, or RP 1 or RP 2, which is RP for all groups, but if you want different RP to process different groups, you need to configure all the routers, including the team-up RP service. For this type of static RP configuration, all routers must have the same ip address PIM rp-address acl command configured in the pim domain. You can also use automatic RP, which is easier to configure and achieve the same setting.
RP 1 Configuration
Ip multicast-routing
Ip pim RP-address 1.1.1.1 2
Ip pim RP-address 2.2.2.2 3
Access-list 2 permit 224.1.1.1
Access-list 2 permit 224.1.1.2
Access-list 2 permit 224.1.1.3
Access-list 3 permit 224.2.2.2
Access-list 3 permit 224.2.2.3
Access-list 3 permit 224.2.2.4
RP 2 Configuration
Ip multicast-routing
Ip pim RP-address 1.1.1.1 2
Ip pim RP-address 2.2.2.2 3
Access-list 2 permit 224.1.1.1
Access-list 2 permit 224.1.1.2
Access-list 2 permit 224.1.1.3
Access-list 3 permit 224.2.2.2
Access-list 3 permit 224.2.2.3
Access-list 3 permit 224.2.2.4
Configurations of vrouters 3 and 4
Ip multicast-routing
Ip pim RP-address 1.1.1.1 2
Ip pim RP-address 2.2.2.2 3
Access-list 2 permit 224.1.1.1
Access-list 2 permit 224.1.1.2
Access-list 2 permit 224.1.1.3
Access-list 3 permit 224.2.2.2
Access-list 3 permit 224.2.2.3
Access-list 3 permit 224.2.2.4
Automatic RP for One RP
With Automatic RP, you configure the RP to publish their availability as the RP and ing proxy. RP uses 224.0.1.39 to send their announcement. The RP ing proxy sends a message sent to 224.0.1.40 to listen to the announced information package from the RP, and then sends the Route Processor to the group ing. The remaining vrouters of these discovery messages are used for their Route Processor-to-group ing. You can use an RP that also acts as a ing proxy, or you can configure multiple RP and multiple ing proxies for redundancy purposes.
Note: When you select the source RP announcement, we strongly recommend that you use an interface such as loopback instead of a physical interface. If you select a physical interface, you are dependent on the interface which is always not always the actual situation, and the router stops the announcement itself as the RP once the physical interface is disconnected. But it is always on and never disconnected, so it ensures that the RP will continue to advertise itself as the RP through all available interfaces, even if one or more of its physical interfaces should fail. The loopback interface must have the enabled PIM and use static routing through the Internal Gateway Protocol (IGP) or its announcement.
Route Configuration
Ip multicast-routing
Ip pim send-rp-announce loopback0 scope 16
Ip pim send-rp-discovery scope 16
Interface loopback0
Ip address
Ip pim sparse-dense-mode
Interface ethernet0
Ip address
Ip pim sparse-dense-mode
Interface serial0
Ip address
Ip pim sparse-dense-mode
Vrob B Configuration
Ip multicast-routing
Interface ethernet0
Ip address
Ip pim sparse-dense-mode
Interface serial0
Ip address
Ip pim sparse-dense-mode
Automatic RP for multiple RP
In this example, the access control list allows RP to be the only group you want. If the access control column table is not configured, RP will be available as RP for all groups. If the availability of the two RP publications is that the RP is in the same group, the ing proxy uses the "Maximum Internet Protocol address wins" rule to resolve these conflicts.
Which router is affected is that the RP is a specific group, and the two routers are declared for this group at that time. You can configure Each router with the loopback address. Place a higher ip address in the preferred RP, and then use the loopback0 interface as the source for declaring the information package. For example, ip pim sends a route processor to notify loopback0. When using multiple ing agents, they listen to each other and find that the information package and ing proxy have the highest IP address wins and become the only forwarder 224.0.1.40.
RP 1 Configuration
Ip multicast-routing
Interface loopback0
Ip address
Ip pim sparse-dense-mode
Ip pim send-RP-announce loopback0 scope 16 group-list 1
Ip pim send-RP-discovery scope 16
Access-list 1 permit 239.0.0.0 0.20.255.255
RP 2 Configuration
Ip multicast-routing
Interface loopback0
Ip address
Ip pim sparse-dense-mode
Ip pim send-RP-announce loopback0 scope 16 group-list 1
Ip pim send-RP-discovery scope 16
Access-list 1 deny 239.0.0.0 0.20.255.255
Access-list 1 permit 224.0.0.0 15.20.255
Other details can be found here in automatic RP: ftp://ftpeng.cisco.com/ipmulticast/autorp.html
DVMRP
Your network service provider (ISP) can recommend that you create a DVMRP tunnel on the Internet (mbone) for them to access the multicast backbone network. The following figure shows the lowest command configuration DVMRP tunnel:
Interface tunnel0
Ip unnumbered
Tunnel source
Tunnel destination
Tunnel mode dvmrp
Ip pim sparse-dense-mode
Generally, ISP will allow you to establish a tunnel to a UNIX machine running "mrouted" (DVMRP. If they change to allow you to establish a tunnel to another Cisco device, use the default GRE encapsulation tunnel mode to change.
If you want to generate a multicast packet for other discoveries in mbone instead of simply receiving the multicast packet, You need to subscribe to the source subnet. If your multicast source host address is 131.108.1.1, You need to advertise the existence of this subnet to mbone. By default, the directly connected network is advertised with a permission value of 1. If your source is not directly connected to the vro using the DVMRP tunnel, configure the following interface tunnel0:
Ip dvmrp metric 1 list 3
Access-list 3 permit 131.108.1.0 0.0.255
Note: You must include an access control list and the preceding commands to prevent the whole unicast route table from being advertised to mbone.
If your settings are similar to the one shown below, and you want to spread the DVMRP route through the domain, configure the ip dvmrp unicast-routing on the router A and B serial0 interfaces. This will provide a DVMRP route forward to and then use a DVMRP route table for reverse path forwarding of PIM adjacent (RPF ). The router RPF learned by DVMRP takes precedence over other protocols, except for directly connected routes.