配置PIM auto-rp
要求:1. R1,R2,R3配置ospf 并把所有接口加入到area 0
2.配置R1为rp,配置R2为映射代理,把R3加入239.3.3.3组
3.练习本课所有show命令
步骤一:在每个路由器上配置1个loopback 口,并 配置三台路由器接口使其连通。
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(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(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(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(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(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(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(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(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
步骤四:查看组播路由表
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
Incoming interface: Null, RPF nbr 0.0.0.0
Outgoing interface list:
Serial0, Forward/Sparse, 00:37:56/00:03:07
Incoming interface: Serial0, RPF nbr 0.0.0.0
Outgoing interface list: Null
Incoming interface: Loopback0, RPF nbr 0.0.0.0
Outgoing interface list:
Serial0, Forward/Sparse, 00:00:05/00:03:24
Incoming interface: Serial0, RPF nbr 10.1.1.2
Outgoing interface list: Null
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
Incoming interface: Serial1, RPF nbr 10.1.1.1
Outgoing interface list:
Serial0, Forward/Sparse, 00:42:48/00:03:02
Incoming interface: Serial0, RPF nbr 0.0.0.0, Registering
Outgoing interface list:
Serial1, Forward/Sparse, 00:00:22/00:03:07
Incoming interface: Loopback0, RPF nbr 0.0.0.0, Registering
Outgoing interface list:
Serial0, Forward/Sparse, 00:00:24/00:03:06
Incoming interface: Serial0, RPF nbr 20.1.1.2
Outgoing interface list:
Serial1, Forward/Sparse, 00:01:39/00:01:53
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
Incoming interface: Serial1, RPF nbr 20.1.1.1
Outgoing interface list:
Loopback0, Forward/Sparse, 00:46:06/00:02:27
Incoming interface: Loopback0, RPF nbr 0.0.0.0, Registering
Outgoing interface list:
Serial1, Forward/Sparse, 00:00:32/00:02:58
步骤五:查看接口组播信息
Mode Count Intvl Prior
10.1.1.1 Serial0 v2/S 1 30 1 0.0.0.0
Mode Count Intvl Prior
30.1.1.1 Loopback0 v2/S 0 30 1 30.1.1.1
Mode Count Intvl Prior
20.1.1.1 Serial0 v2/S 1 30 1 0.0.0.0
Mode Count Intvl Prior
10.1.1.2 Serial1 v2/S 1 30 1 0.0.0.0
Mode Count Intvl Prior
40.1.1.1 Loopback0 v2/S 0 30 1 40.1.1.1
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
Mode Count Intvl Prior
50.1.1.1 Loopback0 v2/S 0 30 1 50.1.1.1
步骤六:查看组播邻居
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
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
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映射表
PIM Group-to-RP Mappings
This system is an RP (Auto-RP)
RP 30.1.1.1 (?), v2v1
Info source: 40.1.1.1 (?), elected via Auto-RP
Uptime: 00:43:36, expires: 00:02:59
PIM Group-to-RP Mappings
This system is an RP-mapping agent (Loopback0)
RP 30.1.1.1 (?), v2v1
Info source: 30.1.1.1 (?), elected via Auto-RP
Uptime: 00:48:13, expires: 00:02:44
PIM Group-to-RP Mappings
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 组播地址测试
Sending 1, 100-byte ICMP Echos to 239.3.3.3, timeout is 2 seconds:
Reply to request 0 from 20.1.1.2, 112 ms
Sending 1, 100-byte ICMP Echos to 239.3.3.3, timeout is 2 seconds:
Reply to request 0 from 20.1.1.2, 136 ms
Reply to request 0 from 20.1.1.2, 80 ms
Type escape sequence to abort.
Sending 1, 100-byte ICMP Echos to 239.3.3.3, timeout is 2 seconds:
步骤九:查看当前配置结果
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
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相关推荐
- PIM SM RP控制原理与实验
RP控制: 概述: RP ( Rendezvous Point)是PIM SM网络中一台"核心"路由器,它的位置建议放在网络的核心,在组播数据转发过程中,它起到的是"汇聚 ...
- IDEA 自动导入的配置(Auto import)
很多开发过 Java 的小朋友都有一个定义就是不导入 * 但 IDEA 自动导入的配置中的默认选项是通配符导入( wildcard imports). 在默认情况下,如果同一个包中的类导入超过 5 个 ...
- Nginx编译配置脚本篇(8)- 模块配置脚本auto/modules
Nginx编译配置脚本篇(8)- 模块配置脚本auto/modules 1.相关文章 2.前言 3.auto/module脚本文件详解 3.1.设置ngx_var的值 3.2.当ngx_module_ ...
- 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 ...
- 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 ...
- 华为PIM-SM 动态RP实验配置
目录 建立PIM SM邻居 配置DR 配置动态RP 组成员端DR上配置IGMP 配置PIM安全 配置SPT切换 配置Anycast RP 配置接口的IP地址,并配置路由协议使得全网互通 建立PIM S ...
- MC9S12XS128 PIM配置
文章目录 MC9S12XS128 PIM配置 一.PIM介绍 二.PIM特性 三.PIM寄存器配置 3.1 PORTA.B.E.K端口 3.2 PORTT.S.M.P.H.J端口 四.配置流水灯 MC ...
- PIM sparse mode
PIM spase mode 在spase mode中存在shared tree(RP tree)和source tree(SPT) 在spase mode中,在没有组播流量传递时,依然会形成shar ...
- 组播PIM-原理介绍+报文分析+配置示例
个人认为,理解报文就理解了协议.通过报文中的字段可以理解协议在交互过程中相关传递的信息,更加便于理解协议. 因此本文将在PIMv2协议报文的基础上进行介绍,以详细介绍组播协议PIM. 这里需要说明的是 ...
最新文章
- 艾麦捷科技-铂金小猪新年致辞
- rsync文件实时同步_从文件同步rsync算法谈起
- visualvm安装插件
- bzoj4415 [Shoi2013]发牌 线段树
- linux系列的命令补充
- 回顾 | Apache Flink Meetup 杭州站圆满结束(附PPT下载)
- 【解决】Git:hint:Pulling without specifying how to reconclie divergent branches is...
- 数据库设计员工管理系统
- 读文献、写论文时,有什么好用的软件或网站推荐?
- linux中oppenoffice的安装
- 排序——归并(合二为一)
- Linux aarch64交叉编译之glm数学库
- 关于Python中rank()函数的理解
- CentOS安装Nginx 以及日志管理
- 网页录屏将视频截图保存成gif图片并压缩的方法超详细
- 计算机小游戏有哪些,计算机有哪些单机游戏可以耐玩,4 G以下?
- Cjson 库的使用
- SpringBoot整合Freemarker导出word文档表格
- 多线程-Callable接口
- openLayers + Vue实现测量(长度、面积)
热门文章
- java byte缓存_Java 之 字节缓冲流
- css pc和mobile,初识pc端和mobile端CSS适配利器—vw+rem+CSS locks
- matlab-片状图
- linux 删除小于、大于固定大小的文件
- Object.create()方法
- java impala_impala 概述
- sdutoj-3837-素数链表
- 1—YOLO2:环境搭建
- win32下安装mingw32和cmake来编译opencv2.4.9
- 狼羊菜过河问题深入学习分析——Java语言描述版