#
# Sample config for pimnbr
#	- Basic PIM v2 Flood and Prune (for PIM-DM)
#
#          N1 +----+  N2  +----+ N3
#       S +---+*R1*+------+ R2 +---+ (H)
#         ->  +----+      +----+ 
#
# 	N1:192.168.40.0/24, N2:192.168.100.0/24
#	S:192.168.40.6
#       (S send multicast data to 224.1.1.1) 
# --
#
# Define PIM router
# as R2
router-list 1 addr 192.168.100.4
router-list 1 tracefile pim2.log
# RPF neighbor is R1
rpf 192.168.40.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.40.6/32
# join
jp-list 20 upnbr 192.168.100.1 holdtime 300
jp-list 20 group 224.1.1.1/32 join 192.168.40.6/32
#
debug detail
#
# Start
# 
router up 1
# waiting establish neighbor agency and receive multicast data
wait 60
# as H leave group 
join-prune send fe0 jp-list 10
wait 60
# after 60s,as H join group
graft send fe0 jp-list 20 
wait 60
# after 60s,as H leave group
join-prune send fe0 jp-list 10
wait 300
quit
