config router ospf
set router-id 1.1.1.1
config area
edit 0.0.0.0
next
end
config network
edit 1
set prefix 1.1.1.1 255.255.255.255
next
edit 2
set prefix 10.0.0.1 255.255.255.255
next
edit 3
set prefix 10.1.3.1 255.255.255.255
next
end
set passive-interface "port2"
config redistribute "connected"
end
config redistribute "static"
end
config redistribute "rip"
end
config redistribute "bgp"
end
config redistribute "isis"
end
end
config router multicast
set multicast-routing enable
config pim-sm-global
config rp-address
edit 1
set ip-address 3.3.3.3
next
end
end
config interface
edit "port2"
set pim-mode sparse-mode
set passive enable
config igmp
set access-group "MCAST_239.1.1.1"
end
next
edit "r1_r3_0"
set pim-mode sparse-mode
config igmp
set access-group "DENY_ALL"
end
next
end
end
config router ospf
set router-id 2.2.2.2
config area
edit 0.0.0.0
next
end
config network
edit 1
set prefix 2.2.2.2 255.255.255.255
next
edit 2
set prefix 10.0.0.2 255.255.255.255
next
edit 3
set prefix 10.2.4.2 255.255.255.255
next
end
set passive-interface "port3"
config redistribute "connected"
end
config redistribute "static"
end
config redistribute "rip"
end
config redistribute "bgp"
end
config redistribute "isis"
end
end
config router multicast
set multicast-routing enable
config pim-sm-global
config rp-address
edit 1
set ip-address 3.3.3.3
next
end
end
config interface
edit "port3"
set pim-mode sparse-mode
set passive enable
config igmp
set access-group "MCAST_239.1.1.1"
end
next
edit "r2_r4_0"
set pim-mode sparse-mode
config igmp
set access-group "DENY_ALL"
end
next
end
end
R1 # get router info multicast pim sparse-mode table 239.1.1.1
IP Multicast Routing Table
(*,*,RP) Entries: 0
(*,G) Entries: 1
(S,G) Entries: 6
(S,G,rpt) Entries: 6
FCR Entries: 0
(*, 239.1.1.1)
RP: 3.3.3.3
RPF nbr: 10.1.3.3
RPF idx: r1_r3_0
Upstream State: JOINED
Local:
port2
Joined:
Asserted:
port2: winner
FCR:
(10.4.0.10, 239.1.1.1)
RPF nbr: 10.1.3.3
RPF idx: r1_r3_0
SPT bit: 1
Upstream State: JOINED
Local:
Joined:
Asserted:
Outgoing:
port2
(10.4.0.10, 239.1.1.1, rpt)
RP: 3.3.3.3
RPF nbr: 10.1.3.3
RPF idx: r1_r3_0
Upstream State: NOT PRUNED
Local:
Pruned:
Outgoing:
R2 # get router info multicast pim sparse-mode table 239.1.1.1
IP Multicast Routing Table
(*,*,RP) Entries: 0
(*,G) Entries: 1
(S,G) Entries: 4
(S,G,rpt) Entries: 4
FCR Entries: 0
(*, 239.1.1.1)
RP: 3.3.3.3
RPF nbr: 10.2.4.4
RPF idx: r2_r4_0
Upstream State: JOINED
Local:
port3
Joined:
Asserted:
FCR:
(10.4.0.10, 239.1.1.1)
RPF nbr: 10.2.4.4
RPF idx: r2_r4_0
SPT bit: 1
Upstream State: JOINED
Local:
Joined:
Asserted:
Outgoing:
port3
(10.4.0.10, 239.1.1.1, rpt)
RP: 3.3.3.3
RPF nbr: 10.2.4.4
RPF idx: r2_r4_0
Upstream State: NOT PRUNED
Local:
Pruned:
Outgoing:
config router multicast
config interface
edit "port2"
unset passive
next
end
end
config router multicast
config interface
edit "port3"
unset passive
next
end
end
R2 # get router info multicast pim sparse-mode neighbour
Neighbor Interface Uptime/Expires Ver DR
Address Priority/Mode
10.0.0.1 port3 00:11:05/00:01:40 v2 1 /
10.2.4.4 r2_r4_0 05:56:04/00:01:41 v2 1 / DR
R2 # get router info multicast pim sparse-mode table 239.1.1.1
IP Multicast Routing Table
(*,*,RP) Entries: 0
(*,G) Entries: 1
(S,G) Entries: 4
(S,G,rpt) Entries: 4
FCR Entries: 0
(*, 239.1.1.1)
RP: 3.3.3.3
RPF nbr: 10.2.4.4
RPF idx: r2_r4_0
Upstream State: JOINED
Local:
port3
Joined:
Asserted:
FCR:
(10.4.0.10, 239.1.1.1)
RPF nbr: 10.2.4.4
RPF idx: r2_r4_0
SPT bit: 1
Upstream State: JOINED
Local:
Joined:
Asserted:
Outgoing:
port3
(10.4.0.10, 239.1.1.1, rpt)
RP: 3.3.3.3
RPF nbr: 10.2.4.4
RPF idx: r2_r4_0
Upstream State: NOT PRUNED
Local:
Pruned:
Outgoing:
R1 # get router info multicast pim sparse-mode neighbour
Neighbor Interface Uptime/Expires Ver DR
Address Priority/Mode
10.0.0.2 port2 00:12:52/00:01:29 v2 1 / DR
10.1.3.3 r1_r3_0 05:57:51/00:01:26 v2 1 / DR
R1 # get router info multicast pim sparse-mode table 239.1.1.1
IP Multicast Routing Table
(*,*,RP) Entries: 0
(*,G) Entries: 1
(S,G) Entries: 4
(S,G,rpt) Entries: 4
FCR Entries: 0
(*, 239.1.1.1)
RP: 0.0.0.0
RPF nbr: 0.0.0.0
RPF idx: None
Upstream State: NOT JOINED
Local:
port2
Joined:
Asserted:
FCR:
conf router multicast
config interface
edit "port2"
set dr-priority 100
next
end
end
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.