组播 ---PIM.doc_第1页
组播 ---PIM.doc_第2页
组播 ---PIM.doc_第3页
组播 ---PIM.doc_第4页
组播 ---PIM.doc_第5页
已阅读5页,还剩15页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

实验五、配置PIM auto-rp 环境:三台路由器串口相连,其它的配置如图所示要求:1. R1,R2,R3配置ospf 并把所有接口加入到area 02.配置R1为rp,配置R2为映射代理,把R3加入239.3.3.3组3.练习本课所有show命令步骤一:在每个路由器上配置1个loopback 口,并 配置三台路由器接口使其连通。R1的配置R1(config)# interface Loopback0R1(config-if)# ip address 30.1.1.1 255.255.255.0R1(config)# interface Serial0R1(config-if)# ip address 10.1.1.1 255.255.255.0R1(config-if)# clockrate 64000R1(config-if)#no shutdownR2的配置R2(config)#interface Loopback0R2(config-if)# ip address 40.1.1.1 255.255.255.0R2(config)#interface Serial0R2(config-if)# ip address 20.1.1.1 255.255.255.0R2(config-if)#clockrate 64000R2(config-if)#no shutdownR2(config)#interface Serial1R2(config-if)# ip address 10.1.1.2 255.255.255.0R2(config-if)#no shutdownR3的配置R3(config)#interface Loopback0R3(config-if)# ip address 50.1.1.1 255.255.255.0R3(config)#interface Serial1R3(config-if)# ip address 20.1.1.2 255.255.255.0R3(config-if)#no shutdown步骤二:配置ospf路由协议,使其连通R1的配置R1(config)#router ospf 1R1(config-router)# network 10.1.1.0 0.0.0.255 area 0R1(config-router)# network 30.1.1.0 0.0.0.255 area 0R2的配置R2(config)#router ospf 1R2(config-router)#network 10.1.1.0 0.0.0.255 area 0R2(config-router)# network 20.1.1.0 0.0.0.255 area 0R2(config-router)# network 40.1.1.0 0.0.0.255 area 0R3的配置R3(config)#router ospf 1R3(config-router)# network 20.1.1.0 0.0.0.255 area 0R3(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 Loopback0R1(config-if)# ip pim sparse-mode 接口PIM模式为稀疏R1(config)# interface Serial0R1(config-if)# ip pim sparse-modeR1(config)# ip pim send-rp-announce Loopback0 scope 5 指定R1为RPR2的配置R2(config)#ip multicast-routingR2(config)# interface Loopback0R2(config-if)# ip pim sparse-modeR2(config)# interface Serial0R2(config-if)# ip pim sparse-modeR2(config)# interface Serial1R2(config-if)# ip pim sparse-modeR2(config)# ip pim send-rp-discovery Loopback0 scope 5 将R2指定为映射代理R3的配置R3(config)#ip multicast-routingR3(config)# interface Loopback0R3(config-if)# ip pim sparse-modeR3(config-if)# ip igmp join-group 239.3.3.3 将此接口加入到组239.3.3.3R3(config)# interface Serial1R3(config-if)# ip pim sparse-mode 步骤四:查看组播路由表R1#sh ip mroute 239.3.3.3 IP Multicast Routing TableFlags: 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 groupOutgoing 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: NullR2#sh ip mroute 239.3.3.3IP Multicast Routing TableFlags: 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 groupOutgoing 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:53R3#sh ip mroute 239.3.3.3IP Multicast Routing TableFlags: 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 groupOutgoing 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 s0Address Interface Ver/ Nbr Query DR DR Mode Count Intvl Prior10.1.1.1 Serial0 v2/S 1 30 1 0.0.0.0R1#sh ip pim int lo 0Address Interface Ver/ Nbr Query DR DR Mode Count Intvl Prior30.1.1.1 Loopback0 v2/S 0 30 1 30.1.1.1R2#sh ip pim int s0Address Interface Ver/ Nbr Query DR DR Mode Count Intvl Prior20.1.1.1 Serial0 v2/S 1 30 1 0.0.0.0R2#sh ip pim int s1Address Interface Ver/ Nbr Query DR DR Mode Count Intvl Prior10.1.1.2 Serial1 v2/S 1 30 1 0.0.0.0R2#sh ip pim int lo 0Address Interface Ver/ Nbr Query DR DR Mode Count Intvl Prior40.1.1.1 Loopback0 v2/S 0 30 1 40.1.1.1R3#sh ip pim int s1Address Interface Ver/ Nbr Query DR DR Mode Count Intvl Prior20.1.1.2 Serial1 v2/S 1 30 1 0.0.0.0R3#sh ip pim int lo 0Address Interface Ver/ Nbr Query DR DR Mode Count Intvl Prior50.1.1.1 Loopback0 v2/S 0 30 1 50.1.1.1步骤六:查看组播邻居R1#sh ip pim neighborPIM Neighbor TableNeighbor Interface Uptime/Expires Ver DRAddress Prio/Mode10.1.1.2 Serial0 01:59:55/00:01:38 v2 1 / SR2#sh ip pim neiPIM Neighbor TableNeighbor Interface Uptime/Expires Ver DRAddress Prio/Mode20.1.1.2 Serial0 02:00:36/00:01:17 v2 1 / S10.1.1.1 Serial1 02:03:04/00:01:21 v2 1 / SR3#sh ip pim neighborPIM Neighbor TableNeighbor Interface Uptime/Expires Ver DRAddress Prio/Mode20.1.1.1 Serial1 02:03:21/00:01:35 v2 1 / S步骤七:查看rp映射表R1#sh ip pim rp mappingPIM Group-to-RP MappingsThis 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:59R2#sh ip pim rp mappingPIM Group-to-RP MappingsThis 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:44R3#sh ip pim rp mappingPIM Group-to-RP MappingsGroup(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.3Type 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 msR2#ping 239.3.3.3Type 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 msReply to request 0 from 20.1.1.2, 136 msReply to request 0 from 20.1.1.2, 80 msR3#ping 239.3.3.3Type 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 runhostname 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 1network 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 5endR2#sh runhostname 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!endR3#sh runhostname 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多播实验(二)环境:三台路由器由串口相联,连接如下图。要求:1、在三台路由器上运行OSPF进程号随意,将所有的接口作用到区域0内2、在这三台路由器启用多播,将R1指定为RP(LOOP 0),将R2指定为映射代理(LOOP 0),将R3 的LOOP 0加入到多播组239.3.3.3,并要求做测试与show显示 。配置步骤1:(联通性的配置)R1的配置Router#conf tRouter(config)#host R1R1(config)#int loo 0R1(config-if)#ip add 100.1.1.1 255.255.255.0R1(config-if)#ip ospf network point-to-pointR1(config-if)#int s0R1(config-if)#ip add 10.1.1.1 255.255.255.0R1(config-if)#clock rate 64000R1(config-if)#no shR1(config-if)#exitR1(config)#router ospf 100R1(config-router)#network 10.1.1.1 0.0.0.0 area 0R1(config-router)#network 100.1.1.1 0.0.0.0 area 0R1(config-router)#exitR2的配置R2(config)#host R2R2(config)#int lo 0R2(config-if)#ip add 120.1.1.1 255.255.255.0R2(config-if)#int s0R2(config-if)#ip add 20.1.1.1 255.255.255.0R2(config-if)#no shR2(config-if)#int s1R2(config-if)#ip add 10.1.1.2 255.255.255.0R2(config-if)#no shR2(config-if)#cl ra 64000R2(config-if)#exitR2(config)#router ospf 100R2(config-router)#net 120.1.1.1 0.0.0.0 area 0R2(config-router)#net 20.1.1.1 0.0.0.0 area 0R2(config-router)#net 10.1.1.2 0.0.0.0 area 0R2(config-router)#exitR2(config)#endR2#R3的配置Router#conf tRouter(config)#hostname R3R3(config)#interface loop 0R3(config-if)#ip add 130.1.1.1 255.255.255.0R3(config-if)#ip ospf network point-to-pointR3(config-if)#int s1R3(config-if)#ip add 20.1.1.2 255.255.255.0R3(config-if)#clock rate 64000R3(config-if)#no shR3(config-if)#exitR3(config)#router ospf 100R3(config-router)#network 130.1.1.1 0.0.0.0 area 0R3(config-router)#network 20.1.1.2 0.0.0.0 area 0R3(config-router)#exitR3(config)#R1#show ip route (测试联通性,显示路由表)Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static routeGateway of last resort is not set 100.0.0.0/24 is subnetted, 1 subnetsC 100.1.1.0 is directly connected, Loopback0 20.0.0.0/24 is subnetted, 1 subnetsO 20.1.1.0 110/128 via 10.1.1.2, 00:43:13, Serial0 130.1.0.0/24 is subnetted, 1 subnetsO 130.1.1.0 110/129 via 10.1.1.2, 00:43:13, Serial0 10.0.0.0/24 is subnetted, 1 subnetsC 10.1.1.0 is directly connected, Serial0 120.0.0.0/24 is subnetted, 1 subnetsO 120.1.1.0 110/65 via 10.1.1.2, 00:43:13, Serial0R1#R2#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static routeGateway of last resort is not set 100.0.0.0/24 is subnetted, 1 subnetsO 100.1.1.0 110/65 via 10.1.1.1, 00:55:22, Serial1 20.0.0.0/24 is subnetted, 1 subnetsC 20.1.1.0 is directly connected, Serial0 130.1.0.0/24 is subnetted, 1 subnetsO 130.1.1.0 110/65 via 20.1.1.2, 00:55:22, Serial0 10.0.0.0/24 is subnetted, 1 subnetsC 10.1.1.0 is directly connected, Serial1 120.0.0.0/24 is subnetted, 1 subnetsC 120.1.1.0 is directly connected, Loopback0R2#R3#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static routeGateway of last resort is not set 100.0.0.0/24 is subnetted, 1 subnetsO 100.1.1.0 110/129 via 20.1.1.1, 00:55:47, Serial1 20.0.0.0/24 is subnetted, 1 subnetsC 20.1.1.0 is directly connected, Serial1 130.1.0.0/24 is subnetted, 1 subnetsC 130.1.1.0 is directly connected, Loopback0 10.0.0.0/24 is subnetted, 1 subnetsO 10.1.1.0 110/128 via 20.1.1.1, 00:55:47, Serial1 120.0.0.0/24 is subnetted, 1 subnetsO 120.1.1.0 110/65 via 20.1.1.1, 00:55:47, Serial1R1#ping 130.1.1.1 (测试联通性)Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 130.1.1.1, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 56/60/64 msR1#R3#ping 100.1.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 100.1.1.1, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 56/60/64 ms步骤二:配置多播R1#conf tR1(config)#ip multicast-routing (启用多播路由)R1(config)#int loopback 0R1(config-if)#ip pim sparse-dense-mode(定义模式并使接口加入到组播)R1(config-if)#interface s0R1(config-if)#ip pim sparse-dense-mod (定义模式并使接口加入到组播)R1(config-if)#exitR1(config)#access-list 10 permit 239.3.3.3 (定义组播列表)R1(config)#ip pim send-rp-announce loopback 0 scope 5 group-list 10(定义R1为该组的RP)R1(config)#R2#conf tR2(config)#ip multicast-routing (启用多播路由)R2(config)#int loopback 0R2(config-if)#ip pim sparse-dense-mode(定义模式并使接口加入到组播)R2(config-if)#interface s0R2(config-if)#ip pim sparse-dense-modeR2(config-if)#interface s1R2(config-if)#ip pim sparse-dense-modeR2(config-if)#exitR2(config)#ip pim send-rp-discovery loopback 0 scope 5(使R2为映射代理)R3#conf tR3(config)#ip multicast-routingR3(config)#int loopback 0R3(config-if)#ip pim sparse-dense-modeR3(config-if)#ip igmp join-group 239.3.3.3 (接口参与到该组)R3(config-if)#interface s1R3(config-if)#ip pim sparse-dense-modeR3(config-if)#endR3#步骤三:显示当前配置结果R1#show ip pim rp (显示RP)Group: 239.3.3.3, RP: 100.1.1.1, v2, v1, next RP-reachable in 00:00:55R1#R2#show ip pim rpGroup: 239.3.3.3, RP: 100.1.1.1, v2, v1, uptime 00:07:06, expires 00:03:44R3#show ip pim rpGroup: 239.3.3.3, RP: 100.1.1.1, v2, v1, uptime 00:05:27, expires 00:03:34R3#R1#show ip mroute summary (显示多播汇总路由)IP Multicast Routing TableFlags: 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 - Advertised via MSDP, U - URD, I - Received Source Specific Host Repo

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论