详解BSCI实验五、配置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



    本文转自hexianguo 51CTO博客,原文链接: http://blog.51cto.com/xghe110/88948 ,如需转载请自行联系原作者

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
BSCI程序文件 编号: 编号:**-CX BSCI 程序文件汇编 受控状态:受控 版本号/修改状态:A/0 分发号:001 编制: 审核: 批准: 2010 年 xx 月 xx 日发布 2010 年 xx 月 xx 日实施 LOGO XXXX 有限公司 BSCI程序文件全文共43页,当前为第1页。 BSCI程序文件全文共43页,当前为第1页。 程序文件目录 序号 文 件 名 称 编 号 1 员工工伤处理程序 **/CX-01 2 员工工伤返岗评估程序 **/CX-02 3 员工意见、建议、申诉处理及反馈管理程序 **/CX-03 4 安全卫生风险鉴别与评估管理程序 **/CX-04 5 员工代表选举程序 **/CX-05 6 沟通管理程序 **/CX-06 7 BSCI 相关法规管理程序 **/CX-07 8 反歧视管理程序 **/CX-08 9 防止惩戒性管理程序 **/CX-09 10 反对强迫劳动和使用囚工程序 **/CX-10 11 禁止使用童工管理程序 **/CX-11 12 反腐败反贿赂控制程序 **/CX-12 13 社会责任系统培训程序 **/CX-13 14 招聘管理程序 **/CX-14 15 生产设备管理程序 **/CX-15 16 消防管理程序 **/CX-16 17 健康与安全管理程序 **/CX-17 18 事故调查与处理管理程序 **/CX-18 19 处理紧急医疗事故程序 **/CX-19 20 访客健康安全程序 **/CX-20 21 怀孕女工与新生妈妈安全卫生风险鉴别评估程序 **/CX-21 BSCI程序文件全文共43页,当前为第2页。 BSCI程序文件全文共43页,当前为第2页。 员工工伤处理程序 Logo **/CX-01 版 次 页 次 XXXX 有限公司 0/A 第 1 页 /共 2 页 员工工伤处理程序 1.目的: 1.1 为保护员工权益,使工伤者得到妥善及时的治疗及维护公司的利益。 1.2 认真贯彻执行安全生产规定,及时,准确,全面地掌握工伤事故的情况,研究工伤事故 发生的原因和规律,总结经验教训,以便采取有效的预防措施,防止事故重复发生,实现安 全生产,保护员工安全与健康。 2. 定义 只有在公司及工厂内从事与公司有关之生产工作或在维护公司利益的情况下, 因不小心 发生之意外事故;员工故意或者因私负伤、致残、死亡的,不作为工伤事故。 3.程序: 3.1 当员工发生工伤事故时: 3.1.1 如属伤势轻微者,可由该部门/单位主管代为处理,并送伤者前往医院就医,有关医 药费单据/证明由经办人交于办公室办理报销事宜;同时需填报一份"工伤事故报告表" 。 3.1.2 如属伤势严重者,由该部门/单位主管应立即通知办公室,由办公室负责安排送伤者 到医院或提供必要之协助; 并由办公室到财务部暂支适量现金, 用以支付员工的一切医药及 治疗费用;在办理好伤者入院治疗事宜后,该部门/单位主管应到办公室填报"工伤事故报 告表" ,办公室填写调查核实情况及处理意见,然后上级审核批准。 3.2 所有公伤事故均须用"工伤事故报告表"记录,并报总经理批核方可报销医药费及批假 给工伤者。 3.3 因工伤事故需休养治疗的,经总经理批核后,公司负担其误工费。 3.4 所有用以支付工伤员工的一切医药及疗伤费用,会由办公室统筹办理报销事宜,及到 保险公司办索赔手续,一般工伤须于五天内报告保险公司,重伤或死亡则须于 24 小时内书 面报告保险公司。 BSCI程序文件全文共43页,当前为第3页。3.5 如出现工伤死亡事故,应及时联络保险公司/劳动部门商讨善后措施,及尽快与死者亲 属联系,处理过程要耐心,积极,并在劳动部门之协商/仲裁下,追保险公司赔付,公司亦 从道义上协助善后工作。 BSCI程序文件全文共43页,当前为第3页。 3.6 办公室于保险公司取回应收赔款后,到财务部办理有关核销手续,清还工人医疗费的 暂支费;如保险公司之赔偿与医疗费出现差额时,须出示有关文件,并开出零用现金单,经 总经理签批后,连同所得之赔偿,到财务部清还该暂支单。 3.7 办公室对每次之工伤事故均需调查核实,并做出处理决定,填写报名后交总经理批核存 档;如工伤事故之发生是因为机器设备之维护或修理不当、或工场/部门未能对工人进行安 全教育培训的、或因工人自身操作不认真,疏忽所致的,会根据情节/原因做出不同的追究 和处理(如通报批评,检讨等) BSCI程序文件全文共43页,当前为第4页。 BSCI程序文件全文共43页,当前为第4页。 员工工伤返岗评估程序 Logo 文件编号 版 次 页 次 XXXX 有限公司 0/A 第 1 页 /共 1 页 员工工伤返岗评估程序 目的 为保护员工权益,贯彻执行安全生产规定,对员工返岗能力进行评估,保护员工安

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值