Bootstrap

华为ensp---组播服务器实验

一、实验拓扑

ensp里选择MCS为组播服务器

在这里插入图片描述

二、设置VLC参数

点击ensp右上角的设置,在工具设置里面把VLC的安装路径选上

在这里插入图片描述

三、详细配置

1.组播服务器配置在这里插入图片描述

在这里插入图片描述

2.PC端配置

输入MCS组播的IP和MAC地址
在这里插入图片描述

2.路由器配置

<Huawei>system-view 
[Huawei]multicast routing-enable 
[Huawei]interface GigabitEthernet0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.200.1 255.255.255.0
[Huawei-GigabitEthernet0/0/0]pim sm
[Huawei-GigabitEthernet0/0/0]interface GigabitEthernet0/0/1
[Huawei-GigabitEthernet0/0/0]ip address 192.168.100.1 255.255.255.0
[Huawei-GigabitEthernet0/0/0]pim sm
[Huawei-GigabitEthernet0/0/0]ospf 1
[Huawei-ospf-1]area 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.100.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]network 192.168.200.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]pim
[Huawei-pim]c-bsr priority 10
[Huawei-pim]c-bsr GigabitEthernet 0/0/0
[Huawei-pim]c-rp priority 10
[Huawei-pim]c-rp GigabitEthernet 0/0/0

3.交换机配置

<Huawei>system-view 
[Huawei]vlan batch 10 20 100
[Huawei]multicast routing-enable 
[Huawei]interface Vlanif 10
[Huawei-Vlanif10]ip address 192.168.10.1 255.255.255.0
[Huawei-Vlanif10]pim sm
[Huawei-Vlanif10]igmp enable 
[Huawei-Vlanif10]interface vlanif 20
[Huawei-Vlanif20]ip address 192.168.20.1 255.255.255.0
[Huawei-Vlanif20]pim sm
[Huawei-Vlanif20]igmp enable 
[Huawei-Vlanif20]interface vlanif 100
[Huawei-Vlanif100]ip address 192.168.100.254 255.255.255.0
[Huawei-Vlanif100]pim sm
[Huawei-Vlanif100]igmp enable 
[Huawei-Vlanif100]quit
[Huawei]interface GigabitEthernet 0/0/2
[Huawei-GigabitEthernet0/0/2]port link-type access 
[Huawei1-GigabitEthernet0/0/2]port default vlan 10
[Huawei-GigabitEthernet0/0/2]interface GigabitEthernet 0/0/3
[Huawei-GigabitEthernet0/0/3]port link-type access 
[Huawei-GigabitEthernet0/0/3]port default vlan 20
[Huawei-GigabitEthernet0/0/3]quit
[Huawei]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]port hybrid pvid vlan 100
[Huawei-GigabitEthernet0/0/1]port hybrid untagged vlan 100  //也尝试了用access接口,pvid100,也没问题
[Huawei-GigabitEthernet0/0/1]ospf 1
[Huawei-ospf-1]area 0.0.0.0
[Huawei-ospf-1-area-0.0.0.0]network 192.168.10.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]network 192.168.20.0 0.0.0.255
[Huawei-ospf-1-area-0.0.0.0]network 192.168.100.0 0.0.0.255

四、验证网络互通

在这里插入图片描述

五、验证实验

选择组播源后,点击运行,再点击PC的组播-启动VLC,PC就会播放MCS的视频。

在这里插入图片描述

;