- 实验目的
- 熟悉IGMPv3的应用场景
- 掌握IGMPv3的配置方法
- 实验拓扑
实验拓扑如图9-22所示:
图9-22:IGMPv3
- 实验步骤
(1)配置IP地址
MCS1的配置
MCS1的IP地址配置如图9-23所示:
图9-23:配置MCS1的IP地址
MCS2的配置
MCS2的IP地址配置如图9-24所示:
图9-24:配置MCS2的IP地址
R1的配置
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable
[Huawei]sysname R1
[R1]interface g0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[R1-GigabitEthernet0/0/0]quit
[R1]interface g0/0/1
[R1-GigabitEthernet0/0/1]ip address 10.1.1.251 24
[R1-GigabitEthernet0/0/1]quit
R2的配置
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable
Info: Information center is disabled.
[Huawei]sysname R2
[R2]interface g0/0/0
[R2-GigabitEthernet0/0/0]ip address 192.168.2.2 24
[R2-GigabitEthernet0/0/0]quit
[R2]interface g0/0/1
[R2-GigabitEthernet0/0/1]ip address 10.1.1.252 24
[R2-GigabitEthernet0/0/1]quit
PC1的配置
PC1的IP地址配置如图9-25所示:
图9-25:配置PC1的IP地址
PC2的配置
PC2的IP地址配置如图9-26所示:
图9-26:配置PC2的IP地址
(2)运行OSPF
R1的配置
[R1]ospf router-id 1.1.1.1
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[R1-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
[R1-ospf-1-area-0.0.0.0]quit
R2的配置
[R2]ospf router-id 2.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 192.168.2.0 0.0.0.255
[R2-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
[R2-ospf-1-area-0.0.0.0]quit
(3)运行PIM
R1的配置
[R1]multicast routing-enable
[R1]interface g0/0/0
[R1-GigabitEthernet0/0/0]pim dm
[R1-GigabitEthernet0/0/0]quit
[R1]interface g0/0/1
[R1-GigabitEthernet0/0/1]pim dm
[R1-GigabitEthernet0/0/1]quit
R2的配置
[R2]multicast routing-enable
[R2]interface g0/0/0
[R2-GigabitEthernet0/0/0]pim dm
[R2-GigabitEthernet0/0/0]quit
[R2]interface g0/0/1
[R2-GigabitEthernet0/0/1]pim dm
[R2-GigabitEthernet0/0/1]quit
(4)运行IGMP V3
R1的配置
[R1]interface g0/0/1
[R1-GigabitEthernet0/0/1]igmp enable
[R1-GigabitEthernet0/0/1]igmp version 3
R2的配置
[R2]interface g0/0/1
[R2-GigabitEthernet0/0/1]igmp enable
[R2-GigabitEthernet0/0/1]igmp version 3
[R2-GigabitEthernet0/0/1]quit
- 实验调试
(1)查看IGMP的接口信息
[R2]display igmp interface
Interface information of VPN-Instance: public net
GigabitEthernet0/0/1(10.1.1.252):
IGMP is enabled
Current IGMP version is 3
IGMP state: up
IGMP group policy: none
IGMP limit: -
Value of query interval for IGMP (negotiated): 60 s
Value of query interval for IGMP (configured): 60 s
Value of other querier timeout for IGMP: 96 s
Value of maximum query response time for IGMP: 10 s
Querier for IGMP: 10.1.1.251
华为Datacom网络工程师HCIP全套学习课程(全套理论+实验)-学习视频教程-腾讯课堂
(2)配置PC2,让其加入到组播224.1.1.1
PC2的配置如图9-27所示:
图9-27:配置PC2让其加入到组播224.1.1.1