#
# Sample config for pimnbr
#	- PIMv2 Multiaccess LAN Prune/Join
#
#                      |   +----+ 
#                      +---+ R2 +---+ (H1)
#         N1 +----+ N2 |   +----+
#       S+---+*R1*+----|  
#        ->  +----+    |   +----+ 
#                      +---+ R3 +---+ (H2)
#                      |   +----+         
# 
# 	N1:192.168.50.0/24, N2:192.168.100.0/24
#	S:192.168.50.3
#       (S send multicast data to 224.1.1.1) 
#--
#
# Define PIM router
#
# as R2
router-list 1 addr 192.168.100.4
# as R3
router-list 2 addr 192.168.100.5
# RPF neighbor is R1
rpf 192.168.50.0/24 192.168.100.1
#
#  Define Join/Prune messages
# prune
jp-list 10 upnbr 192.168.100.1 holdtime 300
jp-list 10 group 224.1.1.1/32 prune 192.168.50.3/32
# join
jp-list 20 upnbr 192.168.100.1 holdtime 300
jp-list 20 group 224.1.1.1/32 join 192.168.50.3/32
#
debug
#
# Start
# 
router up 1
wait 10
router up 2
# waiting establish neighbor agency and receive multicast data
wait 30
# as H2 leave 
router adv 2 join-prune 10
wait 1
# as H1 keep join. send prune-override Join 
router adv 1 join-prune 20
wait 300
quit
