设为首页收藏本站language→→ 语言切换

鸿鹄论坛

 找回密码
 论坛注册

QQ登录

先注册再绑定QQ

查看: 1420|回复: 2
收起左侧

组播实验怎么做?看这篇就够了!文末有惊喜!

[复制链接]
发表于 2023-8-25 11:52:50 | 显示全部楼层 |阅读模式

                               
登录/注册后可看大图


1.PIM DM实验

2.IGMPv1-v3实验,可以观察IGMP报文

3.PIM SM静态实验

4.PIM SM动态实验


                               
登录/注册后可看大图

配置IP地址,PIM部分路由器IGP互联。

[R4]multicast routing-enable
[R4-GigabitEthernet0/0/2]igmp enable

PC1点击组播加组

[R4]dis igmp routing-table
Routing table of VPN-Instance: public net
Total 1 entry

00001. (*, 239.1.1.1)
       List of 1 downstream interface
        GigabitEthernet0/0/2 (192.168.1.1),
                   Protocol: IGMP

开启PIM-DM

[R1]multicast routing-enable
[R1-GigabitEthernet0/0/0]pim dm
[R1-GigabitEthernet0/0/2]pim dm

[R2]multicast routing-enable

[R2-GigabitEthernet0/0/0]pim dm


[R2-GigabitEthernet0/0/1]pim dm

[R2-GigabitEthernet0/0/2]pim dm

[R4-GigabitEthernet0/0/0]pim dm

[R4-GigabitEthernet0/0/1]pim dm

[R3]multicast routing-enable

[R3-GigabitEthernet0/0/0]pim dm
[R3-GigabitEthernet0/0/1]igmp enable

<R4>dis pim routing-table   //查看pim对于的表项
VPN-Instance: public net
Total 1 (*, G) entry; 1 (S, G) entry

(*, 239.1.1.1)
     Protocol: pim-dm, Flag: WC EXT
     UpTime: 00:20:44
     Upstream interface: NULL
         Upstream neighbor: NULL
         RPF prime neighbor: NULL
     Downstream interface(s) information: None

(172.16.1.100, 239.1.1.1)
     Protocol: pim-dm, Flag: EXT ACT
     UpTime: 00:03:39
     Upstream interface: GigabitEthernet0/0/1
         Upstream neighbor: 24.1.1.2
         RPF prime neighbor: 24.1.1.2
     Downstream interface(s) information: None


                               
登录/注册后可看大图


加入组后,启动vcl,接收到组播流量。

查看IGMPv1报文实验

[R4-GigabitEthernet0/0/2]undo igmp enable   //开启pim需要先关闭igmp
[R4-GigabitEthernet0/0/2]pim dm
[R4-GigabitEthernet0/0/2]igmp enable
[R4-GigabitEthernet0/0/2]igmp version 1

<R4>dis igmp interface g0/0/2    //查看接口0/0/2的igmp信息
Interface information of VPN-Instance: public net
GigabitEthernet0/0/2(192.168.1.1):
IGMP is enabled
Current IGMP version is 1
IGMP state: up
IGMP group policy: none
IGMP limit: -
Value of query interval for IGMP (negotiated): -
Value of query interval for IGMP (configured): 60 s
Value of other querier timeout for IGMP: 0 s
Value of maximum query response time for IGMP: -
Querier for IGMP: 192.168.1.1 (this router)
Total 1 IGMP Group reported

IGMP查询器,依靠pim协议hello报文选举。

1.PIM hello报文


                               
登录/注册后可看大图


2.普遍组查询报文


                               
登录/注册后可看大图


3.成员关系报告报文


                               
登录/注册后可看大图


查看IGMPv2报文实验

默认版本为v2

特定组查询报文


                               
登录/注册后可看大图


成员关系报告报文


                               
登录/注册后可看大图


离开报文


                               
登录/注册后可看大图


查看IGMPv3报文实验

添加组播源IP


                               
登录/注册后可看大图


                               
登录/注册后可看大图


PIM SM

静态RP

所有pim路由器创建环回口,且都igp互通。
设置R2为RP
[R2-LoopBack0]ip address 3.3.3.3 32
[R2-pim]static-rp 2.2.2.2

[R1-LoopBack0]ip address 1.1.1.1 32
[R1-pim]static-rp 2.2.2.2

[R3-LoopBack0]ip address 3.3.3.3 32

[R3-pim]static-rp 2.2.2.2

[R4-LoopBack0]ip address 4.4.4.4 32

[R4-pim]static-rp 2.2.2.2

[R2-pim]dis pim routing-table
VPN-Instance: public net
Total 1 (*, G) entry; 1 (S, G) entry

(*, 239.1.1.1)
     RP: 2.2.2.2 (local)
     Protocol: pim-sm, Flag: WC
     UpTime: 00:00:27
     Upstream interface: Register
         Upstream neighbor: NULL
         RPF prime neighbor: NULL
     Downstream interface(s) information:
     Total number of downstreams: 1
         1: GigabitEthernet0/0/2
             Protocol: pim-sm, UpTime: 00:00:27, Expires: 00:03:03

(172.16.1.100, 239.1.1.1)
     RP: 2.2.2.2 (local)
     Protocol: pim-sm, Flag: SPT 2MSDP ACT
     UpTime: 00:00:03
     Upstream interface: GigabitEthernet0/0/0
         Upstream neighbor: 13.1.1.1
         RPF prime neighbor: 13.1.1.1
     Downstream interface(s) information:
     Total number of downstreams: 1
         1: GigabitEthernet0/0/2
             Protocol: pim-sm, UpTime: 00:00:03, Expires: -

动态RP

[R2-LoopBack0]pim sm          //动态的方式的话选举RP,需要环回接口也开启PIM SM模式
[R2-pim]c-bsr priority 100    //通过控制C-BSR的优先级,选举成为正式的BSR
[R2-pim]c-bsr LoopBack 0

[R1-LoopBack0]pim sm
[R1-pim]c-bsr LoopBack 0

[R3-LoopBack0]pim sm

[R3-pim]c-bsr LoopBack 0

[R4-LoopBack0]pim sm

[R4-pim]c-bsr LoopBack 0

[R2-pim]dis pim bsr-info   //查看bsr信息
VPN-Instance: public net
Elected AdminScoped BSR Count: 0
Elected BSR Address: 2.2.2.2
     Priority: 100
     Hash mask length: 30
     State: Elected
     Scope: Not scoped
     Uptime: 00:06:07
     Next BSR message scheduled at: 00:00:53
     C-RP Count: 0
Candidate AdminScoped BSR Count: 0
Candidate BSR Address: 2.2.2.2
     Priority: 100
     Hash mask length: 30
     State: Elected
     Scope: Not scoped
     Wait to be BSR: 0
     
     
[R1-pim]c-rp LoopBack 0
[R2-pim]c-rp LoopBack 0
[R3-pim]c-rp LoopBack 0
[R4-pim]c-rp LoopBack 0

[R2-pim]dis pim rp-info
VPN-Instance: public net
PIM-SM BSR RP Number:4
Group/MaskLen: 224.0.0.0/4
     RP: 1.1.1.1
     Priority: 0
     Uptime: 00:02:21
     Expires: 00:02:09
Group/MaskLen: 224.0.0.0/4
     RP: 2.2.2.2 (local)
     Priority: 0
     Uptime: 00:02:14
     Expires: 00:02:16
Group/MaskLen: 224.0.0.0/4
     RP: 3.3.3.3
     Priority: 0
     Uptime: 00:02:11
     Expires: 00:02:19
Group/MaskLen: 224.0.0.0/4
     RP: 4.4.4.4
     Priority: 0
     Uptime: 00:02:08
     Expires: 00:02:22
PIM SM static RP Number:1
     Static RP: 2.2.2.2 (local)

超完整几十篇实验文档免费分享,需要的可以加我的v:qyt3378266435,备注鸿鹄论坛,无尝传给你们。


                               
登录/注册后可看大图

                               
登录/注册后可看大图


您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2024-4-28 18:42 , Processed in 0.055217 second(s), 11 queries , Redis On.  

  Powered by Discuz!

  © 2001-2024 HH010.COM

快速回复 返回顶部 返回列表