Exploring the quirks of Network Engineering
Scenario
Basic PIM-SM Setup with static RP. The router has one WAN interface, one LAN interface and one loopback used for the RP address. All are advertised into OSPF. Although not shown here, an access-list can be applied to the rp-address statement (for both IOS and XR) to specific which group(s) the RP services.
IOS Config
ip multicast-routing!interface loopback0 description loopback for RP ip address 10.224.1.1 255.255.255.255 router ospf 1 area 0 ip pim sparse-mode!interface GigabitEthernet0/0 description LAN ip address 10.11.2.25 255.255.255.0 ip pim sparse-mode ip ospf 1 area 0 ip igmp version 2!interface GigabitEthernet0/1 description WAN ip address 10.12.5.1 255.255.255.0 ip pim sparse-mode ip ospf 1 area 0!ip pim rp-address 10.224.1.1
XR Config
interface loopback0 description loopback for RP ip address 10.224.1.1/32!interface GigabitEthernet0/0/0/0 description LAN ipv4 address 10.11.2.25 255.255.255.0!interface GigabitEthernet0/0/0/1 description WAN ipv4 address 10.12.5.1 255.255.255.0!!multicast-routing address-family ipv4 interface all enable !!router igmp interface GigabitEthernet0/0/0/0 version 2 !!router ospf 1 area 0 interface loopback 0 ! interface GigabitEthernet0/0/0/0 ! interface GigabitEthernet0/0/0/0 !!router pim address-family ipv4 rp-address 10.224.1.1 interface GigabitEthernet0/0/0/0 enable ! interface GigabitEthernet0/0/0/1 enable ! !!