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

H3C MSR系列路由器典型配置举例(V5)-6W100

目录

09-MSR系列路由器Embeded RP for IPv6 PIM SM典型配置举例

本章节下载 09-MSR系列路由器Embeded RP for IPv6 PIM SM典型配置举例  (137.19 KB)

09-MSR系列路由器Embeded RP for IPv6 PIM SM典型配置举例

MSR系列路由器Embeded RP for IPv6 PIM SM的典型配置举例

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

H3C_彩色.emf

 



1  简介

本文档介绍使用Embedded RP的典型案例。

2  配置前提

本文档不严格与具体软、硬件版本对应,如果使用过程中与产品实际情况有差异,请参考相关产品手册,或以设备实际情况为准。

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

本文档假设您已了解Embedded RP的特性。

3  配置举例

3.1  组网需求

图1所示,在IPv6网络中,Router A、Router B、Router C和Router D运行OSPFv3协议,单播路由可达。所有路由器运行PIM SM组播路由协议,并缺省情况下支持嵌入式RP解析功能。Router D运行MLD协议。现要求:在组播源Server上使用嵌入式RP功能直接指定某组播组对应的RP地址,实现组播数据的转发。

图1 MSR路由器Embedded RP基本组网图

设备

接口

IP地址

设备

接口

IP地址

Router A

Eth0/0

2001::1/64

Router C

Eth0/0

2006::1/64

 

Eth0/1

2002::1/64

 

Eth0/1

2004::1/64

 

Eth0/2

2006::1/64

Router D

Eth0/0

2005::1/64

Router B

Eth0/0

2002::2/64

 

Eth0/1

2003::2/64

 

Eth0/1

2003::1/64

 

Eth0/2

2004::2/64

Server

-

2001::2/64

Receiver

-

2005::2/64

 

3.2  配置思路

为了使Receiver接受到组播源的组播报文,需要在Router D接口配置静态路由加入IPv6组播源组,同时保证该接口使能MLD。

3.3  使用版本

本举例是在Release 2311版本上进行配置和验证的。

3.4  配置步骤

3.4.1  Router A的配置

# 全局使能IPv6

<RouterA> system-view

[RouterA] ipv6

# 配置接口地址,使能OSPFv3协议。

[RouterA] interface ethernet 0/0

[RouterA-Ethernet0/0] port link-mode route

[RouterA-Ethernet0/0] ipv6 address 2001::1/64

[RouterA-Ethernet0/0] ospfv3 1 area 0.0.0.0

[RouterA-Ethernet0/0] quit

[RouterA] interface ethernet 0/1

[RouterA-Ethernet0/1] port link-mode route

[RouterA-Ethernet0/1] ipv6 address 2002::1/64

[RouterA-Ethernet0/1] ospfv3 1 area 0.0.0.0

[RouterA-Ethernet0/1] quit

[RouterA] interface ethernet 0/2

[RouterA-Ethernet0/2] port link-mode route

[RouterA-Ethernet0/2] ipv6 address 2006::1/64

[RouterA-Ethernet0/2] ospfv3 1 area 0.0.0.0

[RouterA-Ethernet0/2] quit

# 配置OSPFv3Router ID

[RouterA] ospfv3 1

[RouterA-ospfv3-1] router-id 1.1.1.1

[RouterA-ospfv3-1] quit

# 使能IPv6组播路由。

[RouterA] multicast ipv6 routing-enable

# 配置路由器所有接口使能IPv6 PIM-SM

[RouterA] interface ethernet 0/0

[RouterA-Ethernet0/0] pim ipv6 sm

[RouterA-Ethernet0/0] quit

[RouterA] interface ethernet 0/1

[RouterA-Ethernet0/1] pim ipv6 sm

[RouterA-Ethernet0/1] return

[RouterA] interface ethernet 0/2

[RouterA-Ethernet0/2] pim ipv6 sm

[RouterA-Ethernet0/2] quit

3.4.2  Router B的配置

# 全局使能IPv6

<RouterB> system-view

[RouterB] ipv6

# 配置接口地址,使能OSPFv3协议。

[RouterB] interface ethernet 0/0

[RouterB-Ethernet0/0] port link-mode route

[RouterB-Ethernet0/0] ipv6 address 2002::2/64

[RouterB-Ethernet0/0] ospfv3 1 area 0.0.0.0

[RouterB-Ethernet0/0] quit

[RouterB] interface ethernet 0/1

[RouterB-Ethernet0/1] port link-mode route

[RouterB-Ethernet0/1] ipv6 address 2003::1/64

[RouterB-Ethernet0/1] ospfv3 1 area 0.0.0.0

[RouterB-Ethernet0/1] quit

# 配置OSPFv3Router ID

[RouterB] ospfv3 1

[RouterB-ospfv3-1] router-id 2.2.2.2

[RouterB-ospfv3-1] quit

# 使能IPv6组播路由。

[RouterB] multicast ipv6 routing-enable

# 配置路由器所有接口使能IPv6 PIM-SM

[RouterB] interface ethernet 0/0

[RouterB-Ethernet0/0] pim ipv6 sm

[RouterB-Ethernet0/0] quit

[RouterB] interface ethernet 0/1

[RouterB-Ethernet0/1] pim ipv6 sm

[RouterB-Ethernet0/1] quit

3.4.3  Router C的配置

# 全局使能IPv6

<RouterC> system-view

[RouterC] ipv6

# 配置接口地址,使能OSPFv3协议。

[RouterC] interface ethernet 0/0

[RouterC-Ethernet0/0] port link-mode route

[RouterC-Ethernet0/0] ipv6 address 2006::1/64

[RouterC-Ethernet0/0] ospfv3 1 area 0.0.0.0

[RouterC-Ethernet0/0] quit

[RouterC] interface ethernet 0/1

[RouterC-Ethernet0/1] port link-mode route

[RouterC-Ethernet0/1] ipv6 address 2004::1/64

[RouterC-Ethernet0/1] ospfv3 1 area 0.0.0.0

[RouterC-Ethernet0/1] quit

# 配置OSPFv3Router ID

[RouterC] ospfv3 1

[RouterC-ospfv3-1] router-id 3.3.3.3

[RouterC-ospfv3-1] quit

# 使能IPv6组播路由。

[RouterC] multicast ipv6 routing-enable

# 配置路由器所有接口使能IPv6 PIM-SM

[RouterC] interface ethernet 0/0

[RouterC-Ethernet0/0] pim ipv6 sm

[RouterC-Ethernet0/0] quit

[RouterC] interface ethernet 0/1

[RouterC-Ethernet0/1] pim ipv6 sm

[RouterC-Ethernet0/1] quit

3.4.4  Router D的配置

# 全局使能IPv6

<RouterD> system-view

[RouterD] ipv6

# 配置接口地址,使能OSPFv3协议。

[RouterD] interface ethernet 0/0

[RouterD-Ethernet0/0] port link-mode route

[RouterD-Ethernet0/0] ipv6 address 2005::1/64

[RouterD-Ethernet0/0] ospfv3 1 area 0.0.0.0

[RouterD-Ethernet0/0] quit

[RouterD] interface ethernet 0/1

[RouterD-Ethernet0/1] port link-mode route

[RouterD-Ethernet0/1] ipv6 address 2003::2/64

[RouterD-Ethernet0/1] ospfv3 1 area 0.0.0.0

[RouterD-Ethernet0/1] quit

[RouterD] interface ethernet 0/2

[RouterD-Ethernet0/2] port link-mode route

[RouterD-Ethernet0/2] ipv6 address 2004::2/64

[RouterD-Ethernet0/2] ospfv3 1 area 0.0.0.0

[RouterD-Ethernet0/2] quit

# 配置OSPFv3Router ID

[RouterD] ospfv3 1

[RouterD-ospfv3-1] router-id 4.4.4.4

[RouterD-ospfv3-1] quit

# 使能IPv6组播路由。

[RouterD] multicast ipv6 routing-enable

# 配置路由器所有接口使能IPv6 PIM-SMMLD

[RouterD] interface ethernet 0/0

[RouterD-Ethernet0/0] pim ipv6 sm

[RouterD-Ethernet0/0] mld enable

[RouterD-Ethernet0/0] quit

[RouterD] interface ethernet 0/1

[RouterD-Ethernet0/1] pim ipv6 sm

[RouterD-Ethernet0/1] mld enable

[RouterD-Ethernet0/1] quit

[RouterD] interface ethernet 0/2

[RouterD-Ethernet0/2] pim ipv6 sm

[RouterD-Ethernet0/2] mld enable

[RouterD-Ethernet0/2] quit

# 配置接口静态加入IPv6组播源组,组播组地址FF7E:210:2003::1和FF7E:110:2004::1对应的RP地址分别为2003::1/64和2004::1/64。

[RouterD] interface ethernet 0/0

[RouterD-Ethernet0/0] mld static-group FF7E:210:2003::1

[RouterD-Ethernet0/0] mld static-group FF7E:110:2004::1

[RouterD-Ethernet0/0] quit

3.5  验证结果

# 如果组播源发送非Embedded RP的组播报文,则receiver无法接收到组播报文;当组播源发送Embedded RP的组播报文时receiver可以直接对该组播地址所包含的RP进行加入,接收组播报文。

<RouterD> display pim ipv6 routing-table

 Total 3 (*, G) entries; 2 (S, G) entries

 

 (*, FF7E:110:2004::1)

     RP: 2004::1

     Protocol: pim-sm, Flag: WC

     UpTime: 00:47:20

     Upstream interface: Ethernet0/2

         Upstream neighbor: FE80::511A:9:7

         RPF prime neighbor: FE80::511A:9:7

     Downstream interface(s) information:

     Total number of downstreams: 1

         1: Ethernet0/0

             Protocol: static, UpTime: 00:47:20, Expires: -

 (2001::2, FF7E:110:2004::1)

     RP: 2004::1

     Protocol: pim-sm, Flag: ACT

     UpTime: 00:47:20

     Upstream interface: Ethernet0/2

         Upstream neighbor: FE80::511A:9:7

         RPF prime neighbor: FE80::511A:9:7

     Downstream interface(s) information:

     Total number of downstreams: 1

         1: Ethernet0/0

             Protocol: pim-sm, UpTime:  - , Expires:  -

 (*, FF7E:210:2003::1)

     RP: 2003::2 (local)

     Protocol: pim-sm, Flag: WC

     UpTime: 15:18:15

     Upstream interface: Register

         Upstream neighbor: NULL

         RPF prime neighbor: NULL

     Downstream interface(s) information:

     Total number of downstreams: 1

         1: Ethernet0/0

             Protocol: static, UpTime: 15:12:05, Expires: -

 (2001::2, FF7E:210:2003::1)

     RP: 2003::2 (local)

     Protocol: pim-sm, Flag: ACT

     UpTime: 15:18:54

     Upstream interface: Register

         Upstream neighbor: NULL

         RPF prime neighbor: NULL

     Downstream interface(s) information:

     Total number of downstreams: 1

         1: Ethernet0/0

             Protocol: pim-sm, UpTime:  - , Expires:  -

3.6  配置文件

·     Router A:

#

 sysname RouterA

#

ipv6

#

multicast ipv6 routing-enable

#

interface Ethernet0/0

 port link-mode route

 ipv6 address 2001::1/64

 ospfv3 1 area 0.0.0.0

 pim ipv6 sm

#

interface Ethernet0/1

 port link-mode route

 ipv6 address 2002::1/64

 ospfv3 1 area 0.0.0.0

 pim ipv6 sm

#

interface Ethernet0/2

 port link-mode route

 ipv6 address 2006::1/64

 ospfv3 1 area 0.0.0.0

 pim ipv6 sm

#

ospfv3 1

 router-id 1.1.1.1

 area 0.0.0.0

#

·     Router B:

#

 sysname RouterB

#

ipv6

#

multicast ipv6 routing-enable

#

interface Ethernet0/0

 port link-mode route

 ipv6 address 2002::2/64

 ospfv3 1 area 0.0.0.0

 pim ipv6 sm

#

interface Ethernet0/1

 port link-mode route

 ipv6 address 2003::1/64

 ospfv3 1 area 0.0.0.0

 pim ipv6 sm

#

ospfv3 1

 router-id 2.2.2.2

 area 0.0.0.0

#

·     Router C:

#

 sysname RouterC

#

ipv6

#

multicast ipv6 routing-enable

#

interface Ethernet0/0

 port link-mode route

 ipv6 address 2006::1/64

 ospfv3 1 area 0.0.0.0

 pim ipv6 sm

#

interface Ethernet0/1

 port link-mode route

 ipv6 address 2004::1/64

 ospfv3 1 area 0.0.0.0

 pim ipv6 sm

#

ospfv3 1

 router-id 3.3.3.3

 area 0.0.0.0

#

·     Router D:

#

 sysname RouterD

#

ipv6

#

multicast ipv6 routing-enable

#

interface Ethernet0/0

 port link-mode route

 ipv6 address 2005::1/64

 ospfv3 1 area 0.0.0.0

 mld enable

 mld static-group FF7E:210:2003::1

 mld static-group FF7E:110:2004::1

 pim ipv6 sm

#

interface Ethernet0/1

 port link-mode route

 ipv6 address 2003::2/64

 ospfv3 1 area 0.0.0.0

pim ipv6 sm

#

interface Ethernet0/2

 port link-mode route

 ipv6 address 2004::2/64

 ospfv3 1 area 0.0.0.0

pim ipv6 sm

#

ospfv3 1

 router-id 4.4.4.4

 area 0.0.0.0

#

pim ipv6

 spt-switch-threshold infinity

#

4  相关资料

·     H3C MSR 系列路由器 命令参考(V5)-R2311

·     H3C MSR 系列路由器 配置指导(V5)-R2311

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

新华三官网
联系我们