Multicast: Sparse-Mode:
Configuring Auto RP-Announce-Filter:
·
Let
me take a basic 3-router topology:
R1---fa0/0-----fa0/0---R2----fa0/1--------fa0/1-----R3
·
R2-R3:
10.1.23.0/24
·
OSPF
is configured between these 3 routers and they are able to reach all loopback
interfaces.
·
Let
me configure R2’s loopback0 as RP for all even number of groups and
·
R3’s
loopback0 as RP for all odd number of groups
·
And
R1 will be the Mapping Agent
·
We
need to enable ip pim sparse-mode under loopback0 interface in R2 and R3.
·
We
need to enable ip pim sparse-mode under loopback0 interface in he Mapping Agent
R1 also.
·
R1
is acting as multicast server and R3’s loopback0 is acting as receiver.
R2(config)#ip access-list standard EVEN
R2(config-std-nacl)#permit
224.0.0.0 0.255.255.255
R2(config-std-nacl)#permit
226.0.0.0 0.255.255.255
R2(config-std-nacl)#permit
228.0.0.0 0.255.255.255
R2(config-std-nacl)#permit
230.0.0.0 0.255.255.255
R2(config-std-nacl)#permit
232.0.0.0 0.255.255.255
R2(config-std-nacl)#permit
234.0.0.0 0.255.255.255
R2(config-std-nacl)#permit
236.0.0.0 0.255.255.255
R2(config-std-nacl)#permit
238.0.0.0 0.255.255.255
R2(config-std-nacl)#
R2(config-std-nacl)#exit
R2(config)# ip pim send-rp-announce loopback 0 scope 255
group-list EVEN interval 5
R2(config)#
R3(config)#ip access-list standard ODD
R3(config-std-nacl)#permit
225.0.0.0 0.255.255.255
R3(config-std-nacl)#permit
227.0.0.0 0.255.255.255
R3(config-std-nacl)#permit
229.0.0.0 0.255.255.255
R3(config-std-nacl)#permit
231.0.0.0 0.255.255.255
R3(config-std-nacl)#permit
233.0.0.0 0.255.255.255
R3(config-std-nacl)#permit
235.0.0.0 0.255.255.255
R3(config-std-nacl)#permit
237.0.0.0 0.255.255.255
R3(config-std-nacl)#permit
239.0.0.0 0.255.255.255
R3(config-std-nacl)#
R3(config)#ip pim send-rp-announce loopback 0 scope 255
group-list ODD interval 5
R1(config)#
R1(config)#ip access-list standard EVEN
R1(config-std-nacl)#permit
224.0.0.0 0.255.255.255
R1(config-std-nacl)#permit
226.0.0.0 0.255.255.255
R1(config-std-nacl)#permit
228.0.0.0 0.255.255.255
R1(config-std-nacl)#permit
230.0.0.0 0.255.255.255
R1(config-std-nacl)#permit
232.0.0.0 0.255.255.255
R1(config-std-nacl)#permit
234.0.0.0 0.255.255.255
R1(config-std-nacl)#permit
236.0.0.0 0.255.255.255
R1(config-std-nacl)#permit
238.0.0.0 0.255.255.255
R1(config-std-nacl)#
R1(config-std-nacl)#
R1(config-std-nacl)#
R1(config-std-nacl)#ip access-list standard ODD
R1(config-std-nacl)#permit
225.0.0.0 0.255.255.255
R1(config-std-nacl)#permit
227.0.0.0 0.255.255.255
R1(config-std-nacl)#permit
229.0.0.0 0.255.255.255
R1(config-std-nacl)#permit
231.0.0.0 0.255.255.255
R1(config-std-nacl)#permit
233.0.0.0 0.255.255.255
R1(config-std-nacl)#permit
235.0.0.0 0.255.255.255
R1(config-std-nacl)#permit
237.0.0.0 0.255.255.255
R1(config-std-nacl)#permit
239.0.0.0 0.255.255.255
R1(config-std-nacl)#
R1(config-std-nacl)#
R1(config-std-nacl)#exit
R1(config)#
R1(config)#ip access-list standard R2-EVEN
R1(config-std-nacl)#permit
2.2.2.2
R1(config-std-nacl)#exit
R1(config)#ip access-list standard R3-ODD
R1(config-std-nacl)#permit
3.3.3.3
R1(config-std-nacl)#
R1(config)#ip
pim send-rp-discovery scope 255
R1(config)#ip
pim rp-announce-filter rp-list R2-EVEN group-list EVEN
R1(config)#ip
pim rp-announce-filter rp-list R3-ODD group-list ODD
R1(config)#
·
Now, let me check
RP mapping details:
R1#show ip pim
rp mapping
PIM
Group-to-RP Mappings
This
system is an RP-mapping agent
Group(s)
224.0.0.0/8
RP 2.2.2.2 (?), v2v1
Info source: 2.2.2.2 (?), elected via
Auto-RP
Uptime: 00:00:34, expires: 00:00:11
Group(s)
225.0.0.0/8
RP 3.3.3.3 (?), v2v1
Info source: 3.3.3.3 (?), elected via
Auto-RP
Uptime: 00:00:31, expires: 00:00:12
Group(s)
226.0.0.0/8
RP 2.2.2.2 (?), v2v1
Info source: 2.2.2.2 (?), elected via
Auto-RP
Uptime: 00:00:34, expires: 00:00:11
Group(s)
227.0.0.0/8
RP 3.3.3.3 (?), v2v1
Info source: 3.3.3.3 (?), elected via
Auto-RP
Uptime: 00:00:31, expires: 00:00:12
Group(s)
228.0.0.0/8
RP 2.2.2.2 (?), v2v1
Info source: 2.2.2.2 (?), elected via
Auto-RP
Uptime: 00:00:34, expires: 00:00:11
Group(s)
229.0.0.0/8
RP
3.3.3.3 (?), v2v1
Info source: 3.3.3.3 (?), elected via
Auto-RP
Uptime: 00:00:32, expires: 00:00:11
Group(s)
230.0.0.0/8
RP 2.2.2.2 (?), v2v1
Info source: 2.2.2.2 (?), elected via
Auto-RP
Uptime: 00:00:35, expires: 00:00:10
Group(s)
231.0.0.0/8
RP 3.3.3.3 (?), v2v1
Info source: 3.3.3.3 (?), elected via
Auto-RP
Uptime: 00:00:32, expires: 00:00:11
Group(s)
232.0.0.0/8
RP 2.2.2.2 (?), v2v1
Info source: 2.2.2.2 (?), elected via
Auto-RP
Uptime: 00:00:35, expires: 00:00:11
Group(s)
233.0.0.0/8
RP 3.3.3.3 (?), v2v1
Info source: 3.3.3.3 (?), elected via
Auto-RP
Uptime: 00:00:32, expires: 00:00:11
Group(s)
234.0.0.0/8
RP 2.2.2.2 (?), v2v1
Info source: 2.2.2.2 (?), elected via
Auto-RP
Uptime: 00:00:35, expires: 00:00:10
Group(s)
235.0.0.0/8
RP 3.3.3.3 (?), v2v1
Info source: 3.3.3.3 (?), elected via
Auto-RP
Uptime: 00:00:32, expires: 00:00:11
Group(s)
236.0.0.0/8
RP 2.2.2.2 (?), v2v1
Info source: 2.2.2.2 (?), elected via
Auto-RP
Uptime: 00:00:36, expires: 00:00:15
Group(s)
237.0.0.0/8
RP 3.3.3.3 (?), v2v1
Info source: 3.3.3.3 (?), elected via
Auto-RP
Uptime: 00:00:32, expires: 00:00:11
Group(s)
238.0.0.0/8
RP 2.2.2.2 (?), v2v1
Info source: 2.2.2.2 (?), elected via
Auto-RP
Uptime: 00:00:36, expires: 00:00:15
Group(s)
239.0.0.0/8
RP 3.3.3.3 (?), v2v1
Info source: 3.3.3.3 (?), elected via
Auto-RP
Uptime: 00:00:32, expires: 00:00:10
R1#
R2#show ip pim
rp mapping
PIM
Group-to-RP Mappings
This
system is an RP (Auto-RP)
Group(s)
224.0.0.0/8
RP 2.2.2.2 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:43, expires: 00:02:20
Group(s)
225.0.0.0/8
RP 3.3.3.3 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:40, expires: 00:02:16
Group(s)
226.0.0.0/8
RP 2.2.2.2 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:43, expires: 00:02:19
Group(s)
227.0.0.0/8
RP 3.3.3.3 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:40, expires: 00:02:19
Group(s)
228.0.0.0/8
RP 2.2.2.2 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:43, expires: 00:02:17
Group(s)
229.0.0.0/8
RP 3.3.3.3 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:40, expires: 00:02:15
Group(s)
230.0.0.0/8
RP 2.2.2.2 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:44, expires: 00:02:17
Group(s)
231.0.0.0/8
RP 3.3.3.3 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:40, expires: 00:02:14
Group(s)
232.0.0.0/8
RP 2.2.2.2 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:44, expires: 00:02:19
Group(s)
233.0.0.0/8
RP 3.3.3.3 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:40, expires: 00:02:18
Group(s)
234.0.0.0/8
RP 2.2.2.2 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:44, expires: 00:02:18
Group(s)
235.0.0.0/8
RP 3.3.3.3 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:41, expires: 00:02:15
Group(s)
236.0.0.0/8
RP 2.2.2.2 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:44, expires: 00:02:19
Group(s)
237.0.0.0/8
RP 3.3.3.3 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:41, expires: 00:02:16
Group(s)
238.0.0.0/8
RP 2.2.2.2 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:44, expires: 00:02:17
Group(s)
239.0.0.0/8
RP 3.3.3.3 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:41, expires: 00:02:18
R2#
R3#show ip pim
rp mapping
PIM
Group-to-RP Mappings
This
system is an RP (Auto-RP)
Group(s)
224.0.0.0/8
RP 2.2.2.2 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:51, expires: 00:02:10
Group(s)
225.0.0.0/8
RP 3.3.3.3 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:47, expires: 00:02:12
Group(s)
226.0.0.0/8
RP 2.2.2.2 (?), v2v1
Info
source: 10.1.12.1 (?), elected via Auto-RP
Uptime: 00:00:51, expires: 00:02:09
Group(s)
227.0.0.0/8
RP 3.3.3.3 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:47, expires: 00:02:12
Group(s)
228.0.0.0/8
RP 2.2.2.2 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:51, expires: 00:02:12
Group(s)
229.0.0.0/8
RP 3.3.3.3 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:48, expires: 00:02:12
Group(s)
230.0.0.0/8
RP 2.2.2.2 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:52, expires: 00:02:10
Group(s)
231.0.0.0/8
RP 3.3.3.3 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:48, expires: 00:02:09
Group(s)
232.0.0.0/8
RP 2.2.2.2 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:52, expires: 00:02:12
Group(s)
233.0.0.0/8
RP 3.3.3.3 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:48, expires: 00:02:11
Group(s)
234.0.0.0/8
RP 2.2.2.2 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:52, expires: 00:02:12
Group(s)
235.0.0.0/8
RP 3.3.3.3 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:48, expires: 00:02:10
Group(s)
236.0.0.0/8
RP 2.2.2.2 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:52, expires: 00:02:10
Group(s)
237.0.0.0/8
RP 3.3.3.3 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:48, expires: 00:02:11
Group(s)
238.0.0.0/8
RP 2.2.2.2 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:52, expires: 00:02:08
Group(s)
239.0.0.0/8
RP 3.3.3.3 (?), v2v1
Info source: 10.1.12.1 (?), elected via
Auto-RP
Uptime: 00:00:48, expires: 00:02:07
R3#
Observation:
·
R2’s
loopback0, 2.2.2.2 is RP for all even number groups
·
R3’s
loopback0, 3.3.3.3 is RP for all odd number groups
·
R1’s
loopback0 is the mapping agent
No comments:
Post a Comment