PIM



Auto-RPshow pim rps detail or extensive




Auto-RP on Candidate

enable PIM dense mode:

+ add dense-group ( 224.0.1.39 and 224.0.1.40 )

224.0.1.39: announcement

224.0.1.40: discovery


set protocols pim rp auto-rp announce

Electors


SAME +

set protocols pim rp auto-rp mapping


if multiple electors, the one with highest IP@ is the RP Agent

other Elector Rx msg from higher IP@ agent stop sending messages

Client

Dense Mode +

set protocols pim rp auto-rp








BSRneed to be supported by all router / hop-by-hop messages
candidate to become BSRrouter with bootstrap-priority ( 0= can't be elected   and 255 the highest value)
BSR Election

single BSR is elected

1- highest priority

2- highest loopback address

( in Junos: if multiple address a setup , the used one by the pim protocol: 1- primary address or the lowest IP is selected! )






all candidate RPsend c-rp-av message
BSR collect all c-rp-adv messagecreate a rp-set ( list of rp and their group )

send in the domain the rp-set in a 






Client select RP from rp-set1- Full list of RP: the most specific group > RP list2

2- RP list2: rp wit highest priority for grp > RP list 3

3- RP list3: highest hash ( grp@, IP@, mask length )  > list4

4- RP list4: Highest IP@
Configuration
BSR

set protocols pim rps bootstrap-priority  50

set protocols pim interface all mode sparse

RP

set protocols pim rp local address <loopback IP@>

set protocols pim rp local group-ranges 224.0.0.0/4

set protocols pim interface all mode sparse

all other routerset protocols pim interface all mode sparse


Show commands

show pim bootstrap

show pim rps

show pim rps extended

show pim interfaces

show pim neighbors detail

show pim join extensive

show multicast route extensive



show multicast rpf

show route table inet.1


Clear and request commands

clear pim join < 244.7.7.7>