hostname R1
!
ip multicast-routing distributed
interface Loopback0
ip address 1.1.1.1 255.255.255.255
ip pim sparse-mode
ip ospf 1 area 0
!
interface GigabitEthernet1
ip address 10.1.4.1 255.255.255.0
ip pim sparse-mode
ip ospf network point-to-point
ip ospf 1 area 0
!
interface GigabitEthernet2
ip address 192.168.1.254 255.255.255.0
ip pim sparse-mode
ip igmp version 3
ip ospf network point-to-point
ip ospf 1 area 0
!
router ospf 1
router-id 1.1.1.1
passive-interface default
no passive-interface GigabitEthernet1
!
ip pim bsr-candidate Loopback0 0
ip pim rp-candidate Loopback0 priority 255
!
ip pim ssm default
!
R2
hostname R2
!
ip multicast-routing distributed
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
ip pim sparse-mode
ip ospf 1 area 0
!
interface GigabitEthernet1
ip address 10.2.4.2 255.255.255.0
ip pim sparse-mode
ip ospf network point-to-point
ip ospf 1 area 0
!
interface GigabitEthernet2
ip address 192.168.2.254 255.255.255.0
ip pim sparse-mode
ip igmp version 3
ip ospf network point-to-point
ip ospf 1 area 0
!
router ospf 1
router-id 2.2.2.2
passive-interface default
no passive-interface GigabitEthernet1
!
ip pim ssm default
R3
hostname R3
!
ip multicast-routing distributed
interface Loopback0
ip address 3.3.3.3 255.255.255.255
ip pim sparse-mode
ip ospf 1 area 0
!
interface GigabitEthernet1
ip address 10.3.4.3 255.255.255.0
ip pim sparse-mode
ip ospf network point-to-point
ip ospf 1 area 0
!
interface GigabitEthernet2
ip address 192.168.3.254 255.255.255.0
ip pim sparse-mode
ip igmp version 3
ip ospf network point-to-point
ip ospf 1 area 0
!
router ospf 1
router-id 3.3.3.3
passive-interface default
no passive-interface GigabitEthernet1
!
ip pim ssm default
R4
hostname R4
!
ip multicast-routing distributed
interface Loopback0
ip address 4.4.4.4 255.255.255.255
ip pim sparse-mode
ip ospf 1 area 0
!
interface GigabitEthernet1
ip address 10.1.4.4 255.255.255.0
ip pim sparse-mode
ip ospf network point-to-point
ip ospf 1 area 0
!
interface GigabitEthernet2
ip address 10.2.4.4 255.255.255.0
ip pim sparse-mode
ip ospf network point-to-point
ip ospf 1 area 0
!
interface GigabitEthernet3
ip address 10.3.4.4 255.255.255.0
ip pim sparse-mode
ip ospf network point-to-point
ip ospf 1 area 0
!
router ospf 1
router-id 4.4.4.4
passive-interface default
no passive-interface GigabitEthernet1
no passive-interface GigabitEthernet2
no passive-interface GigabitEthernet3
!
ip pim bsr-candidate Loopback0 0
ip pim rp-candidate Loopback0 priority 128
!
ip pim ssm default
!
HOST1
hostname HOST1
!
ip multicast-routing
!
interface GigabitEthernet0/0
ip address 192.168.1.1 255.255.255.0
HOST2
hostname HOST2
!
ip multicast-routing
!
interface GigabitEthernet0/0
ip address 192.168.2.1 255.255.255.0
ip igmp join-group 232.0.0.1 source 192.168.1.1
ip igmp join-group 225.1.1.1
ip igmp version 3
HOST3
hostname HOST2
!
ip multicast-routing
!
interface GigabitEthernet0/0
ip address 192.168.3.1 255.255.255.0
ip igmp join-group 232.0.0.1 source 192.168.1.1
ip igmp join-group 225.1.1.1
ip igmp version 3
Verification
HOST1
HOST1#ping 225.1.1.1 repeat 5
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 225.1.1.1, timeout is 2 seconds:
Reply to request 0 from 192.168.2.1, 34 ms
Reply to request 0 from 192.168.3.1, 35 ms
Reply to request 1 from 192.168.2.1, 13 ms
Reply to request 1 from 192.168.3.1, 51 ms
Reply to request 1 from 192.168.2.1, 51 ms
Reply to request 1 from 192.168.3.1, 13 ms
Reply to request 2 from 192.168.2.1, 2 ms
Reply to request 2 from 192.168.3.1, 2 ms
Reply to request 3 from 192.168.2.1, 2 ms
Reply to request 3 from 192.168.3.1, 2 ms
Reply to request 4 from 192.168.2.1, 2 ms
Reply to request 4 from 192.168.3.1, 2 ms
HOST1#
HOST2
HOST2#show ip igmp membership
Flags: A - aggregate, T - tracked
L - Local, S - static, V - virtual, R - Reported through v3
I - v3lite, U - Urd, M - SSM (S,G) channel
1,2,3 - The version of IGMP, the group is in
Channel/Group-Flags:
/ - Filtering entry (Exclude mode (S,G), Include mode (G))
Reporter:
<mac-or-ip-address> - last reporter if group is not explicitly tracked
<n>/<m> - <n> reporter in include mode, <m> reporter in exclude
Channel/Group Reporter Uptime Exp. Flags Interface
*,232.0.0.1 192.168.2.1 01:02:23 stop 3LA Gi0/0
*,225.1.1.1 192.168.2.1 00:12:39 never 3LA Gi0/0
HOST2#
HOST3
HOST3#show ip igmp membership
Flags: A - aggregate, T - tracked
L - Local, S - static, V - virtual, R - Reported through v3
I - v3lite, U - Urd, M - SSM (S,G) channel
1,2,3 - The version of IGMP, the group is in
Channel/Group-Flags:
/ - Filtering entry (Exclude mode (S,G), Include mode (G))
Reporter:
<mac-or-ip-address> - last reporter if group is not explicitly tracked
<n>/<m> - <n> reporter in include mode, <m> reporter in exclude
Channel/Group Reporter Uptime Exp. Flags Interface
*,232.0.0.1 192.168.3.1 01:02:46 stop 3LA Gi0/0
*,225.1.1.1 192.168.3.1 00:13:06 never 3LA Gi0/0
HOST3#
R1
R1#show ip pim rp
Group: 225.1.1.1, RP: 4.4.4.4, uptime 00:18:37, expires 00:01:58
R1#show ip pim rp-hash 225.1.1.1
RP 4.4.4.4 (?), v2
Info source: 4.4.4.4 (?), via bootstrap, priority 128, holdtime 150
Uptime: 00:18:37, expires: 00:01:58
PIMv2 Hash Value (mask 0.0.0.0)
RP 4.4.4.4, via bootstrap, priority 128, hash value 1642267698
RP 1.1.1.1, via bootstrap, priority 255, hash value 332477713
R1#show ip pim rp mapping
PIM Group-to-RP Mappings
This system is a candidate RP (v2)
Group(s) 224.0.0.0/4
RP 4.4.4.4 (?), v2
Info source: 4.4.4.4 (?), via bootstrap, priority 128, holdtime 150
Uptime: 00:18:37, expires: 00:01:58
RP 1.1.1.1 (?), v2
Info source: 4.4.4.4 (?), via bootstrap, priority 255, holdtime 150
Uptime: 00:19:03, expires: 00:01:59
R1#show ip pim tunnel
Tunnel0
Type : PIM Encap
RP : 1.1.1.1*
Source : 1.1.1.1
State : UP
Last event : Created (00:19:03)
Tunnel2
Type : PIM Encap
RP : 4.4.4.4
Source : 10.1.4.1
State : UP
Last event : Created (00:18:37)
Tunnel1
Type : PIM Decap
RP : 1.1.1.1*
Source : -
State : UP
Last event : Created (00:19:03)
R1#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
L - Local, P - Pruned, R - RP-bit set, F - Register flag,
T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
U - URD, I - Received Source Specific Host Report,
Z - Multicast Tunnel, z - MDT-data group sender,
Y - Joined MDT-data group, y - Sending to MDT-data group,
G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
Q - Received BGP S-A Route, q - Sent BGP S-A Route,
V - RD & Vector, v - Vector, p - PIM Joins on route,
x - VxLAN group, c - PFP-SA cache created entry,
* - determined by Assert, # - iif-starg configured on rpf intf,
e - encap-helper tunnel flag
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
(192.168.1.1, 232.0.0.1), 01:01:07/00:03:23, flags: sT
Incoming interface: GigabitEthernet2, RPF nbr 0.0.0.0
Outgoing interface list:
GigabitEthernet1, Forward/Sparse, 01:01:07/00:03:23
(*, 225.1.1.1), 00:00:19/stopped, RP 4.4.4.4, flags: SPF
Incoming interface: GigabitEthernet1, RPF nbr 10.1.4.4
Outgoing interface list: Null
(192.168.1.1, 225.1.1.1), 00:00:19/00:03:14, flags: FT
Incoming interface: GigabitEthernet2, RPF nbr 0.0.0.0
Outgoing interface list:
GigabitEthernet1, Forward/Sparse, 00:00:19/00:03:12
(*, 224.0.1.40), 01:10:50/00:02:14, RP 0.0.0.0, flags: DCL
Incoming interface: Null, RPF nbr 0.0.0.0
Outgoing interface list:
Loopback0, Forward/Sparse, 01:10:48/00:02:14
R1#
R2
R2#show ip pim rp
Group: 225.1.1.1, RP: 4.4.4.4, uptime 00:23:06, expires 00:01:33
R2#show ip pim rp-hash 225.1.1.1
RP 4.4.4.4 (?), v2
Info source: 4.4.4.4 (?), via bootstrap, priority 128, holdtime 150
Uptime: 00:23:06, expires: 00:01:33
PIMv2 Hash Value (mask 0.0.0.0)
RP 4.4.4.4, via bootstrap, priority 128, hash value 1642267698
RP 1.1.1.1, via bootstrap, priority 255, hash value 332477713
R2#show ip pim rp mapping
PIM Group-to-RP Mappings
Group(s) 224.0.0.0/4
RP 4.4.4.4 (?), v2
Info source: 4.4.4.4 (?), via bootstrap, priority 128, holdtime 150
Uptime: 00:23:06, expires: 00:01:33
RP 1.1.1.1 (?), v2
Info source: 4.4.4.4 (?), via bootstrap, priority 255, holdtime 150
Uptime: 00:23:32, expires: 00:01:32
R2#show ip pim tunnel
Tunnel0
Type : PIM Encap
RP : 1.1.1.1
Source : 10.2.4.2
State : UP
Last event : Created (00:23:32)
Tunnel1
Type : PIM Encap
RP : 4.4.4.4
Source : 10.2.4.2
State : UP
Last event : Created (00:23:06)
R2#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
L - Local, P - Pruned, R - RP-bit set, F - Register flag,
T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
U - URD, I - Received Source Specific Host Report,
Z - Multicast Tunnel, z - MDT-data group sender,
Y - Joined MDT-data group, y - Sending to MDT-data group,
G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
Q - Received BGP S-A Route, q - Sent BGP S-A Route,
V - RD & Vector, v - Vector, p - PIM Joins on route,
x - VxLAN group, c - PFP-SA cache created entry,
* - determined by Assert, # - iif-starg configured on rpf intf,
e - encap-helper tunnel flag
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
(192.168.1.1, 232.0.0.1), 01:05:36/00:02:23, flags: sTI
Incoming interface: GigabitEthernet1, RPF nbr 10.2.4.4
Outgoing interface list:
GigabitEthernet2, Forward/Sparse, 01:05:36/00:02:23
(*, 225.1.1.1), 00:22:41/stopped, RP 4.4.4.4, flags: SJC
Incoming interface: GigabitEthernet1, RPF nbr 10.2.4.4
Outgoing interface list:
GigabitEthernet2, Forward/Sparse, 00:22:41/00:02:23
(192.168.1.1, 225.1.1.1), 00:04:48/00:02:00, flags: JT
Incoming interface: GigabitEthernet1, RPF nbr 10.2.4.4
Outgoing interface list:
GigabitEthernet2, Forward/Sparse, 00:04:48/00:02:23
(*, 224.0.1.40), 01:14:53/00:02:08, RP 0.0.0.0, flags: DCL
Incoming interface: Null, RPF nbr 0.0.0.0
Outgoing interface list:
Loopback0, Forward/Sparse, 01:14:51/00:02:08
R2#
R3
R3#show ip pim rp
Group: 225.1.1.1, RP: 4.4.4.4, uptime 00:19:39, expires 00:02:00
R3#show ip pim rp-hash 225.1.1.1
RP 4.4.4.4 (?), v2
Info source: 4.4.4.4 (?), via bootstrap, priority 128, holdtime 150
Uptime: 00:19:39, expires: 00:02:00
PIMv2 Hash Value (mask 0.0.0.0)
RP 4.4.4.4, via bootstrap, priority 128, hash value 1642267698
RP 1.1.1.1, via bootstrap, priority 255, hash value 332477713
R3#show ip pim rp mapping
PIM Group-to-RP Mappings
Group(s) 224.0.0.0/4
RP 4.4.4.4 (?), v2
Info source: 4.4.4.4 (?), via bootstrap, priority 128, holdtime 150
Uptime: 00:19:39, expires: 00:02:00
RP 1.1.1.1 (?), v2
Info source: 4.4.4.4 (?), via bootstrap, priority 255, holdtime 150
Uptime: 00:20:05, expires: 00:02:01
R3#show ip pim tunnel
Tunnel0
Type : PIM Encap
RP : 1.1.1.1
Source : 10.3.4.3
State : UP
Last event : Created (00:20:05)
Tunnel1
Type : PIM Encap
RP : 4.4.4.4
Source : 10.3.4.3
State : UP
Last event : Created (00:19:39)
R3#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
L - Local, P - Pruned, R - RP-bit set, F - Register flag,
T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
U - URD, I - Received Source Specific Host Report,
Z - Multicast Tunnel, z - MDT-data group sender,
Y - Joined MDT-data group, y - Sending to MDT-data group,
G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
Q - Received BGP S-A Route, q - Sent BGP S-A Route,
V - RD & Vector, v - Vector, p - PIM Joins on route,
x - VxLAN group, c - PFP-SA cache created entry,
* - determined by Assert, # - iif-starg configured on rpf intf,
e - encap-helper tunnel flag
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
(192.168.1.1, 232.0.0.1), 00:56:38/00:02:24, flags: sTI
Incoming interface: GigabitEthernet1, RPF nbr 10.3.4.4
Outgoing interface list:
GigabitEthernet2, Forward/Sparse, 00:56:38/00:02:24
(*, 225.1.1.1), 00:18:58/stopped, RP 4.4.4.4, flags: SJC
Incoming interface: GigabitEthernet1, RPF nbr 10.3.4.4
Outgoing interface list:
GigabitEthernet2, Forward/Sparse, 00:18:58/00:02:24
(192.168.1.1, 225.1.1.1), 00:01:21/00:01:38, flags: JT
Incoming interface: GigabitEthernet1, RPF nbr 10.3.4.4
Outgoing interface list:
GigabitEthernet2, Forward/Sparse, 00:01:21/00:02:24
(*, 224.0.1.40), 01:10:19/00:02:43, RP 0.0.0.0, flags: DCL
Incoming interface: Null, RPF nbr 0.0.0.0
Outgoing interface list:
Loopback0, Forward/Sparse, 01:10:17/00:02:43
R3#
R4
R4#show ip pim rp
Group: 225.1.1.1, RP: 4.4.4.4
R4#show ip pim rp-hash 225.1.1.1
RP 4.4.4.4 (?), v2
Info source: 4.4.4.4 (?), via bootstrap, priority 128, holdtime 150
Uptime: 00:19:51, expires: 00:01:40
PIMv2 Hash Value (mask 0.0.0.0)
RP 4.4.4.4, via bootstrap, priority 128, hash value 1642267698
RP 1.1.1.1, via bootstrap, priority 255, hash value 332477713
R4#show ip pim rp mapping
PIM Group-to-RP Mappings
This system is a candidate RP (v2)
This system is the Bootstrap Router (v2)
Group(s) 224.0.0.0/4
RP 4.4.4.4 (?), v2
Info source: 4.4.4.4 (?), via bootstrap, priority 128, holdtime 150
Uptime: 00:19:51, expires: 00:01:40
RP 1.1.1.1 (?), v2
Info source: 1.1.1.1 (?), via bootstrap, priority 255, holdtime 150
Uptime: 00:20:18, expires: 00:01:32
R4#show ip pim tunnel
Tunnel0
Type : PIM Encap
RP : 1.1.1.1
Source : 10.1.4.4
State : UP
Last event : Created (00:20:18)
Tunnel2
Type : PIM Encap
RP : 4.4.4.4*
Source : 4.4.4.4
State : UP
Last event : Created (00:19:51)
Tunnel1*
Type : PIM Decap
RP : 4.4.4.4*
Source : -
State : UP
Last event : Created (00:19:51)
R4#show ip mroute
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
L - Local, P - Pruned, R - RP-bit set, F - Register flag,
T - SPT-bit set, J - Join SPT, M - MSDP created entry, E - Extranet,
X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
U - URD, I - Received Source Specific Host Report,
Z - Multicast Tunnel, z - MDT-data group sender,
Y - Joined MDT-data group, y - Sending to MDT-data group,
G - Received BGP C-Mroute, g - Sent BGP C-Mroute,
N - Received BGP Shared-Tree Prune, n - BGP C-Mroute suppressed,
Q - Received BGP S-A Route, q - Sent BGP S-A Route,
V - RD & Vector, v - Vector, p - PIM Joins on route,
x - VxLAN group, c - PFP-SA cache created entry,
* - determined by Assert, # - iif-starg configured on rpf intf,
e - encap-helper tunnel flag
Outgoing interface flags: H - Hardware switched, A - Assert winner, p - PIM Join
Timers: Uptime/Expires
Interface state: Interface, Next-Hop or VCD, State/Mode
(192.168.1.1, 232.0.0.1), 01:02:21/00:03:00, flags: sT
Incoming interface: GigabitEthernet1, RPF nbr 10.1.4.1
Outgoing interface list:
GigabitEthernet3, Forward/Sparse, 00:56:50/00:02:44
GigabitEthernet2, Forward/Sparse, 01:02:21/00:03:00
(*, 225.1.1.1), 00:19:26/00:03:01, RP 4.4.4.4, flags: S
Incoming interface: Null, RPF nbr 0.0.0.0
Outgoing interface list:
GigabitEthernet3, Forward/Sparse, 00:19:11/00:03:01
GigabitEthernet2, Forward/Sparse, 00:19:26/00:02:43
(192.168.1.1, 225.1.1.1), 00:01:33/00:01:59, flags: T
Incoming interface: GigabitEthernet1, RPF nbr 10.1.4.1
Outgoing interface list:
GigabitEthernet2, Forward/Sparse, 00:01:33/00:02:55
GigabitEthernet3, Forward/Sparse, 00:01:33/00:03:01
(*, 224.0.1.40), 01:09:52/00:02:13, RP 0.0.0.0, flags: DCL
Incoming interface: Null, RPF nbr 0.0.0.0
Outgoing interface list:
Loopback0, Forward/Sparse, 01:09:50/00:02:13
R4#