• 產品與解決方案
  • 行業解決方案
  • 服務
  • 支持
  • 合作夥伴
  • 關於我們

H3C S6800 & S6860 & S6861係列以太網交換機 典型配置舉例-Release 27xx係列-6W100

目錄

80-MPLS SR典型配置舉例

本章節下載 80-MPLS SR典型配置舉例  (203.24 KB)

80-MPLS SR典型配置舉例

H3C S6800&S6860&S6861產品MPLS SR典型配置舉例

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2019 bobty下载软件 版權所有,保留一切權利。

非經本公司書麵許可,任何單位和個人不得擅自摘抄、複製本文檔內容的部分或全部,並不得以任何形式傳播。

除bobty下载软件 的商標外,本手冊中出現的其它公司的商標、產品標識及商品名稱,由各自權利人擁有。

本文檔中的信息可能變動,恕不另行通知。



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  適用產品及版本

表1 適用產品及版本

產品

軟件版本

S6800係列

S6860係列

S6861係列

Release 2702

 

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 Ten-GigabitEthernet1/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 Ten-GigabitEthernet1/0/1

 port link-mode bridge

 port access vlan 100

 combo enable fiber

#

interface Ten-GigabitEthernet1/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 Ten-GigabitEthernet1/0/1

 port link-mode bridge

 port access vlan 200

 combo enable fiber

#

interface Ten-GigabitEthernet1/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 Ten-GigabitEthernet1/0/1

 port link-mode bridge

 port access vlan 100

 combo enable fiber

#

interface Ten-GigabitEthernet1/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 Ten-GigabitEthernet1/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保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!

BOB登陆
官網
聯係我們