Configuring mrouted

How to Configure mrouted

How to Configure mrouted

When the mrouted daemon starts, it automatically reads the default configuration file /etc/mrouted.conf. You can override the default configuration file by specifying an alternate file while invoking mrouted. See “Starting mrouted” on page 36 for more information. If you change the /etc/mrouted.conf file while mrouted is running, issue the following command to reread the configuration file:

kill -HUP

By default, mrouted automatically configures itself to forward on all multicast-capable interfaces, excluding the loopback interface that has the IFF_MULTICAST flag set. Therefore, you do not need to explicitly configure mrouted, unless you need to configure tunnel links, change the default operating parameters, or disable multicast routing over a specific physical interface.

Configuration Commands

You can define the configuration commands in the /etc/mrouted.conf configuration file. mrouted supports five configuration commands: phyint, tunnel, cache_lifetime, pruning, and name. One or more options are associated with each command.

The syntax of each command is as follows:

phyint local-addr[disable] [metric m] [threshold t] [rate_lim it b]

[boundary (boundary-namescoped-addr/mask-len)] [altnet network/mask-len]

tunnel local-addrremote-addr[metric m] [threshold t] [rate_l imit b]

[boundary (boundary-namescoped-addr/mask-len)]

cache_lifetime ct

pruning off/on

name boundary-name scoped-addr/mask-len

phyint

Chapter 2

31