1、换个法子看电影eNSP的组播功能模拟实验一、下载eNSP和vlc播放器eNSP正式版本下载地址:VLC是开源软件下载地址是:二、安装vlc播放器下载后自行安装即可,注意要记下安装目录,等下要用。如果下载的是ZIP压缩包,解压到任意目录即可。三、配置eNSP的vlc参数菜单-工具-选项-工具配置 VLC后面指定你刚才安装的目录vlc.exe四、如图搭建拓扑(也可自己定义,第一次推荐照着来)五、配置网络里的各设备1 路由器的配置(可以贴进去):sysname ar1220multicast routing-enable# 全局开启组播功能的命令interface Ethernet0/0/0undo
2、 shutdownip address 192.168.200.1 255.255.255.0pim sm#接组播服务器的接口下配置pim为稀疏模式interface Ethernet0/0/1undo shutdownip address 192.168.100.1 255.255.255.0pim sm#接三层交换机的接口下配置pim为稀疏模式ospf 1#配置OSPF保证路由器和交换机之间的单播路由互通area 0.0.0.0 network 192.168.100.0 0.0.0.255 network 192.168.200.0 0.0.0.255pim#路由器上配置pim的c-bs
3、r(候选自举路由器)和c-rp(候选汇聚点)c-bsr priority 10c-bsr Ethernet0/0/0#pim稀疏模式配置c-bsr,用来集中通告rp(组播相关概念的详细说明请查HedEx)c-rp priority 10c-rp Ethernet0/0/0#pim稀疏模式配置c-rp,用来选举rp2 交换机的配置(可以贴进去)sysname sw5700vlan batch 10 20 100# 创建vlanmulticast routing-enable# 全局开启组播功能的命令interface Vlanif10ip address 192.168.10.1 255.255
4、.255.0pim sm#vlanif 10接口下开启pim稀疏模式igmp enable#接组播客户端的接口开启igmp功能,默认是V2interface Vlanif20ip address 192.168.20.1 255.255.255.0pim sm#vlanif 20接口下开启pim稀疏模式igmp enable#接组播客户端的接口开启igmp功能,默认是V2interface Vlanif100ip address 192.168.100.100 255.255.255.0pim sm#vlanif 100接口下开启pim稀疏模式,此接口是接路由器的,可以不开igmp功能inte
5、rface GigabitEthernet0/0/1port hybrid pvid vlan 100port hybrid untagged vlan 100interface GigabitEthernet0/0/2port hybrid pvid vlan 10port hybrid untagged vlan 10interface GigabitEthernet0/0/3port hybrid pvid vlan 20port hybrid untagged vlan 20ospf 1#配置OSPF保证路由器和交换机之间的单播路由互通area 0.0.0.0 network 192.
6、168.10.0 0.0.0.255 network 192.168.20.0 0.0.0.255 network 192.168.100.0 0.0.0.2553配置MCS服务器配置好了就点“运行”,此时可以看以服务器的视频播放。4配置PC1 (PC2类似)配置好了点“加入” “启动VLC”这个时候应该可以看到PC上播放的视频了,和服务器是一样的(会有一点滞后)七、验证参数ar1220display pim interface#可以看到本路由器上参与pim的接口VPN-Instance: public netInterface State NbrCnt HelloInt DR-Pri DR-
7、AddressEth0/0/0 up 0 30 1 192.168.200.1 (local)Eth0/0/1 up 1 30 1 192.168.100.100#pim上在以太网上要选DR,(local)表示是自己为DRar1220display pim neighbor# 路由器上看到的邻居是交换机192.168.100.100VPN-Instance: public netTotal Number of Neighbors = 1Neighbor Interface Uptime Expires Dr-Priority192.168.100.100 Eth0/0/1 00:19:43 0
8、0:01:23 1ar1220dis pim routing-table#查看pim组播路由表的命令,也可以用dis multicast routing-tableVPN-Instance: public netTotal 1 (*, G) entry; 1 (S, G) entry(*, 225.1.1.1) RP: 192.168.200.1 (local) Protocol: pim-sm, Flag: WC UpTime: 00:01:23 Upstream interface: Register Upstream neighbor: NULL RPF prime neighbor:
9、NULL Downstream interface(s) information: Total number of downstreams: 1 1: Ethernet0/0/1 Protocol: pim-sm, UpTime: 00:01:23, Expires: 00:03:06(192.168.200.200, 225.1.1.1) RP: 192.168.200.1 (local) Protocol: pim-sm, Flag: SPT 2MSDP LOC ACT UpTime: 00:03:39 Upstream interface: Ethernet0/0/0 Upstream
10、neighbor: NULL RPF prime neighbor: NULL Downstream interface(s) information: Total number of downstreams: 1 1: Ethernet0/0/1 Protocol: pim-sm, UpTime: 00:01:23, Expires: 00:03:06sw5700dis pim rp-info#查看rp的信息,交换机上可以看到rp是路由器192.168.200.1VPN-Instance: public netPIM-SM BSR RP Number:1Group/MaskLen: 224.
11、0.0.0/4 RP: 192.168.200.1#这里可以看到rp的地址是192.168.200.1,优先级是10,候选RP的优先级越高越容易成为RP。 Priority: 10 Uptime: 00:18:37 Expires: 00:01:36sw5700dis multicast routing-table#交换机上的组播路由表Multicast routing tableTotal 1 entry00001.(192.168.200.200, 225.1.1.1) Uptime: 00:01:53 Upstream Interface: Vlanif100#组播来源的接口是vlan1
12、00List of 2 downstream interfaces#组播流去向:vlan10 vlan20 1: Vlanif10 2: Vlanif20sw5700display igmp interface#查看参与IGMP的接口Interface informationVlanif10(192.168.10.1): IGMP is enabled# IGMPCurrent IGMP version is 2#IGMP版本是2 IGMP state: up IGMP group policy: none IGMP limit: - Value of query interval for I
13、GMP (negotiated): - Value of query interval for IGMP (configured): 60 s Value of other querier timeout for IGMP: 0 s Value of maximum query response time for IGMP: 10 sQuerier for IGMP: 192.168.10.1 (this router)#查询路由器是本路由器 Total 1 IGMP Group reportedVlanif20(192.168.20.1): IGMP is enabled Current I
14、GMP version is 2 IGMP state: up IGMP group policy: none IGMP limit: - Value of query interval for IGMP (negotiated): - Value of query interval for IGMP (configured): 60 s Value of other querier timeout for IGMP: 0 s Value of maximum query response time for IGMP: 10 s Querier for IGMP: 192.168.20.1 (this router)
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1