华为ensp拓补图
实验步骤
1.配置IP地址
- AR1配置
#
interface GigabitEthernet0/0/0ip address 192.168.1.1 255.255.255.0
#
interface GigabitEthernet0/0/1ip address 12.1.1.1 255.255.255.0
#
interface GigabitEthernet0/0/2ip address 13.1.1.1 255.255.255.0
#
- AR2配置
#
interface GigabitEthernet0/0/0ip address 12.1.1.2 255.255.255.0
#
interface GigabitEthernet0/0/1ip address 10.1.1.252 255.255.255.0
#
- AR3配置
#
interface GigabitEthernet0/0/0ip address 13.1.1.3 255.255.255.0
#
interface GigabitEthernet0/0/1ip address 10.1.1.253 255.255.255.0
#
2.配置IGP-ospf
- AR1
#
ospf 1 router-id 1.1.1.1 area 0.0.0.0 network 12.1.1.0 0.0.0.255 network 13.1.1.0 0.0.0.255 network 192.168.1.0 0.0.0.255
#
- AR2
#
ospf 1 router-id 2.2.2.2 area 0.0.0.0 network 10.1.1.0 0.0.0.255 network 12.1.1.0 0.0.0.255
#
- AR3
#
ospf 1 router-id 3.3.3.3 area 0.0.0.0 network 10.1.1.0 0.0.0.255 network 13.1.1.0 0.0.0.255
#
3.运行PIM-DM
- AR1
#
multicast routing-enable
#
pim dm
- AR2
#
multicast routing-enable
#
pim dm
- AR3
#
multicast routing-enable
#
pim dm
4.运行IGMPV1
- R2配置
interface GigabitEthernet0/0/1igmp enableigmp version 1
#
- R3配置
interface GigabitEthernet0/0/1igmp enableigmp version 1
#
5.实验验证
1.
在R2中输入
#
dis igmp interface
- 在R2中开启调试信息
<Huawei>debugging igmp report //启用 IGMP 报告(Report)消息的调试信息。
<Huawei>debugging igmp event //启用所有 IGMP 事件的调试信息。
<Huawei>debugging igmp leave //启用 IGMP 离开(Leave)消息的调试信息。
<Huawei>terminal monitor //当前终端上启用实时日志输出。
<Huawei>terminal debugging //当前终端上启用调试信息的输出。
[Huawei]info-center enable //开启日志undo debugging all //关闭所有调试