Cisco Cisco IOS Software Release 12.0(22)S

Page de 32
 
Configuration Example
10
Cisco IOS Release 12.0(22)S
Configuration Example
By default a bidirectional RP advertises all groups as bidirectional. An access list on the RP can be used 
to specify a list of groups to be advertised as bidirectional. Groups with the deny keyword will operate 
in dense mode. A different, nonbidirectional RP address is required for groups that operate in sparse 
mode, because a single access list only allows either a permit or deny keyword.
The following example shows how to configure an RP for both sparse mode and bidirectional mode 
groups. 224/8 and 227/8 are bidirectional groups, 226/8 is sparse mode, and 225/8 is dense mode. The 
RP must be configured to use different IP addresses for the sparse mode and bidirectional mode 
operations. Two loopback interfaces are used to allow this configuration. The addresses of these 
loopback interfaces must be routed throughout the PIM domain such that the other routers in the PIM 
domain can receive Auto-RP announcements and communicate with the RP.
ip multicast-routing !Enable IP multicast routing
ip pim bidir-enable  !Enable bidir-PIM
!
interface loopback 0
description One Loopback adddress for this routers Bidir Mode RP function
ip address 10.0.1.1 255.255.255.0
ip pim sparse-dense-mode
!
interface loopback 1
description One Loopback adddress for this routers Sparse Mode RP function
ip address 10.0.2.1 255.255.255.0
ip pim sparse-dense-mode
ip pim send-rp-announce Loopback0 scope 10 group-list 45 bidir
ip pim send-rp-announce Loopback1 scope 10 group-list 46
ip pim send-rp-discovery scope 10
access-list 45 permit 224.0.0.0 0.255.255.255
access-list 45 permit 227.0.0.0 0.255.255.255
access-list 45 deny   225.0.0.0 0.255.255.255
access-list 46 permit 226.0.0.0 0.255.255.255
Command Reference
This section documents the following modified commands. All other commands used with this feature 
are documented in the Cisco IOS Release 12.2 command reference publications.