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

07-IP组播配置举例

目录

02-H3C S12500 PIM-SSM典型配置举例

本章节下载 02-H3C S12500 PIM-SSM典型配置举例  (162.94 KB)

02-H3C S12500 PIM-SSM典型配置举例

H3C S12500 PIM-SSM配置举例

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2013 杭州华三通信技术有限公司 版权所有,保留一切权利。

非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部,

并不得以任何形式传播。本文档中的信息可能变动,恕不另行通知。

H3C_彩色.emf

 



1  简介

本文档介绍了PIM-SSM配置举例。

SSM(Source-Specific Multicast,指定信源组播)模型为指定源组播提供了解决方案。在PIM-SSM网络中,在IGMPv3的支持下,接收者在加入某组播组G的同时,能够明确要求接收来自某特定组播源S的组播信息。由于接收者已经通过其它渠道(如广告咨询等)知道了组播源的具体位置,因此在SSM模型中无需RP,无需构建RPT,无需源注册过程,也无需通过MSDP(Multicast Source Discovery Protocol,组播源发现协议)来发现其它PIM域内的组播源。

2  配置前提

本文档中的配置均是在实验室环境下进行的配置和验证,配置前设备的所有参数均采用出厂时的缺省配置。如果您已经对设备进行了配置,为了保证配置效果,请确认现有配置和以下举例中的配置不冲突。

本文假设您已了解PIM-SSM特性。

3  配置举例

3.1  组网需求

图1所示,三层交换机SwitchA、SwitchB和SwitchC之间采用OSPF协议进行互连,单播路由正常。末梢用户网络N1、N2、N3中都存在视频信息的点播者。

要求在该网络中采用PIM-SSM协议构建组播数据分发树,以保证接收者可加入SSM组地址为225.0.0.0/8范围内的组播组,且能够指定接收特定组播源发来的组播数据。

图1 PIM-SSM配置组网图

设备

接口

IP地址

设备

接口

IP地址

Switch A

Vlan-int100(GE3/0/1)

10.10.1.1/24

Switch C

Vlan-int102(GE3/0/1)

10.102.1.1/24

 

Vlan-int12(GE3/0/2)

10.12.1.1/24

 

Vlan-int13(GE3/0/3)

10.13.1.3/24

 

Vlan-int13(GE3/0/3)

10.13.1.1/24

 

Vlan-int23(GE3/0/2)

10.23.1.3/24

Switch B

Vlan-int101(GE3/0/1)

10.101.1.1/24

 

Vlan-int33(GE3/0/4)

10.33.1.3/24

 

Vlan-int12(GE3/0/2)

10.12.1.2/24

 

 

 

 

Vlan-int23(GE3/0/3)

10.23.1.2/24

 

 

 

 

3.2  使用版本

本举例是在S12500-CMW520-R1825P01版本上进行配置和验证的。

3.3  配置注意事项

·     PIM-SSM模型需要IGMPv3的支持,因此应确保连接有接收者的PIM设备上使能了IGMPv3,且要求接收者主机也要运行IGMPv3。

·     应确保域内所有路由器上配置的SSM组播组地址范围都一致,否则组播信息将无法通过SSM模型进行传输。如果没有配置SSM的组地址,缺省为232.0.0.0~232.255.255.255。

·     若要实现主机既能加入SSM地址范围内的组播组,又能加入SSM地址范围外的组播组,可在PIM-SSM网络中配置RP及BSR,实现PIM-SM即可。

·     设备目前不支持组播组成员以exclude模式加入组播组。

3.4  配置步骤

3.4.1  Switch A的配置

(1)     使能组播路由功能

<SwitchA> system-view

System View: return to User View with Ctrl+Z.

[SwitchA] multicast routing-enable

(2)     配置各接口及接口地址,并使能PIM-SM

# 配置连接组播源的接口及接口地址,使能PIM-SM。

[SwitchA] vlan 100

[SwitchA-vlan100] port GigabitEthernet 3/0/1

[SwitchA-vlan100] quit

[SwitchA] interface vlan 100

[SwitchA-Vlan-interface100] ip address 10.10.1.1 24

[SwitchA-Vlan-interface100] pim sm

[SwitchA-Vlan-interface100] undo shutdown

[SwitchA-Vlan-interface100] quit

[SwitchA] interface GigabitEthernet 3/0/1

[SwitchA-GigabitEthernet3/0/1] undo shutdown

[SwitchA-GigabitEthernet3/0/1] quit

# 配置连接SwitchB的接口及接口地址,使能PIM-SM

[SwitchA] vlan 12

[SwitchA-vlan12] port GigabitEthernet 3/0/2

[SwitchA-vlan12] quit

[SwitchA] interface vlan 12

[SwitchA-Vlan-interface12] ip address 10.12.1.1 24

[SwitchA-Vlan-interface12] pim sm

[SwitchA-Vlan-interface12] undo shutdown

[SwitchA-Vlan-interface12] quit

[SwitchA] interface GigabitEthernet 3/0/2

[SwitchA-GigabitEthernet3/0/2] undo shutdown

[SwitchA-GigabitEthernet3/0/2] quit

# 配置连接SwitchC的接口及接口地址,使能PIM-SM

[SwitchA] vlan 13

[SwitchA-vlan13] port GigabitEthernet 3/0/3

[SwitchA-vlan13] quit

[SwitchA] interface vlan 13

[SwitchA-Vlan-interface13] ip address 10.13.1.1 24

[SwitchA-Vlan-interface13] pim sm

[SwitchA-Vlan-interface13] undo shutdown

[SwitchA-Vlan-interface13] quit

[SwitchA] interface GigabitEthernet 3/0/3

[SwitchA-GigabitEthernet3/0/3] undo shutdown

[SwitchA-GigabitEthernet3/0/3] quit

(3)     配置SSM组地址范围为225.0.0.0/8

[SwitchA] acl number 2000

[SwitchA-acl-basic-2000] rule permit source 225.0.0.0 0.255.255.255

[SwitchA-acl-basic-2000] quit

[SwitchA] pim

[SwitchA-pim] ssm-policy 2000

[SwitchA-pim] quit

(4)     配置单播路由协议,以建立正确的单播路由表项

[SwitchA] ospf 1

[SwitchA-ospf-1] import-route direct

[SwitchA-ospf-1] area 0.0.0.0

[SwitchA-ospf-1-area-0.0.0.0] network 10.0.0.0 0.255.255.255

[SwitchA-ospf-1-area-0.0.0.0] quit

[SwitchA-ospf-1] quit

3.4.2  Switch B的配置

(1)     使能组播路由功能

<SwitchB> system-view

[SwtichB] multicast routing-enable

(2)     配置各接口及接口地址,并使能PIM-SM

# 配置连接SwtichA的接口及接口地址,使能PIM-SM。

[SwitchB] vlan 12

[SwitchB-vlan12] port GigabitEthernet 3/0/2

[SwitchB-vlan12] quit

[SwitchB] interface vlan 12

[SwitchB-Vlan-interface12] ip address 10.12.1.2 24

[SwitchB-Vlan-interface12] pim sm

[SwitchB-Vlan-interface12] undo shutdown

[SwitchB-Vlan-interface12] quit

[SwitchB] interface GigabitEthernet 3/0/2

[SwitchB-GigabitEthernet3/0/2] undo shutdown

[SwitchB-GigabitEthernet3/0/2] quit

# 配置连接SwtichC的接口及接口地址,使能PIM-SM

[SwitchB] vlan 23

[SwitchB-vlan23] port GigabitEthernet 3/0/3

[SwitchB-vlan23] quit

[SwitchB] interface vlan 23

[SwitchB-Vlan-interface23] ip address 10.23.1.2 24

[SwitchB-Vlan-interface23] pim sm

[SwitchB-Vlan-interface23] undo shutdown

[SwitchB-Vlan-interface23] quit

[SwitchB] interface GigabitEthernet 3/0/3

[SwitchB-GigabitEthernet3/0/3] undo shutdown

[SwitchB-GigabitEthernet3/0/3] quit

# 配置连接网络N1的接口及接口地址,使能PIM-SMIGMPv3

[SwitchB] vlan 101

[SwitchB-vlan101] port GigabitEthernet 3/0/1

[SwitchB-vlan101] quit

[SwitchB] interface vlan 101

[SwitchB-Vlan-interface101] ip address 10.101.1.1 24

[SwitchB-Vlan-interface101] pim sm

[SwitchB-Vlan-interface101] igmp enable

[SwitchB-Vlan-interface101] igmp version 3

[SwitchB-Vlan-interface101] undo shutdown

[SwitchB-Vlan-interface101] quit

[SwitchB] interface GigabitEthernet 3/0/1

[SwitchB-GigabitEthernet3/0/1] undo shutdown

[SwitchB-GigabitEthernet3/0/1] quit

(3)     配置SSM组地址范围为225.0.0.0/8

[SwitchB] acl number 2000

[SwitchB-acl-basic-2000] rule permit source 225.0.0.0 0.255.255.255

[SwitchB-acl-basic-2000] pim

[SwitchB-pim] ssm-policy 2000

[SwitchB-pim] quit

(4)     配置单播路由协议,以建立正确的单播路由表项

[SwitchB] ospf 1

[SwitchB-ospf-1] import-route direct

[SwitchB-ospf-1] area 0.0.0.0

[SwitchB-ospf-1-area-0.0.0.0] network 10.0.0.0 0.255.255.255

[SwitchB-ospf-1-area-0.0.0.0]quit

[SwitchB-ospf-1]quit

3.4.3  Switch C的配置

(1)     使能组播路由功能

<SwitchC> system-view

[SwtichC] multicast routing-enable

(2)     配置各接口及接口地址,并使能PIM-SM

# 配置连接SwtichA的接口及接口地址,使能PIM-SM。

[SwitchC] vlan 13

[SwitchC-vlan13] port GigabitEthernet 3/0/3

[SwitchC-vlan13] quit

[SwitchC] interface vlan 13

[SwitchC-Vlan-interface13] ip address 10.13.1.3 24

[SwitchC-Vlan-interface13] pim sm

[SwitchC-Vlan-interface13] undo shutdown

[SwitchC-Vlan-interface13] quit

[SwitchC] interface GigabitEthernet 3/0/3

[SwitchC-GigabitEthernet3/0/3] undo shutdown

[SwitchC-GigabitEthernet3/0/3] quit

# 配置连接SwtichB的接口及接口地址,使能PIM-SM

[SwitchC] vlan 23

[SwitchC-vlan23] port GigabitEthernet 3/0/2

[SwitchC-vlan23] quit

[SwitchC] interface vlan 23

[SwitchC-Vlan-interface23] ip address 10.23.1.3 24

[SwitchC-Vlan-interface23] pim sm

[SwitchC-Vlan-interface23] undo shutdown

[SwitchC-Vlan-interface23] quit

[SwitchC] interface GigabitEthernet 3/0/2

[SwitchC-GigabitEthernet3/0/2] undo shutdown

[SwitchC-GigabitEthernet3/0/2] quit

# 配置连接网络N2的接口及接口地址,使能PIM-SMIGMPv3协议。

[SwitchC] vlan 102

[SwitchC-vlan102] port GigabitEthernet 3/0/1

[SwitchC-vlan102] quit

[SwitchC] interface vlan 102

[SwitchC-Vlan-interface102] ip address 10.102.1.1 24

[SwitchC-Vlan-interface102] pim sm

[SwitchC-Vlan-interface102] igmp enable

[SwitchC-Vlan-interface102] igmp version 3

[SwitchC-Vlan-interface102] undo shutdown

[SwitchC-Vlan-interface102] quit

[SwitchC] interface GigabitEthernet 3/0/1

[SwitchC-GigabitEthernet3/0/1] undo shutdown

[SwitchC-GigabitEthernet3/0/1] quit

# 配置连接网络N3的接口及接口地址,使能PIM-SMIGMPv3协议。

[SwitchC] vlan 33

[SwitchC-vlan33] port GigabitEthernet 3/0/4

[SwitchC-vlan33] quit

[SwitchC] interface vlan 33

[SwitchC-Vlan-interface33] ip address 10.33.1.3 24

[SwitchC-Vlan-interface33] pim sm

[SwitchC-Vlan-interface33] igmp enable

[SwitchC-Vlan-interface33] igmp version 3

[SwitchC-Vlan-interface33] undo shutdown

[SwitchC-Vlan-interface33] quit

[SwitchC] interface GigabitEthernet 3/0/4

[SwitchC-GigabitEthernet3/0/4] undo shutdown

[SwitchC-GigabitEthernet3/0/4] quit

(3)     配置SSM组地址范围为225.0.0.0/8

[SwitchC] acl number 2000

[SwitchC-acl-basic-2000] rule permit source 225.0.0.0 0.255.255.255

[SwitchC-acl-basic-2000] pim

[SwitchC-pim] ssm-policy 2000

(4)     配置单播路由协议,以建立正确的单播路由表项

[SwitchC] ospf 1

[SwitchC-ospf-1] import-route direct

[SwitchC-ospf-1] area 0.0.0.0

[SwitchC-ospf-1-area-0.0.0.0] network 10.0.0.0 0.255.255.255

[SwitchC-ospf-1-area-0.0.0.0]quit

[SwitchC-ospf-1]quit

3.5  验证配置

(1)     按照如上配置后,查看配置信息发现SwitchA、SwitchB、SwitchC两两之间建立了PIM邻居关系。

# 查看SwitchA上的PIM邻居信息。

[SwtichA] display pim neighbor

 VPN-Instance: public net

 Total Number of Neighbors = 2

 

 Neighbor        Interface           Uptime   Expires  Dr-Priority  Mode

 10.12.1.2       Vlan12              00:00:05 00:01:20 1

 10.13.1.3       Vlan13              00:00:25 00:01:21 1

# 查看SwitchB上的PIM邻居信息。

[SwtichB] display pim neighbor

 VPN-Instance: public net

 Total Number of Neighbors = 2

 

 Neighbor        Interface           Uptime   Expires  Dr-Priority  Mode

 10.12.1.1       Vlan12              00:00:05 00:01:40 1

 10.23.1.3       Vlan23              00:00:20 00:01:41 1

# 查看SwitchC上的PIM邻居信息。

[SwtichC] display pim neighbor

 VPN-Instance: public net

 Total Number of Neighbors = 2

 

 Neighbor        Interface           Uptime   Expires  Dr-Priority  Mode

 10.13.1.1       Vlan13              00:00:25 00:01:30 1

 10.23.1.2       Vlan23              00:00:20 00:01:31 1

(2)     查看交换机上的PIM路由表信息

# Host A指定加入组播组G(225.1.1.1)后,查看Switch B上的PIM路由表信息,可以看出具体的(S,G)表项,(*,G)与(S,G)表项总数、PIM的模式、入接口、上游邻居、RPF邻居和下游接口信息。

[SwitchB] display pim routing-table

VPN-Instance: public net

Total 0 (*, G) entry; 1 (S, G) entry

 

 (10.10.1.2, 225.1.1.1)

     Protocol: pim-ssm, Flag:

     UpTime: 00:14:24

     Upstream interface: Vlan-interface12

         Upstream neighbor: 10.12.1.1

         RPF prime neighbor: 10.12.1.1

     Downstream interface(s) information:

     Total number of downstreams: 1

         1: Vlan-interface101

             Protocol: igmp, UpTime: 00:14:24, Expires: -

Switch ASwitch C上的显示信息与Switch B类似。

3.6  配置文件

·     Switch A

#

vlan 12 to 13

#

vlan 100

#

#

multicast routing-enable

#

acl number 2000

 rule permit source 225.0.0.0 0.255.255.255

#

interface Vlan-interface12

 ip address 10.12.1.1 255.255.255.0

 pim sm

#

interface Vlan-interface13

 ip address 10.13.1.1 255.255.255.0

 pim sm

#

interface Vlan-interface100

 ip address 10.10.1.1 255.255.255.0

 pim sm

#

interface GigabitEthernet3/0/1

 port link-mode bridge

 port access vlan 100

#

interface GigabitEthernet3/0/2

 port link-mode bridge

 port access vlan 12

#

interface GigabitEthernet3/0/3

 port link-mode bridge

 port access vlan 13

#

ospf 1

 import-route direct

area 0.0.0.0

 network 10.0.0.0 0.255.255.255

#

pim

 ssm-policy 2000

#

·     Switch B

#

vlan 12

#

vlan 23

#

vlan 101

#

multicast routing-enable

#

acl number 2000

 rule permit source 225.0.0.0 0.255.255.255

#

interface Vlan-interface12

 ip address 10.12.1.2 255.255.255.0

 pim sm

#

interface Vlan-interface23

 ip address 10.23.1.2 255.255.255.0

 pim sm

#

interface Vlan-interface101

 ip address 10.101.1.1 255.255.255.0

 igmp enable

 igmp version 3

 pim sm

#

interface GigabitEthernet3/0/1

 port link-mode bridge

 port access vlan 101

#

interface GigabitEthernet3/0/2

 port link-mode bridge

 port access vlan 12

#

interface GigabitEthernet3/0/3

 port link-mode bridge

 port access vlan 23

#

ospf 1

 import-route direct

area 0.0.0.0

 network  10.0.0.0 0.255.255.255

#

pim

 ssm-policy 2000

#

·     Switch C

#

vlan 13

#

vlan 23

#

vlan33

#

vlan 102

#

multicast routing-enable

#

acl number 2000

 rule permit source 225.0.0.0 0.255.255.255

#

interface Vlan-interface13

 ip address 10.13.1.3 255.255.255.0

 pim sm

#

interface Vlan-interface23

 ip address 10.23.1.3 255.255.255.0

 pim sm

#

interface Vlan-interface33

 ip address 10.33.1.3 255.255.255.0

 igmp enable

 igmp version 3

 pim sm

#

interface Vlan-interface102

 ip address 10.102.1.1 255.255.255.0

 igmp enable

 igmp version 3

 pim sm

#

interface GigabitEthernet3/0/1

 port link-mode bridge

 port access vlan 102

#

interface GigabitEthernet3/0/2

 port link-mode bridge

 port access vlan 23

#

interface GigabitEthernet3/0/3

 port link-mode bridge

 port access vlan 13

#

interface GigabitEthernet3/0/4

 port link-mode bridge

 port access vlan 33

#

ospf 1

 import-route direct

area 0.0.0.0

 network  10.0.0.0 0.255.255.255

#

pim

 ssm-policy 2000

#

4  相关资料

·     《H3C S12500系列路由交换机  IP组播配置指导》中的“PIM”

·     《H3C S12500系列路由交换机  IP组播命令参考》中的“PIM”

 

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

新华三官网
联系我们