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,备注鸿鹄论坛,无尝传给你们。
|