forked from troglobit/pimd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pimd.conf
121 lines (114 loc) · 5.27 KB
/
pimd.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# Exmaple configuration file for pimd, the original PIM-SM router
#
# See the pimd(8) man page for details on all the settings. This file
# only gives very brief examples and is intended as a quick start.
#
# NOTE: The order of the settings matter!
#
##
# default_igmp_query_interval <SEC>
# default_igmp_querier_timeout <SEC>
# default_source_preference <preference>
# default_source_metric <metric>
#
# phyint <local-addr | ifname> [disable|enable] [threshold <t>] [preference <p>]
# [metric <m>]
# [altnet <net-addr>[/<masklen> | masklen <masklen>]
# [scoped <net-addr>|/<masklen> | masklen <masklen>]
#
# cand_rp [local-addr | ifname] [priority <number> ] [time <number>]
# cand_bootstrap_router [local-addr | ifname] [priority <number>]
# rp_address <rp-addr> [<group-addr>[/<masklen> | masklen <masklen>]
#
# group_prefix <group-addr>[/<masklen> | masklen <masklen>]
# group_prefix <group-addr>[/<masklen> | masklen <masklen>]
# .
# .
# group_prefix <group-addr>[/<masklen> | masklen <masklen>]
#
# spt_threshold [rate <KBPS> | packets <NUM> | infinity] [interval <SEC>]
#
##
# By default PIM will be activated on all interfaces. Use phyint to
# disable on interfaces where PIM should not be run.
#
# Preferences (today more commonly known as admin distance) are used by
# PIM assert elections to determine upstream routers. Currently pimd
# cannot reliably obtain preferences and metrics from the unicast
# routing protocols, so a default preference may need to be configured
# per interface, or a global default. In a PIM assert election the
# router advertising the lowest assert preference will be selected as
# the forwarder and upstream router for the LAN. An admin distance of
# 101 should be sufficiently high so that asserts from Cisco or GateD
# routers are prefered over poor-little pimd.
#
# It is reccommended that preferences (admin distance) be set such that
# metrics are never consulted. However, default metrics may also be set
# and will default to 1024.
#
# A "phyint" can be specified by either its IP address or interface name.
#
# `preference` and `metric` after "phyint" are used to configure
# manually the default preference (a.k.a. admin distance) and metric for
# the PIM Assert messages sent on that interface. Usually you do not
# need this, but if you do, think of them like `preference` and `metric`
# defined per iif, but used by the PIM Asserts on the oifs.
#
# If you want to add "alternative (sub)net" to a physical interface,
# e.g., if you want to make incoming traffic with a non-local source address
# to appear as it is coming from a local subnet, then use the command:
# phyint <local-addr | ifname> altnet <net-addr> masklen <len>
# XXX: if you use this command, make sure you know what you are doing!!
#
# If you want administrative scoped multicast filtering, use the
# following command:
# phyint <local-addr | ifname> scoped <net-addr> masklen <masklen>
# This allows interfaces to be configured as an administrative boundary
# for the specified scoped address. Packets belonging to the scoped
# address will not be forwarded. To use this compile with -DSCOPED_ACL
# option (in Makefile).
#
# The optional `local-addr` or `ifname` arguments after the "cand_rp"
# and "cand_bootstrap_router" settings specifies the local address to be
# used in the Cand-RP and Cand-BSR messages. In case `ifname` is given
# as argument, the IPv4 address of that interface is used. If either is
# unspecified, the largest local IP address will be used, excluding the
# phyint interfaces where pimd has been disabled.
#
# `time` after `cand_rp` specifies how often to send the Cand-RP messages.
# Its default value should be 60 seconds. Use smaller value for faster
# convergence.
#
# `group_prefix` is/are the prefix(es) advertised if cand_rp
#
# It is possible to set a static Rendez-Vous Point using the "rp_address"
# setting. The argument can be either a unicast or a multicast address
# followed by an optional group address and optional masklen to that.
#
# New Cisco-like spt_threshold, notice rate in kbps! Where `rate`
# specifies the minimum rate before the last hop router initiate a
# switch to the shortest path, `packets` is an alternative notation,
# `infinity` means to never switch, and `interval` specifies the
# interval for periodical testing of the threshold. Currently,
# `interval` must be at least 5 (seconds)
#
# Interface defaults like preference/distance and metric must be set
# before the phyint section begins -- the .conf parser is not clever.
#default_igmp_query_interval 125
#default_igmp_querier_timeout 255
#default_source_preference 101 # smaller is better
#default_source_metric 1024 # smaller is better
# The phyint settings currently *MUST BE* ordered after the default
# source preference and metric settings, but before everything else.
# By default, all non-loopback multicast capable interfaces are enabled.
# phyint de1 disable
# Smaller value means "higher" priority
cand_rp time 30 priority 20
# Bigger value means "higher" priority
cand_bootstrap_router priority 5
# Static rendez-vous point
#rp_address 192.168.10.1 224.0.0.0/4
# All multicast groups
group_prefix 224.0.0.0 masklen 4
# Switch to shortest-path tree after first packet, but only after 100 sec.
spt_threshold packets 0 interval 100