Although auto-RP is a nonstandard (non-RFC-based) function requiring dense mode PIM to advertise control traffic, it provides an important failover advantage that static RP assignment does not: you can configure multiple routers as RP candidates. If the elected RP stops operating, one of the other preconfigured routers takes over the RP functions. This capability is controlled by the auto-RP mapping agent.
If PIM is operating in sparse or sparse-dense mode, configure how the router operates in auto-RP by specifying the following auto-RP options:
The router joins the auto-RP groups on the configured interfaces and on the loopback interface lo0.0. For auto-RP to work correctly, configure a routable IP address on the loopback interface. The router ID is used as the address for auto-RP updates. You cannot use the loopback address 127.0.0.1. Also, you must enable PIM sparse-dense mode on the lo0.0 interface if you do not specify interface all.
In most cases, how the router handles auto-RP discovery, announce, or mapping messages depends on whether the router is an RP (configured as local RP) or not. Table 13 shows how the router behaves depending on the local RP configuration.
Table 13: Local RP and Auto-RP Message Types
To configure auto-RP at the main hierarchy level, follow these steps:
- [edit protocols pim]
- interface all {
- mode sparse-dense;
- }
This configuration allows the router to operate in sparse mode for most groups and dense mode for others. The default is to operate in sparse mode unless the router is specifically informed of a dense mode group.
- [edit protocols pim]
- dense-groups {
- 224.0.1.39/32;
- 224.0.1.40/32;
- }
Auto-RP requires multicast flooding to announce potential RP candidates and to discover the elected RPs in the network. Multicast flooding occurs through a PIM dense mode model where group 224.0.1.39 is used for announce messages and group 224.0.1.40 is used for discovery messages.
- [edit protocols pim rp]
-
auto-rp discovery;
- [edit protocols pim rp]
- local {
- address 10.0.1.1;
- }
-
auto-rp announce;
- [edit protocols pim rp]
-
auto-rp mapping;
- [edit protocols pim rp]
- local {
- address 10.0.1.1;
- }
-
auto-rp mapping;
All routers must also have a routable IP address on the lo0 interface:
- interface lo0 {
-
- unit 0 {
-
- family inet {
- address 127.0.0.1; # this address cannot be used by auto-rp
-
- address 192.168.27.1 { # this example uses a private IP
address
- preferred;
- }
- }
- }
- }
You can include these statements at the following hierarchy levels (auto-RP announce is not supported in logical systems):
To verify auto-RP information, issue the show pim rps command :
user@host> show pim rps
RP address Type Holdtime Timeout Active groups Group prefixes 192.168.5.1 auto-rp 150 123 1 224.0.0.0/4
Issue the show pim rps extensive command to see information about how an RP is learned, what groups it handles, and the number of groups actively using the RP:
user@host> show pim rps extensive
RP: 192.168.5.1
Learned from 192.168.5.1 via: auto-rp
Time Active: 00:34:29
Holdtime: 150 with 108 remaining
Device Index: 6
Subunit: 32769
Interface: pd-0/0/0.32769
Group Ranges:
224.0.0.0/4
Active groups using RP:
224.2.2.100
total 1 groups active
Register State for RP:
Group Source FirstHop RP Address StateRP address Type Holdtime Timeout
In the example, the RP at 192.168.5.1 was learned through auto-RP. The RP is able to support all groups in the 224.0.0.0/4 range (all possible groups). The local router has sent PIM control traffic for the 224.2.2.100 group to the RP.
Additionally, the presence of a Tunnel Physical Interface Card (PIC) in an RP router creates a de-encapsulation interface, which allows the RP to receive multicast traffic from the source. This interface is indicated by pd-0/0/0.32769.