拓扑图:
MCS1
AR1
interface GigabitEthernet0/0/0
ip address 192.168.1.1 255.255.255.0
pim dm
interface GigabitEthernet0/0/1
ip address 12.1.1.1 255.255.255.0
pim dm
ospf 1
area 0.0.0.0
network 12.1.1.0 0.0.0.255
network 192.168.1.0 0.0.0.255
AR2
interface GigabitEthernet0/0/0
ip address 12.1.1.2 255.255.255.0
pim dm
interface GigabitEthernet0/0/1
ip address 192.168.2.1 255.255.255.0
pim dm
igmp enable
ospf 1
area 0.0.0.0
network 12.1.1.0 0.0.0.255
network 192.168.2.0 0.0.0.255
PC1
运行结果:
在MCS上:
随后会播放所选中的视频:
接下来再从PC上运行VLC:
此时屏幕上会有两个相同的视频播放,实现了加入组播组与接收组播信息的验证。