cisco — Example: Sparse Mode with Auto-RP

Example: Verifying PIM Stub Routing To verify that PIM stub is enabled for each interface, use the show ip pim interface command in privileged EXEC mode: Device# show ip pim interface Address Interface Ver/ Nbr Query DR DR Mode Count Intvl Prior 3.1.1.2 GigabitEthernet3/0/25 v2/SD 1 30 1 3.1.1.2 100.1.1.1 Vlan100 v2/P 0 30 1 100.1.1.1 10.1.1.1 GigabitEthernet3/0/20 v2/P 0 30 1 10.1.1.1 Example: Manually Assigning an RP to Multicast Groups This example shows how to configure the address of the RP to 147.106.6.22 for multicast group 225.2.2.2 only: Device(config)# access-list 1 permit 225.2.2.2 0.0.0.0 Device(config)# ip pim rp-address 147.106.6.22 1 Example:

Configuring Auto-RP This example shows how to send RP announcements out all PIM-enabled interfaces for a maximum of 31 hops. The IP address of port 1 is the RP. Access list 5 describes the group for which this device serves as RP: Device(config)# ip pim send-rp-announce gigabitethernet1/0/1 scope 31 group-list 5 Device(config)# access-list 5 permit 224.0.0.0 15.255.255.255 Example: Sparse Mode with Auto-RP The following example configures sparse mode with Auto-RP:

Device(config)# ip multicast-routing Device(config)# ip pim autorp listener Device(config)# ip pim send-rp-announce Loopback0 scope 16 group-list 1 Device(config)# ip pim send-rp-discovery Loopback1 scope 16 Device(config)# no ip pim dm-fallback Device(config)# access-list 1 permit 239.254.2.0 0.0.0.255 Device(config)# access-list 1 permit 239.254.3.0 0.0.0.255 . . . Device(config)# access-list 10 permit 224.0.1.39 Device(config)# access-list 10 permit 224.0.1.40 Device(config)# access-list 10 permit 239.254.2.0 0.0.0.255 Device(config)# access-list 10 permit 239.254.3.0 0.0.0.255 Configuring Protocol Independent Multicast (PIM) Example:

Verifying PIM Stub Routing Configuring Protocol Independent Multicast (PIM) 59