• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 新华三人才研学中心
  • 关于我们

H3C S5830V2[S5820V2]系列以太网交换机 典型配置举例-Release22xx系列-6W100

目录

29-IGMP典型配置举例

本章节下载 29-IGMP典型配置举例  (118.26 KB)

docurl=/cn/Service/Document_Software/Document_Center/Switches/Catalog/S5800/S5830V2/Configure/Typical_Configuration_Example/H3C_S5830V2[S5820V2]-Release22xx-6W100/201403/819595_30005_0.htm

29-IGMP典型配置举例


1  IGMP典型配置举例

1.1  简介

本章介绍了使用IGMP相关功能实现对IP组播成员进行管理的典型配置举例。

1.2  IGMP组播组过滤器配置举例

1.2.1  适用产品和版本

表1 配置适用的产品与软件版本关系

产品

软件版本

S5830V2&S5820V2系列以太网交换机

Release 2208P01,Release 2210

 

1.2.2  组网需求

图1所示,PIM-DM网络内连接用户网络N1和用户网络N2的边界三层交换机上均运行IGMPv2功能。

现要求通过在IGMP交换机上配置IGMP组播组过滤器功能,实现控制用户网络N2内的接收者只能加入组播组224.1.1.1,而对用户网络N1内的接收者所能加入的组播组没有限制。

图1 IGMP组播组过滤器配置组网图

 

 

1.2.3  配置思路

·     因共享网段N2内有多台IGMP交换机,为实现本组网需求,需要在该共享网段内的所有IGMP交换机上都配置相同的IGMP组播组过滤器。

·     为实现IGMP组播组过滤器控制主机加入组播组的范围,需要为其创建基本ACL,并在该ACL规则中指定允许主机加入的组播组范围。

1.2.4  配置注意事项

由于不同版本IGMP协议的报文结构与种类不同,因此需要为同一网段上的所有三层交换机配置相同版本的IGMP,否则IGMP将不能正常运行。

1.2.5  配置步骤

(1)     配置PIM-DM域内各交换机的IP地址、单播路由协议和组播路由协议

配置PIM-DM域内交换机上各接口的IP地址和子网掩码,具体配置过程略。

配置PIM-DM域内的各交换机之间采用OSPF协议进行互连,确保PIM-DM域内部在网络层互通,并在各交换机上配置PIM-DM协议,以建立组播路由转发表项,实现组播数据可以从组播源到达接收者,具体配置过程略。

(2)     配置Switch A

# 在Switch A上使能IP组播路由,在各接口上使能PIM-DM,并在主机侧接口Vlan-interface100上使能IGMP。

<SwitchA> system-view

[SwitchA] multicast routing-enable

[SwitchA] interface vlan-interface 100

[SwitchA-Vlan-interface100] igmp enable

[SwitchA-Vlan-interface100] pim dm

[SwitchA-Vlan-interface100] quit

[SwitchA] interface vlan-interface 101

[SwitchA-Vlan-interface101] pim dm

[SwitchA-Vlan-interface101] quit

(3)     配置Switch B

# 在Switch B上使能IP组播路由,在各接口上使能PIM-DM,并在主机侧接口Vlan-interface200上使能IGMP及配置组播组过滤器,以在Switch B上限制用户网络N2内的主机只能加入组播组224.1.1.1。

<SwitchB> system-view

[SwitchB] acl number 2001

[SwitchB-acl-basic-2001] rule permit source 224.1.1.1 0

[SwitchB-acl-basic-2001] quit

[SwitchB] multicast routing-enable

[SwitchB] interface vlan-interface 200

[SwitchB-Vlan-interface200] igmp enable

[SwitchB-Vlan-interface200] igmp group-policy 2001

[SwitchB-Vlan-interface200] pim dm

[SwitchB-Vlan-interface200] quit

[SwitchB] interface vlan-interface 201

[SwitchB-Vlan-interface201] pim dm

[SwitchB-Vlan-interface201] quit

(4)     配置Switch C

# 在Switch C上使能IP组播路由,在各接口上使能PIM-DM,并在主机侧接口Vlan-interface200上使能IGMP及配置组播组过滤器,以在Switch C上限制用户网络N2内的主机只能加入组播组224.1.1.1。

<SwitchC> system-view

[SwitchC] acl number 2001

[SwitchC-acl-basic-2001] rule permit source 224.1.1.1 0

[SwitchC-acl-basic-2001] quit

[SwitchC] multicast routing-enable

[SwitchC] interface vlan-interface 200

[SwitchC-Vlan-interface200] igmp enable

[SwitchC-Vlan-interface200] igmp group-policy 2001

[SwitchC-Vlan-interface200] pim dm

[SwitchC-Vlan-interface200] quit

[SwitchC] interface vlan-interface 202

[SwitchC-Vlan-interface202] pim dm

[SwitchC-Vlan-interface202] quit

1.2.6  验证配置

(1)     查看共享网络N2内IGMP查询器选举信息

配置完成后,查看接入共享网络N2的三层交换机Switch B和Switch C上IGMP查询器选举信息:

# 查看Switch B上IGMP查询器选举信息。

[SwitchB] display igmp interface

 Vlan-interface200(10.110.2.1):

   IGMP is enabled.

   IGMP version: 2

   Query interval for IGMP: 125s

   Other querier present time for IGMP: 255s

   Maximum query response time for IGMP: 10s

   Querier for IGMP: 10.110.2.1 (This router)

  IGMP groups reported in total: 1

# 查看Switch C上IGMP查询器选举信息。

[SwitchC] display igmp interface

 Vlan-interface200(10.110.2.2):

   IGMP is enabled.

   IGMP version: 2

   Query interval for IGMP: 125s

   Other querier present time for IGMP: 255s

   Maximum query response time for IGMP: 10s

   Querier for IGMP: 10.110.2.1

  IGMP groups reported in total: 1

由上显示信息可知,通过查询器选举,共享网段中IP地址最小的Switch B成为本共享网段的IGMP查询器。

(2)     查看交换机上IGMP组播组信息

配置完成后,用户网络N2内的组播接收者Host C分别发送组播组地址为224.1.1.1和224.1.1.2的IGMP成员关系报告报文,通过display igmp group命令查看Switch B和Switch C上IGMP组播组信息,验证配置效果:

# 查看Switch B上IGMP组播组信息。

[SwitchB] display igmp group

IGMP groups in total: 1

 Vlan-interface200(10.110.2.1):

  IGMP groups reported in total: 1

   Group Address   Last Reporter   Uptime      Expires

   224.1.1.1       10.110.2.10     04:36:03    00:01:23

# 查看Switch C上IGMP组播组信息。

[SwitchC] display igmp group

IGMP groups in total: 1

 Vlan-interface200(10.110.2.2):

  IGMP groups reported in total: 1

   Group Address   Last Reporter   Uptime      Expires

   224.1.1.1       10.110.2.10     04:21:03    00:01:13

Host C发送了组播组地址为224.1.1.1和224.1.1.2的IGMP成员关系报告报文,而Switch B和Switch C上只有组播组224.1.1.1的IGMP组播组信息,由此可见在Switch B和Switch C上配置的IGMP组播组过滤器已生效,用户网络N2内的组播接收者只能加入组播组224.1.1.1。

1.2.7  配置文件

(1)     Switch A配置信息

#

 multicast routing-enable

#

vlan 100 to 101

#

interface Vlan-interface100

 pim dm

 igmp enable

#

interface Vlan-interface101

 pim dm

#

(2)     Switch B配置信息

#

 multicast routing-enable

#

acl number 2001

 rule 0 permit source 224.1.1.1 0

#

vlan 200 to 201

#

interface Vlan-interface200

 pim dm

 igmp enable

 igmp group-policy 2001

#

interface Vlan-interface201

 pim dm

#

(3)     Switch C配置信息

#

 multicast routing-enable

#

acl number 2001

 rule 0 permit source 224.1.1.1 0

#

vlan 200

#

vlan 202

#

interface Vlan-interface200

 pim dm

 igmp enable

 igmp group-policy 2001

#

interface Vlan-interface202

 pim dm

#

 

不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!

新华三官网
联系我们