Lab PIM-SM
step 1 全网配置OSPF
step 2 vlan 10和vlan 20网段运行HSRP
step 3 开启组播转发功能
step 4 接口下开启pim-sp
step 5 bsr , rp
R7#show ip pim rp mapping ----> 查看候选RP信息
利用ping们命令触发,使得R3中的共享树生成源树
step 1: 构建拓扑并检查
step 2: R1-R7运行IGP OSPF 100并检查
R1#show ip route ospf
R1#ping 7.7.7.7 source 1.1.1.1
step 3: R9和R8成主机, 并且R1/R2做HSRP
R6/R7做HSRP
R9:
no ip routing
ip default-gateway 12.1.1.10
interface FastEthernet0/0
ip address 12.1.1.9 255.255.255.0
R8:
no ip routing
ip default-gateway 10.1.1.1
interface FastEthernet0/0
ip address 10.1.1.8 255.255.255.0
R1/R2:
interface FastEthernet0/0.12
standby 12 ip 12.1.1.10
R6/R7:
interface FastEthernet0/0.10
standby 67 ip 10.1.1.1
=======组播基本配置====
step1: R1-R7开启组播路由功能
R(config)#ip multicast-routing
R#show ip multicast
Multicast Routing: enabled
step2: R1-R7所有接口通告组播路由协议PIM,并运行sparse-mode
R(config-if)#ip pim sparse-mode
R#show ip mroute
R#show ip pim interface
R#show ip pim neighbor
step3: R4/R5配置为候选BSR并检查
R4(config)#ip pim bsr-candidate loopback 0 0 5
R5(config)#ip pim bsr-candidate loopback 0 0 4
选R4做active BSR(原因是Priority 更高)
R4(config)#ip pim bsr-candidate loopback 0 0 4
R5(config)#ip pim bsr-candidate loopback 0 0 4
选R5做active BSR(原因是Priority 相同,R5地址更大)
R7#show ip pim bsr-router
PIMv2 Bootstrap information
BSR address: 4.4.4.4 (?)
step4: R2/R3配置为候选RP并检查
R2(config)#ip pim rp-candidate loopback 0 priority 4
R3(config)#ip pim rp-candidate loopback 0 priority 3
R#show ip pim rp mapping ------->查看候选RP信息
step5: R8(receiver)加入一个组238.8.8.8
Receive1(config-subif)#ip igmp join-group 238.8.8.8
----------检查step4--------
R7#show ip pim rp mapping ------->查看候选RP信息
R7#show ip pim rp -------------------->关于某个组谁成为RP
Group: 238.8.8.8, RP: 3.3.3.3, v2, uptime 00:02:50, expires 00:03:05