组播实验怎么做?看这篇就够了!文末有惊喜!
https://editor-material.365editor.com/style/20230220167686474063f2ece47a929material.gif1.PIM DM实验
2.IGMPv1-v3实验,可以观察IGMP报文
3.PIM SM静态实验
4.PIM SM动态实验
https://editor-user.365editor.com/98/85/4933185/1692932202539447.png
配置IP地址,PIM部分路由器IGP互联。
multicast routing-enable igmp enable
PC1点击组播加组
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
multicast routing-enablepim dmpim dm
multicast routing-enable
pim dm
pim dm
pim dm
pim dm
pim dm
multicast routing-enable
pim dmigmp 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
https://editor-user.365editor.com/98/85/4933185/1692932289538288.png
加入组后,启动vcl,接收到组播流量。
查看IGMPv1报文实验
undo igmp enable //开启pim需要先关闭igmppim dmigmp enable igmp version 1
<R4>dis igmp interface g0/0/2 //查看接口0/0/2的igmp信息Interface information of VPN-Instance: public netGigabitEthernet0/0/2(192.168.1.1):IGMP is enabledCurrent IGMP version is 1IGMP state: upIGMP group policy: noneIGMP limit: -Value of query interval for IGMP (negotiated): -Value of query interval for IGMP (configured): 60 sValue of other querier timeout for IGMP: 0 sValue 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报文
https://editor-user.365editor.com/98/85/4933185/1692932346345635.png
2.普遍组查询报文
https://editor-user.365editor.com/98/85/4933185/1692932432680640.png
3.成员关系报告报文
https://editor-user.365editor.com/98/85/4933185/1692932448412531.png
查看IGMPv2报文实验
默认版本为v2
特定组查询报文
https://editor-user.365editor.com/98/85/4933185/1692932946547899.png
成员关系报告报文
https://editor-user.365editor.com/98/85/4933185/1692933213334396.png
离开报文
https://editor-user.365editor.com/98/85/4933185/1692933239152644.png
查看IGMPv3报文实验
添加组播源IP
https://editor-user.365editor.com/98/85/4933185/1692933271831172.png
https://editor-user.365editor.com/98/85/4933185/1692933276186893.png
PIM SM
静态RP
所有pim路由器创建环回口,且都igp互通。设置R2为RPip address 3.3.3.3 32static-rp 2.2.2.2
ip address 1.1.1.1 32static-rp 2.2.2.2
ip address 3.3.3.3 32
static-rp 2.2.2.2
ip address 4.4.4.4 32
static-rp 2.2.2.2
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
pim sm //动态的方式的话选举RP,需要环回接口也开启PIM SM模式c-bsr priority 100 //通过控制C-BSR的优先级,选举成为正式的BSRc-bsr LoopBack 0
pim smc-bsr LoopBack 0
pim sm
c-bsr LoopBack 0
pim sm
c-bsr LoopBack 0
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 c-rp LoopBack 0c-rp LoopBack 0c-rp LoopBack 0c-rp LoopBack 0
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,备注鸿鹄论坛,无尝传给你们。
https://editor-material.365editor.com/style/20230220167686474063f2ece49a3d3material.gifhttps://editor-material.365editor.com/style/20230220167686474063f2ece4b7c43material.gif
{:6_267:}棒棒哒 {:6_268:}
页:
[1]