1、Auto-RP解析
2、实验拓扑
3、基础配置
R1配置
interface Loopback0
ip address 1.1.1.1 255.255.255.0
interface Serial0/1
ip address 12.1.1.1 255.255.255.0
interface Serial0/2
ip address 14.1.1.1 255.255.255.0
interface FastEthernet1/0
ip address 13.1.1.1 255.255.255.0
router ospf 110
router-id 1.1.1.1
network 1.1.1.0 0.0.0.255 area 0
network 12.1.1.0 0.0.0.255 area 0
network 13.1.1.0 0.0.0.255 area 0
network 14.1.1.0 0.0.0.255 area 0
R2配置
interface Loopback0
ip address 2.2.2.2 255.255.255.0
interface Serial0/0
ip address 25.1.1.2 255.255.255.0
interface Serial0/1
ip address 12.1.1.2 255.255.255.0
router ospf 110
router-id 2.2.2.2
network 2.2.2.0 0.0.0.255 area 0
network 12.1.1.0 0.0.0.255 area 0
default-information originate always
R3配置
interface FastEthernet1/0
ip address 13.1.1.3 255.255.255.0
router ospf 110
router-id 3.3.3.3
network 13.1.1.0 0.0.0.255 area 0
R4配置
interface Serial0/0
ip address 46.1.1.4 255.255.255.0
interface Serial0/2
ip address 14.1.1.4 255.255.255.0
router ospf 110
router-id 4.4.4.4
network 14.1.1.0 0.0.0.255 area 0
R5配置
interface Serial0/0
ip address 25.1.1.5 255.255.255.0
R6配置
interface Serial0/0
ip address 46.1.1.6 255.255.255.0
no ip routing
ip default-gateway 46.1.1.4
4、配置PIM Sparse Mode
R1配置
ip multicast-routing
interface Serial0/1
ip pim sparse-mode
interface Serial0/2
ip pim sparse-mode
interface FastEthernet1/0
ip pim sparse-mode
R2配置
ip multicast-routing
interface Serial0/0
ip pim sparse-mode
interface Serial0/1
ip pim sparse-mode
R3配置
ip multicast-routing
interface FastEthernet1/0
ip pim sparse-mode
R4配置
ip multicast-routing
interface Serial0/0
ip pim sparse-mode
interface Serial0/2
ip pim sparse-mode
R6配置
interface Serial0/0
ip igmp join-group 224.1.1.1
5、Auto-RP动态选举RP
配置Auto-RP需要遵循以下规则
1、PIM模式要配置为sparse-dense模式(当Sparse模式无法工作的时候,可以工作在Dense模式下,启动备份冗余的作用)
2、CRP、MA通常使用环回口,且需通过进IGP中
3、MA的环回口也要配置为sparese-dense模式
我们这里讲R1配置为CRP,R2配置为MA
R1配置
interface Loopback0
ip pim sparse-dense-mode
interface Serial0/1
ip pim sparse-dense-mode
interface Serial0/2
ip pim sparse-dense-mode
interface FastEthernet1/0
ip pim sparse-dense-mode
ip pim send-rp-announce loopback 0 scope 8
R2配置
interface Loopback0
ip pim sparse-dense-mode
interface Serial0/0
ip pim sparse-dense-mode
interface Serial0/1
ip pim sparse-dense-mode
ip pim send-rp-discovery loopback 0 scope 8
R3配置
interface FastEthernet1/0
ip pim sparse-dense-mode
R4配置
interface Serial0/0
ip pim sparse-dense-mode
interface Serial0/2
ip pim sparse-dense-mode
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。