配置PIM auto-rp
环境:三台路由器串口相连,其它的配置如图所示
要求:1. R1,R2,R3配置ospf 并把所有接口加入到area 0
2.配置R1为rp,配置R2为映射代理,把R3加入239.3.3.3组
3.练习本课所有show命令

 

步骤一:在每个路由器上配置1个loopback 口,并 配置三台路由器接口使其连通。
R1的配置
R1(config)# interface Loopback0
R1(config-if)# ip address 30.1.1.1 255.255.255.0
R1(config)# interface Serial0
R1(config-if)# ip address 10.1.1.1 255.255.255.0
R1(config-if)# clockrate 64000
R1(config-if)#no shutdown
R2的配置
R2(config)#interface Loopback0
R2(config-if)# ip address 40.1.1.1 255.255.255.0
R2(config)#interface Serial0
R2(config-if)# ip address 20.1.1.1 255.255.255.0
R2(config-if)#clockrate 64000
R2(config-if)#no shutdown
R2(config)#interface Serial1
R2(config-if)# ip address 10.1.1.2 255.255.255.0
R2(config-if)#no shutdown
R3的配置
R3(config)#interface Loopback0
R3(config-if)# ip address 50.1.1.1 255.255.255.0
R3(config)#interface Serial1
R3(config-if)# ip address 20.1.1.2 255.255.255.0
R3(config-if)#no shutdown

步骤二:配置ospf路由协议,使其连通
R1的配置
R1(config)#router ospf 1
R1(config-router)# network 10.1.1.0 0.0.0.255 area 0
R1(config-router)# network 30.1.1.0 0.0.0.255 area 0
R2的配置
R2(config)#router ospf 1
R2(config-router)#network 10.1.1.0 0.0.0.255 area 0
R2(config-router)# network 20.1.1.0 0.0.0.255 area 0
R2(config-router)# network 40.1.1.0 0.0.0.255 area 0
R3的配置
R3(config)#router ospf 1
R3(config-router)# network 20.1.1.0 0.0.0.255 area 0
R3(config-router)# network 50.1.1.0 0.0.0.255 area 0

步骤三:配置R1为rp,配置R2为映射代理,把R3加入239.3.3.3组
R1的配置
R1(config)#ip multicast-routing  à启用多播协议
R1(config)# interface Loopback0
R1(config-if)# ip pim sparse-mode  à接口PIM模式为稀疏
R1(config)# interface Serial0
R1(config-if)# ip pim sparse-mode
R1(config)# ip pim send-rp-announce Loopback0 scope 5 à指定R1为RP
R2的配置
R2(config)#ip multicast-routing
R2(config)# interface Loopback0
R2(config-if)# ip pim sparse-mode
R2(config)# interface Serial0
R2(config-if)# ip pim sparse-mode
R2(config)# interface Serial1
R2(config-if)# ip pim sparse-mode
R2(config)# ip pim send-rp-discovery Loopback0 scope 5  à将R2指定为映射代理
R3的配置
R3(config)#ip multicast-routing
R3(config)# interface Loopback0
R3(config-if)# ip pim sparse-mode
R3(config-if)# ip igmp join-group 239.3.3.3 à将此接口加入到组239.3.3.3
R3(config)# interface Serial1
R3(config-if)# ip pim sparse-mode 

步骤四:查看组播路由表
R1#sh ip mroute 239.3.3.3 
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report, Z - Multicast Tunnel
       Y - Joined MDT-data group, y - Sending to MDT-data group
Outgoing interface flags: H - Hardware switched
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode
(*, 239.3.3.3), 00:37:56/stopped, RP 30.1.1.1, flags: S
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Serial0, Forward/Sparse, 00:37:56/00:03:07
(10.1.1.1, 239.3.3.3), 00:00:04/00:02:56, flags: P  à学来对端的基于源的多播路由
  Incoming interface: Serial0, RPF nbr 0.0.0.0
  Outgoing interface list: Null
(30.1.1.1, 239.3.3.3), 00:00:04/00:03:28, flags: T
  Incoming interface: Loopback0, RPF nbr 0.0.0.0
  Outgoing interface list:
    Serial0, Forward/Sparse, 00:00:05/00:03:24
(50.1.1.1, 239.3.3.3), 00:00:12/00:03:17, flags: PX
  Incoming interface: Serial0, RPF nbr 10.1.1.2
  Outgoing interface list: Null
R2#sh ip mroute 239.3.3.3
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report, Z - Multicast Tunnel
       Y - Joined MDT-data group, y - Sending to MDT-data group
Outgoing interface flags: H - Hardware switched
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode
(*, 239.3.3.3), 00:43:06/stopped, RP 30.1.1.1, flags: SF
  Incoming interface: Serial1, RPF nbr 10.1.1.1
  Outgoing interface list:
    Serial0, Forward/Sparse, 00:42:48/00:03:02
(20.1.1.1, 239.3.3.3), 00:00:22/00:03:07, flags: T
  Incoming interface: Serial0, RPF nbr 0.0.0.0, Registering
  Outgoing interface list:
    Serial1, Forward/Sparse, 00:00:22/00:03:07
(40.1.1.1, 239.3.3.3), 00:00:23/00:03:08, flags: FT
  Incoming interface: Loopback0, RPF nbr 0.0.0.0, Registering
  Outgoing interface list:
    Serial0, Forward/Sparse, 00:00:24/00:03:06
(50.1.1.1, 239.3.3.3), 00:01:39/00:01:53, flags:
  Incoming interface: Serial0, RPF nbr 20.1.1.2
  Outgoing interface list:
Serial1, Forward/Sparse, 00:01:39/00:01:53
R3#sh ip mroute 239.3.3.3
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report, Z - Multicast Tunnel
       Y - Joined MDT-data group, y - Sending to MDT-data group
Outgoing interface flags: H - Hardware switched
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode
(*, 239.3.3.3), 00:46:06/stopped, RP 30.1.1.1, flags: SJCLF
  Incoming interface: Serial1, RPF nbr 20.1.1.1
  Outgoing interface list:
    Loopback0, Forward/Sparse, 00:46:06/00:02:27
(50.1.1.1, 239.3.3.3), 00:03:54/00:03:06, flags: LFT
  Incoming interface: Loopback0, RPF nbr 0.0.0.0, Registering
  Outgoing interface list:
    Serial1, Forward/Sparse, 00:00:32/00:02:58

步骤五:查看接口组播信息
R1#sh ip pim int s0
Address          Interface                Ver/   Nbr    Query  DR     DR
                                          Mode   Count  Intvl  Prior
10.1.1.1         Serial0                  v2/S   1      30     1      0.0.0.0
R1#sh ip pim int lo 0
Address          Interface                Ver/   Nbr    Query  DR     DR
                                          Mode   Count  Intvl  Prior
30.1.1.1         Loopback0                v2/S   0      30     1      30.1.1.1
R2#sh ip pim int s0
Address          Interface                Ver/   Nbr    Query  DR     DR
                                          Mode   Count  Intvl  Prior
20.1.1.1         Serial0                  v2/S   1      30     1      0.0.0.0
R2#sh ip pim int s1
Address          Interface                Ver/   Nbr    Query  DR     DR
                                          Mode   Count  Intvl  Prior
10.1.1.2         Serial1                  v2/S   1      30     1      0.0.0.0
R2#sh ip pim int lo 0
Address          Interface                Ver/   Nbr    Query  DR     DR
                                          Mode   Count  Intvl  Prior
40.1.1.1         Loopback0                v2/S   0      30     1      40.1.1.1
R3#sh ip pim int s1
Address          Interface                Ver/   Nbr    Query  DR     DR
                                          Mode   Count  Intvl  Prior
20.1.1.2         Serial1                  v2/S   1      30     1      0.0.0.0

R3#sh ip pim int lo 0
Address          Interface                Ver/   Nbr    Query  DR     DR
                                          Mode   Count  Intvl  Prior
50.1.1.1         Loopback0                v2/S   0      30     1      50.1.1.1

步骤六:查看组播邻居
R1#sh ip pim neighbor
PIM Neighbor Table
Neighbor          Interface                Uptime/Expires    Ver   DR
Address                                                            Prio/Mode
10.1.1.2          Serial0                  01:59:55/00:01:38 v2    1 / S
R2#sh ip pim nei
PIM Neighbor Table
Neighbor          Interface                Uptime/Expires    Ver   DR
Address                                                            Prio/Mode
20.1.1.2          Serial0                  02:00:36/00:01:17 v2    1 / S
10.1.1.1          Serial1                  02:03:04/00:01:21 v2    1 / S
R3#sh ip pim neighbor
PIM Neighbor Table
Neighbor          Interface                Uptime/Expires    Ver   DR
Address                                                            Prio/Mode
20.1.1.1          Serial1                  02:03:21/00:01:35 v2    1 / S

步骤七:查看rp映射表
R1#sh ip pim rp mapping
PIM Group-to-RP Mappings
This system is an RP (Auto-RP)
Group(s) 224.0.0.0/4
  RP 30.1.1.1 (?), v2v1
    Info source: 40.1.1.1 (?), elected via Auto-RP
         Uptime: 00:43:36, expires: 00:02:59
R2#sh ip pim rp mapping
PIM Group-to-RP Mappings
This system is an RP-mapping agent (Loopback0)
Group(s) 224.0.0.0/4
  RP 30.1.1.1 (?), v2v1
    Info source: 30.1.1.1 (?), elected via Auto-RP
         Uptime: 00:48:13, expires: 00:02:44
R3#sh ip pim rp mapping
PIM Group-to-RP Mappings
Group(s) 224.0.0.0/4
  RP 30.1.1.1 (?), v2v1
    Info source: 40.1.1.1 (?), elected via Auto-RP
         Uptime: 00:50:26, expires: 00:02:03

步骤八: ping 组播地址测试
R1#ping 239.3.3.3
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 239.3.3.3, timeout is 2 seconds:
Reply to request 0 from 20.1.1.2, 80 ms  à此显示为已通
Reply to request 0 from 20.1.1.2, 112 ms
R2#ping 239.3.3.3
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 239.3.3.3, timeout is 2 seconds:
Reply to request 0 from 20.1.1.2, 56 ms
Reply to request 0 from 20.1.1.2, 136 ms
Reply to request 0 from 20.1.1.2, 80 ms
R3#ping 239.3.3.3
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 239.3.3.3, timeout is 2 seconds:
Reply to request 0 from 50.1.1.1, 8 ms

步骤九:查看当前配置结果
R1#sh run
hostname R1
!
ip multicast-routing
!
interface Loopback0
 ip address 30.1.1.1 255.255.255.0
 ip pim sparse-mode
!
interface Serial0
 ip address 10.1.1.1 255.255.255.0
 ip pim sparse-mode
 clockrate 64000
!
router ospf 1
network 10.1.1.0 0.0.0.255 area 0
 network 30.1.1.0 0.0.0.255 area 0
!
ip pim send-rp-announce Loopback0 scope 5
end
R2#sh run
hostname R2
!
ip multicast-routing
!
interface Loopback0
 ip address 40.1.1.1 255.255.255.0
 ip pim sparse-mode
!
interface Serial0
 ip address 20.1.1.1 255.255.255.0
 ip pim sparse-mode
 clockrate 64000
!
interface Serial1
 ip address 10.1.1.2 255.255.255.0
 ip pim sparse-mode
!
router ospf 1
 network 10.1.1.0 0.0.0.255 area 0
 network 20.1.1.0 0.0.0.255 area 0
 network 40.1.1.0 0.0.0.255 area 0
!
ip pim send-rp-discovery Loopback0 scope 5
!
end

R3#sh run
hostname R3
!
ip multicast-routing
!
interface Loopback0
 ip address 50.1.1.1 255.255.255.0
 ip pim sparse-mode
 ip igmp join-group 239.3.3.3
!
interface Serial1
 ip address 20.1.1.2 255.255.255.0
 ip pim sparse-mode
!
router ospf 1
 network 20.1.1.0 0.0.0.255 area 0
 network 50.1.1.0 0.0.0.255 area 0
!
end

转载于:https://blog.51cto.com/cooldong/106569

配置PIM auto-rp相关推荐

  1. PIM SM RP控制原理与实验

    RP控制: 概述: RP ( Rendezvous Point)是PIM SM网络中一台"核心"路由器,它的位置建议放在网络的核心,在组播数据转发过程中,它起到的是"汇聚 ...

  2. IDEA 自动导入的配置(Auto import)

    很多开发过 Java 的小朋友都有一个定义就是不导入 * 但 IDEA 自动导入的配置中的默认选项是通配符导入( wildcard imports). 在默认情况下,如果同一个包中的类导入超过 5 个 ...

  3. Nginx编译配置脚本篇(8)- 模块配置脚本auto/modules

    Nginx编译配置脚本篇(8)- 模块配置脚本auto/modules 1.相关文章 2.前言 3.auto/module脚本文件详解 3.1.设置ngx_var的值 3.2.当ngx_module_ ...

  4. 55、组播配置实验之PIM Sparse Mode静态指定RP

    1.PIM Sparse Mode简介 2.实验拓扑 3.基础配置 R1配置 interface Serial0/1 ip address 12.1.1.1 255.255.255.0 interfa ...

  5. 56、组播配置实验之PIM Sparse Mode利用Auto-RP动态选取RP

    1.Auto-RP解析 2.实验拓扑 3.基础配置 R1配置 interface Loopback0 ip address 1.1.1.1 255.255.255.0 interface Serial ...

  6. 华为PIM-SM 动态RP实验配置

    目录 建立PIM SM邻居 配置DR 配置动态RP 组成员端DR上配置IGMP 配置PIM安全 配置SPT切换 配置Anycast RP 配置接口的IP地址,并配置路由协议使得全网互通 建立PIM S ...

  7. MC9S12XS128 PIM配置

    文章目录 MC9S12XS128 PIM配置 一.PIM介绍 二.PIM特性 三.PIM寄存器配置 3.1 PORTA.B.E.K端口 3.2 PORTT.S.M.P.H.J端口 四.配置流水灯 MC ...

  8. PIM sparse mode

    PIM spase mode 在spase mode中存在shared tree(RP tree)和source tree(SPT) 在spase mode中,在没有组播流量传递时,依然会形成shar ...

  9. 组播PIM-原理介绍+报文分析+配置示例

    个人认为,理解报文就理解了协议.通过报文中的字段可以理解协议在交互过程中相关传递的信息,更加便于理解协议. 因此本文将在PIMv2协议报文的基础上进行介绍,以详细介绍组播协议PIM. 这里需要说明的是 ...

最新文章

  1. 艾麦捷科技-铂金小猪新年致辞
  2. rsync文件实时同步_从文件同步rsync算法谈起
  3. visualvm安装插件
  4. bzoj4415 [Shoi2013]发牌 线段树
  5. linux系列的命令补充
  6. 回顾 | Apache Flink Meetup 杭州站圆满结束(附PPT下载)
  7. 【解决】Git:hint:Pulling without specifying how to reconclie divergent branches is...
  8. 数据库设计员工管理系统
  9. 读文献、写论文时,有什么好用的软件或网站推荐?
  10. linux中oppenoffice的安装
  11. 排序——归并(合二为一)
  12. Linux aarch64交叉编译之glm数学库
  13. 关于Python中rank()函数的理解
  14. CentOS安装Nginx 以及日志管理
  15. 网页录屏将视频截图保存成gif图片并压缩的方法超详细
  16. 计算机小游戏有哪些,计算机有哪些单机游戏可以耐玩,4 G以下?
  17. Cjson 库的使用
  18. SpringBoot整合Freemarker导出word文档表格
  19. 多线程-Callable接口
  20. openLayers + Vue实现测量(长度、面积)

热门文章

  1. java byte缓存_Java 之 字节缓冲流
  2. css pc和mobile,初识pc端和mobile端CSS适配利器—vw+rem+CSS locks
  3. matlab-片状图
  4. linux 删除小于、大于固定大小的文件
  5. Object.create()方法
  6. java impala_impala 概述
  7. sdutoj-3837-素数链表
  8. 1—YOLO2:环境搭建
  9. win32下安装mingw32和cmake来编译opencv2.4.9
  10. 狼羊菜过河问题深入学习分析——Java语言描述版