3.2.b Implement and troubleshoot IPv4 protocol independent multicast

3.2.b [i] PIM dense mode, sparse mode, sparse-dense mode

it is imperative with multicast that  unicast routing be firmly in place and functional…

ccieordie_pim

R5#sh ip route | b Gate
Gateway of last resort is not set

O    192.168.46.0/24 [110/4] via 192.168.15.1, 00:00:29, FastEthernet2/0
O    192.168.12.0/24 [110/2] via 192.168.15.1, 00:00:29, FastEthernet2/0
1.0.0.0/32 is subnetted, 1 subnets
O       1.1.1.1 [110/2] via 192.168.15.1, 00:00:29, FastEthernet2/0
O    192.168.13.0/24 [110/2] via 192.168.15.1, 00:00:29, FastEthernet2/0
2.0.0.0/32 is subnetted, 1 subnets
O       2.2.2.2 [110/3] via 192.168.15.1, 00:00:29, FastEthernet2/0
3.0.0.0/32 is subnetted, 1 subnets
O       3.3.3.3 [110/3] via 192.168.15.1, 00:00:29, FastEthernet2/0
C    192.168.15.0/24 is directly connected, FastEthernet2/0
4.0.0.0/32 is subnetted, 1 subnets
O       4.4.4.4 [110/4] via 192.168.15.1, 00:00:29, FastEthernet2/0
O    192.168.24.0/24 [110/3] via 192.168.15.1, 00:00:29, FastEthernet2/0
5.0.0.0/32 is subnetted, 1 subnets
C       5.5.5.5 is directly connected, Loopback0
6.0.0.0/32 is subnetted, 1 subnets
O       6.6.6.6 [110/5] via 192.168.15.1, 00:00:19, FastEthernet2/0
O    192.168.34.0/24 [110/3] via 192.168.15.1, 00:00:30, FastEthernet2/0

a quick scan of the ip routing table shows the topology in place, however, this would be a good idea  as well, and it is something i try to be in the habit of doing…

foreach address {
1.1.1.1
2.2.2.2
3.3.3.3
4.4.4.4
5.5.5.5
6.6.6.6
192.168.12.1
192.168.12.2
192.168.13.1
192.168.13.3
192.168.24.2
192.168.24.4
192.168.34.3
192.168.34.4
192.168.46.4
192.168.46.6
} { ping $address }

now that we are certain there is full reachability with the IGP,  turn on multicast routing globally and then configure dense, sparse, or sparse-dense on the participating interfaces

R5(config-if)#do sh run int f2/0
Building configuration…

Current configuration : 116 bytes
!
interface FastEthernet2/0
ip address 192.168.15.5 255.255.255.0
ip pim dense-mode
duplex auto
speed auto

R5(config-if)#do sh run int f2/0
Building configuration…

Current configuration : 117 bytes
!
interface FastEthernet2/0
ip address 192.168.15.5 255.255.255.0
ip pim sparse-mode
duplex auto
speed auto

R5(config-if)#do sh run int f2/0
Building configuration…

Current configuration : 123 bytes
!
interface FastEthernet2/0
ip address 192.168.15.5 255.255.255.0
ip pim sparse-dense-mode
duplex auto
speed auto

verify

R5(config-if)#do sh ip pim neigh
PIM Neighbor Table
Mode: B – Bidir Capable, DR – Designated Router, N – Default DR Priority,
S – State Refresh Capable
Neighbor          Interface                Uptime/Expires    Ver   DR
Address                                                            Prio/Mode
192.168.15.1      FastEthernet2/0          00:00:25/00:01:19 v2    1 / S

put a join on r6 for testing…

R6(config-if)#ip igmp join 224.1.1.1

R5(config-if)#do ping 224.1.1.1

Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 224.1.1.1, timeout is 2 seconds:

Reply to request 0 from 192.168.46.6, 76 ms

do an mtrace:

R5#mtrace 192.168.15.5 192.168.46.6 224.1.1.1
Type escape sequence to abort.
Mtrace from 192.168.15.5 to 192.168.46.6 via group 224.1.1.1
From source (?) to destination (?)
Querying full reverse path…
0  192.168.46.6
-1  192.168.34.4 PIM  [192.168.15.0/24]
-2  192.168.34.3 PIM  [192.168.15.0/24]
-3  192.168.13.1 PIM  [192.168.15.0/24]
-4  192.168.15.5
R5#mtrace 192.168.15.5 192.168.46.6
Type escape sequence to abort.
Mtrace from 192.168.15.5 to 192.168.46.6 via RPF
From source (?) to destination (?)
Querying full reverse path…
0  192.168.46.6
-1  192.168.46.6 PIM  [192.168.15.0/24]
-2  192.168.46.4 PIM  [192.168.15.0/24]
-3  192.168.34.3 PIM  [192.168.15.0/24]
-4  192.168.13.1 PIM  [192.168.15.0/24]
-5  192.168.15.5