!
hostname r4
!
!
interface lo
 ip address 10.0.3.4/32
 ipv6 address fd00:0:0:3::4/64
 ip pim
 ipv6 pim
!
interface r4-eth0
 ip address 10.0.2.4/24
 ipv6 address fd00:0:0:2::4/64
 ip igmp
 ip pim
 ipv6 pim
 ipv6 ospf6 area 0
!
interface r4-eth1
 ip address 10.0.3.4/24
 ipv6 address fd00:0:0:3::4/64
 ip igmp
 ip pim
 ipv6 pim
 ipv6 ospf6 area 0
!
interface r4-eth2
 ip address 10.0.5.4/24
 ipv6 address fd00:0:0:5::4/64
 ip igmp
 ip pim
 ipv6 pim
 ipv6 ospf6 area 0
!
interface r4-eth3
 ip address 10.0.0.4/24
 ipv6 address fd00:0:0:0::4/64
 ip igmp
 ip pim
 ipv6 pim
 ipv6 ospf6 area 0
!
router pim
  bsr candidate-rp group 239.0.0.0/24
  bsr candidate-rp group 239.0.0.0/16
  bsr candidate-rp group 239.0.0.0/8
  bsr candidate-rp priority 20
!
router pim6
 bsr candidate-rp group ffbb::/124
 bsr candidate-rp group ffbb::/64
 bsr candidate-rp group ffbb::/108
 bsr candidate-rp priority 20
!
router ospf
 ospf router-id 10.0.2.4
 network 10.0.0.0/16 area 0
!
router ospf6
  ospf6 router-id 10.0.2.4
!
ip forwarding
ipv6 forwarding
!
