华为组播实验,PIM-DM组播实验
阅读原文时间:2022年04月11日阅读:1

一、配置VLAN,并将端口加入VLAN

LSW5:

system
vlan batch 10 to 100
int g 0/0/1
    port link-type trunk
    port trunk allow pass vlan all
int g 0/0/3
    port link-type trunk
    port trunk allow pass vlan all
ing g 0/0/2
    port link-type access
    port default vlan 10

其余交换机配置几乎相同,略

二、配置VLANif接口

LSW5:

system
int vlanif 10
    ip ad 10.10.0.1 24
int vlanif 40
    ip ad 10.40.0.1 24
int vlanif 70
    ip ad 10.70.0.1 24

其余交换机配置几乎相同,略

三、配置路由协议,使以上设备能够相互通信

LSW5:

ospf 100
area 0
    network 10.10.0.1 0.0.0.0
    network 10.40.0.1 0.0.0.0
    network 10.70.0.1 0.0.0.0
    ### 将自身的IP地址宣告出去

其余交换机配置几乎相同,略。配置完成后,所有设备都能相互ping通,确认好再进行下一步。

四、开启组播路由功能

LSW5:

multicast routing-enable
int vlanif 10
    pim dm
int vlanif 40
    pim dm
int vlanif 70
    pim dm

其余交换机配置几乎相同,略。

五、在连接用户主机的接口上使能IGMP

LSW5:

int vlanif 10
  igmp enable

六、验证结果

使用命令 display pim interface 命令查看接口上PIM的配置和运行情况。需要State字段显示为up,表示PIM邻居成功建立。

<Huawei>dis pim int
 VPN-Instance: public net
 Interface           State NbrCnt HelloInt   DR-Pri     DR-Address
 Vlanif10            up    0      30         1          10.10.0.1       (local)
 Vlanif70            up    1      30         1          10.70.0.2
 Vlanif40            up    1      30         1          10.40.0.2

七、配置组播地址

MCS1:

PC1:

1、然后点击图片上的 启动VLC

2、找到MCS1,选择一段视频,点击运行,但是弹出了如下窗口

PS:MP4视频我在https://www.vjshi.com/上面随便下载的

八、下载VLC播放器

https://www.videolan.org/vlc/

下载安装完成后,在ENSP右上角的 齿轮(设置)=>工具设置=>VLC中选择刚才安装好的目录下的vlc.exe。

再点击运行,PC1就能接收到MSC1发送来的视频啦。

可以在SW5上查看组播路由表:

<Huawei>dis pim routing-table
 VPN-Instance: public net
 Total 1 (*, G) entry; 1 (S, G) entry

 (*, 239.1.1.1)
     Protocol: pim-dm, Flag: WC
     UpTime: 01:10:02
     Upstream interface: NULL
         Upstream neighbor: NULL
         RPF prime neighbor: NULL
     Downstream interface(s) information:
     Total number of downstreams: 1
         1: Vlanif10
             Protocol: igmp, UpTime: 01:10:02, Expires: never

 (10.100.0.2, 239.1.1.1)
     Protocol: pim-dm, Flag: ACT
     UpTime: 00:01:19
     Upstream interface: Vlanif70
         Upstream neighbor: 10.70.0.2
         RPF prime neighbor: 10.70.0.2
     Downstream interface(s) information:
     Total number of downstreams: 1
         1: Vlanif10
             Protocol: pim-dm, UpTime: 00:01:19, Expires:  -

手机扫一扫

移动阅读更方便

阿里云服务器
腾讯云服务器
七牛云服务器