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

H3C S6820系列以太网交换机 典型配置举例-Release 630x系列-6W100

目录

75-MPLS SR典型配置举例

本章节下载 75-MPLS SR典型配置举例  (167.51 KB)

docurl=/cn/Service/Document_Software/Document_Center/Switches/Catalog/S6800/S6820/Configure/Typical_Configuration_Example/H3C_S6820_CE-Release_630x-6W100/202002/1273752_30005_0.htm

75-MPLS SR典型配置举例

H3C S6820产品MPLS SR典型配置举例

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2020 新华三技术有限公司 版权所有,保留一切权利。

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

除新华三技术有限公司的商标外,本手册中出现的其它公司的商标、产品标识及商品名称,由各自权利人拥有。

本文档中的信息可能变动,恕不另行通知。



1  简介

本文档介绍MPLS SR特性的配置举例。

SR采用源路径选择机制,预先在源节点封装好路径所要经过节点分配的SID,当报文经过SR节点时,该节点根据报文的SID对报文进行转发。除源节点外,其它节点无需维护路径状态。MPLS SR是指在MPLS网络中使用SR、将标签作为SID对报文进行转发。

2  配置前提

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

本文档假设您已了解MPLS SR特性。

3  MPLS SR over LDP网络互通配置举例

3.1  组网需求

图1所示,MPLS SR网络被LDP网络隔断,为了实现MPLS SR网络间用户互通,需要完成MPLS SR和LDP网络间标签的连接,及当Device A通过SRLSP将流量转发给Device E时,需要在Device B和Device D上完成MPLS SR和LDP标签的连接。

图1 MPLS SR over LDP网络互通组网图

 

设备

接口

IP地址

设备

接口

IP地址

Device A

Loop1

1.1.1.1/32

Device B

Loop1

2.2.2.2/32

 

Vlan-Int100

10.0.0.1/24

 

Vlan-Int100

10.0.0.2/24

Device C

Loop1

3.3.3.3/32

 

Vlan-Int200

11.0.0.1/24

 

Vlan-Int100

12.0.0.1/24

Device D

Loop1

4.4.4.4/32

 

Vlan-Int200

11.0.0.2/24

 

Vlan-Int100

12.0.0.2/24

Device E

Loop1

5.5.5.5/32

 

Vlan-Int200

13.0.0.1/24

 

Vlan-Int200

13.0.0.2/24

 

 

 

 

3.2  配置思路

·            设备Device A、Device B、Device C、Device D和Device E运行IS-IS实现互通。

·            设备Device B、Device C、Device D均配置LDP;Device A、Device B、Device D和Device E配置IS-IS SR功能。

3.3  使用版本

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

3.4  配置步骤

3.4.1  配置Device A

# 按照图1配置各接口的IP地址和掩码,包括LoopBack接口,具体配置过程略。

# 配置IS-IS协议实现网络层互通,开销值类型为wide。

<DeviceA> system-view

[DeviceA] isis 1

[DeviceA-isis-1] network-entity 00.0000.0000.0001.00

[DeviceA-isis-1] cost-style wide

[DeviceA-isis-1] quit

[DeviceA] interface vlan-interface 100

[DeviceA-Vlan-interface100] isis enable 1

[DeviceA-Vlan-interface100] quit

[DeviceA] interface loopback 1

[DeviceA-LoopBack1] isis enable 1

[DeviceA-LoopBack1] quit

# 配置节点的MPLS LSR ID。

[DeviceA] mpls lsr-id 1.1.1.1

# 开启IS-IS SR功能。

[DeviceA] isis 1

[DeviceA-isis-1] address-family ipv4

[DeviceA-isis-1-ipv4] segment-routing mpls

[DeviceA-isis-1-ipv4] quit

# 配置IS-IS SR的SRGB。

[DeviceA-isis-1] segment-routing global-block 16000 16999

[DeviceA-isis-1] quit

# 配置前缀SID索引。

[DeviceA] interface loopback 1

[DeviceA-LoopBack1] isis prefix-sid index 10

[DeviceA-LoopBack1] quit

3.4.2  配置Device B

# 按照图1配置各接口的IP地址和掩码,包括LoopBack接口,具体配置过程略。

# 配置IS-IS协议实现网络层互通,开销值类型为wide。

<DeviceB> system-view

[DeviceB] isis 1

[DeviceB-isis-1] network-entity 00.0000.0000.0002.00

[DeviceB-isis-1] cost-style wide

[DeviceB-isis-1] quit

[DeviceB] interface vlan-interface 100

[DeviceB-Vlan-interface100] isis enable 1

[DeviceB-Vlan-interface100] quit

[DeviceB] interface vlan-interface 200

[DeviceB-Vlan-interface200] isis enable 1

[DeviceB-Vlan-interface200] quit

[DeviceB] interface loopback 1

[DeviceB-LoopBack1] isis enable 1

[DeviceB-LoopBack1] quit

# 配置节点的MPLS LSR ID。

[DeviceB] mpls lsr-id 2.2.2.2

# 配置节点的LDP功能。

[DeviceB] mpls ldp

[DeviceB-ldp] quit

[DeviceB] interface vlan-interface 200

[DeviceB-Vlan-interface200] mpls enable

[DeviceB-Vlan-interface200] mpls ldp enable

[DeviceB-Vlan-interface200] quit

# 开启IS-IS SR功能。

[DeviceB] isis 1

[DeviceB-isis-1] address-family ipv4

[DeviceB-isis-1-ipv4] segment-routing mpls

[DeviceB-isis-1-ipv4] quit

# 配置IS-IS SR的SRGB。

[DeviceB-isis-1] segment-routing global-block 17000 17999

[DeviceB-isis-1] quit

# 配置前缀SID索引。

[DeviceB] interface loopback 1

[DeviceB-LoopBack1] isis prefix-sid index 20

[DeviceB-LoopBack1] quit

3.4.3  配置Device C

# 按照图1配置各接口的IP地址和掩码,包括LoopBack接口,具体配置过程略。

# 配置IS-IS协议实现网络层互通,开销值类型为wide。

<DeviceC> system-view

[DeviceC] isis 1

[DeviceC-isis-1] network-entity 00.0000.0000.0003.00

[DeviceC-isis-1] cost-style wide

[DeviceC-isis-1] quit

[DeviceC] interface vlan-interface 100

[DeviceC-Vlan-interface100] isis enable 1

[DeviceC-Vlan-interface100] quit

[DeviceC] interface vlan-interface 200

[DeviceC-Vlan-interface200] isis enable 1

[DeviceC-Vlan-interface200] quit

[DeviceC] interface loopback 1

[DeviceC-LoopBack1] isis enable 1

[DeviceC-LoopBack1] quit

# 配置节点的MPLS LSR ID。

[DeviceC] mpls lsr-id 3.3.3.3

# 配置节点的LDP功能。

[DeviceC] mpls ldp

[DeviceC-ldp] quit

[DeviceC] interface vlan-interface 100

[DeviceC-Vlan-interface100] mpls enable

[DeviceC-Vlan-interface100] mpls ldp enable

[DeviceC-Vlan-interface100] quit

[DeviceC] interface vlan-interface 200

[DeviceC-Vlan-interface200] mpls enable

[DeviceC-Vlan-interface200] mpls ldp enable

[DeviceC-Vlan-interface200] quit

3.4.4  配置Device D

# 按照图1配置各接口的IP地址和掩码,包括LoopBack接口,具体配置过程略。

# 配置IS-IS协议实现网络层互通,开销值类型为wide。

<DeviceD> system-view

[DeviceD] isis 1

[DeviceD-isis-1] network-entity 00.0000.0000.0004.00

[DeviceD-isis-1] cost-style wide

[DeviceD-isis-1] quit

[DeviceD] interface vlan-interface 100

[DeviceD-Vlan-interface100] isis enable 1

[DeviceD-Vlan-interface100] quit

[DeviceD] interface vlan-interface 200

[DeviceD-Vlan-interface200] isis enable 1

[DeviceD-Vlan-interface200] quit

[DeviceD] interface loopback 1

[DeviceD-LoopBack1] isis enable 1

[DeviceD-LoopBack1] quit

# 配置节点的MPLS LSR ID。

[DeviceD] mpls lsr-id 4.4.4.4

# 配置节点的LDP功能。

[DeviceD] mpls ldp

[DeviceD-ldp] quit

[DeviceD] interface vlan-interface 100

[DeviceD-Vlan-interface1001] mpls enable

[DeviceD-Vlan-interface100] mpls ldp enable

[DeviceD-Vlan-interface100] quit

# 开启IS-IS SR功能。

[DeviceD] isis 1

[DeviceD-isis-1] address-family ipv4

[DeviceD-isis-1-ipv4] segment-routing mpls

[DeviceD-isis-1-ipv4] quit

# 配置IS-IS SR的SRGB。

[DeviceD-isis-1] segment-routing global-block 18000 18999

[DeviceD-isis-1] quit

# 配置前缀SID索引。

[DeviceD] interface loopback 1

[DeviceD-LoopBack1] isis prefix-sid index 40

[DeviceD-LoopBack1] quit

3.4.5  配置Device E

# 按照图1配置各接口的IP地址和掩码,包括LoopBack接口,具体配置过程略。

# 配置IS-IS协议实现网络层互通,开销值类型为wide。

<DeviceE> system-view

[DeviceE] isis 1

[DeviceE-isis-1] network-entity 00.0000.0000.0005.00

[DeviceE-isis-1] cost-style wide

[DeviceE-isis-1] quit

[DeviceE] interface vlan-interface 200

[DeviceE-Vlan-interface200] isis enable 1

[DeviceE-Vlan-interface200] quit

[DeviceE] interface loopback 1

[DeviceE-LoopBack1] isis enable 1

[DeviceE-LoopBack1] quit

# 配置节点的MPLS LSR ID。

[DeviceE] mpls lsr-id 5.5.5.5

# 开启IS-IS SR功能。

[DeviceE] isis 1

[DeviceE-isis-1] address-family ipv4

[DeviceE-isis-1-ipv4] segment-routing mpls

[DeviceE-isis-1-ipv4] quit

# 配置IS-IS SR的SRGB。

[DeviceE-isis-1] segment-routing global-block 19000 19999

[DeviceE-isis-1] quit

# 配置前缀SID索引。

[DeviceE] interface loopback 1

[DeviceE-LoopBack1] isis prefix-sid index 50

[DeviceE-LoopBack1] quit

3.5  验证配置

# 在Device B上查看LDP标签分配情况。

[DeviceB] display mpls ldp lsp

Status Flags: * - stale, L - liberal, B - backup, N/A - unavailable

FECs: 5           Ingress: 3           Transit: 3           Egress: 2

 

FEC                In/Out Label        Nexthop         OutInterface

1.1.1.1/32         24116/-

                   -/24117(L)

2.2.2.2/32         3/-

                   -/24120(L)

3.3.3.3/32         -/3                 11.0.0.2        Vlan200

                   24121/3             11.0.0.2        Vlan200

4.4.4.4/32         -/24119             11.0.0.2        Vlan200

                   24118/24119         11.0.0.2        Vlan200

5.5.5.5/32         -/24118             11.0.0.2        Vlan200

                   24117/24118         11.0.0.2        Vlan200

# 在Device B上查看IS-IS SR到达Device D和Device E的出标签关联上了LDP标签。

[DeviceB] display mpls lsp protocol isis

FEC                         Proto       In/Out Label    Interface/Out NHLFE

1.1.1.1/32                  ISIS        17010/3         Vlan100

1.1.1.1/32                  ISIS        -/3             Vlan100

2.2.2.2/32                  ISIS        17020/-         -

4.4.4.4/32                  ISIS        17040/24119     Vlan200

4.4.4.4/32                  ISIS        -/24119         Vlan200

5.5.5.5/32                  ISIS        17050/24118     Vlan200

5.5.5.5/32                  ISIS        -/24118         Vlan200

3.6  配置文件

·            Device A:

#

isis 1

 cost-style wide

 segment-routing global-block 16000 16999

 network-entity 00.0000.0000.0001.00

 #

 address-family ipv4 unicast

  segment-routing mpls

#

 mpls lsr-id 1.1.1.1

#

vlan 1

#

vlan 100

#

interface LoopBack1

 ip address 1.1.1.1 255.255.255.255

 isis enable 1

 isis prefix-sid index 10

#

interface Vlan-interface100

 ip address 10.0.0.1 255.255.255.0

 isis enable 1

#

interface HundredGigE1/0/1

 port link-mode bridge

 port access vlan 100

 combo enable fiber

#

·            Device B:

#

isis 1

 cost-style wide

 segment-routing global-block 17000 17999

 network-entity 00.0000.0000.0002.00

 #

 address-family ipv4 unicast

  segment-routing mpls

#

 mpls lsr-id 2.2.2.2

#

vlan 1

#

vlan 100

#

vlan 200

#

mpls ldp

#

interface LoopBack1

 ip address 2.2.2.2 255.255.255.255

 isis enable 1

 isis prefix-sid index 20

#

interface Vlan-interface100

 ip address 10.0.0.2 255.255.255.0

 isis enable 1

#

interface Vlan-interface200

 ip address 11.0.0.1 255.255.255.0

 isis enable 1

 mpls enable

 mpls ldp enable

#

interface HundredGigE1/0/1

 port link-mode bridge

 port access vlan 100

 combo enable fiber

#

interface HundredGigE1/0/2

 port link-mode bridge

 port access vlan 200

 combo enable fiber

#

·            Device C:

#

isis 1

 cost-style wide

 network-entity 00.0000.0000.0003.00

#

 mpls lsr-id 3.3.3.3

#

vlan 1

#

vlan 100

#

vlan 200

#

mpls ldp

#

interface LoopBack1

 ip address 3.3.3.3 255.255.255.255

 isis enable 1

#

interface Vlan-interface100

 ip address 12.0.0.1 255.255.255.0

 isis enable 1

 mpls enable

 mpls ldp enable

#

interface Vlan-interface200

 ip address 11.0.0.2 255.255.255.0

 isis enable 1

 mpls enable

 mpls ldp enable

#

interface HundredGigE1/0/1

 port link-mode bridge

 port access vlan 200

 combo enable fiber

#

interface HundredGigE1/0/2

 port link-mode bridge

 port access vlan 100

 combo enable fiber

#

·            Device D:

#

isis 1

 cost-style wide

 segment-routing global-block 18000 18999

 network-entity 00.0000.0000.0004.00

 #

 address-family ipv4 unicast

  segment-routing mpls

#

 mpls lsr-id 4.4.4.4

#

vlan 1

#

vlan 100

#

vlan 200

#

mpls ldp

#

interface LoopBack1

 ip address 4.4.4.4 255.255.255.255

 isis enable 1

 isis prefix-sid index 40

#

interface Vlan-interface100

 ip address 12.0.0.2 255.255.255.0

 isis enable 1

 mpls enable

 mpls ldp enable

#

interface Vlan-interface200

 ip address 13.0.0.1 255.255.255.0

 isis enable 1

#

interface HundredGigE1/0/1

 port link-mode bridge

 port access vlan 100

 combo enable fiber

#

interface HundredGigE1/0/2

 port link-mode bridge

 port access vlan 200

 combo enable fiber

#

·            Device E:

#

isis 1

 cost-style wide

 segment-routing global-block 19000 19999

 network-entity 00.0000.0000.0005.00

 #

 address-family ipv4 unicast

  segment-routing mpls

#

 mpls lsr-id 5.5.5.5

#

vlan 1

#

vlan 200

#

interface LoopBack1

 ip address 5.5.5.5 255.255.255.255

 isis enable 1

 isis prefix-sid index 50

#

interface Vlan-interface200

 ip address 13.0.0.2 255.255.255.0

 isis enable 1

#

interface HundredGigE1/0/1

 port link-mode bridge

 port access vlan 200

 combo enable fiber

#

4  相关资料

·            H3C S6800[60][61](R27xx) & S6820(R630x)系列以太网交换机 MPLS配置指导

·            H3C S6800[60][61](R27xx) & S6820(R630x)系列以太网交换机 MPLS命令参考

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

新华三官网
联系我们