![图片[1]-12.2 衔接RPF路由-大赛人网](https://www.dsrw.com/wp-content/uploads/2023/03/图片118-1024x511.png)
1.R2配置OSPF
[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[R2-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
[R2-ospf-1-area-0.0.0.0]network 23.1.1.0 0.255.255.255
2.R3配置OSPF
[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[R3-ospf-1-area-0.0.0.0]network 23.1.1.0 0.255.255.255
[R3-ospf-1-area-0.0.0.0]network 192.168.3.0 0.0.0.255
3.R1配置pim
[R1]multicast routing-enable
[R1]interface GigabitEthernet 0/0/0
[R1-GigabitEthernet0/0/0]pim dm
[R1]interface GigabitEthernet 0/0/1
[R1-GigabitEthernet0/0/1]pim dm
4.R2配置pim
[R2]multicast routing-enable
[R2]interface GigabitEthernet 0/0/0
[R2-GigabitEthernet0/0/0]pim dm
[R2]interface GigabitEthernet 0/0/1
[R2-GigabitEthernet0/0/1]pim dm
[R2]interface GigabitEthernet 0/0/2
[R2-GigabitEthernet0/0/2]pim dm
5.R3配置pim、igmp
[R3]multicast routing-enable
[R3]interface GigabitEthernet 0/0/0
[R3-GigabitEthernet0/0/0]pim dm
[R3]interface GigabitEthernet 0/0/1
[R3-GigabitEthernet0/0/1]igmp enable
6.R2配置组播静态路由,指定到Source 2的RPF邻居为R1
[R2]ip rpf-route-static 10.1.2.1 24 12.1.1.1
7.R3配置组播静态路由,指定到Source 2的RPF邻居为R2
[R3]ip rpf-route-static 10.1.2.1 24 23.1.1.2
8.在R2和R3上分别显示到Source 2的RPF信息
[R2]display multicast rpf-info 10.1.2.1
VPN-Instance: public net
RPF information about source: 10.1.2.1
RPF interface: GigabitEthernet0/0/0, RPF neighbor: 12.1.1.1
Referenced route/mask: 10.1.2.0/24
Referenced route type: mstatic
Route selection rule: preference-preferred
Load splitting rule: disable
[R3]display multicast rpf-info 10.1.2.1
VPN-Instance: public net
RPF information about source: 10.1.2.1
RPF interface: GigabitEthernet0/0/0, RPF neighbor: 23.1.1.2
Referenced route/mask: 10.1.2.0/24
Referenced route type: mstatic
Route selection rule: preference-preferred
Load splitting rule: disable
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
请登录后查看评论内容