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

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

目錄

65-MSR係列路由器MPLS TE雙向鏈路保護FRR功能的典型配置舉例

本章節下載 65-MSR係列路由器MPLS TE雙向鏈路保護FRR功能的典型配置舉例  (157.12 KB)

65-MSR係列路由器MPLS TE雙向鏈路保護FRR功能的典型配置舉例

MSR係列路由器MPLS TE雙向鏈路保護FRR功能的典型配置舉例

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

H3C_彩色.emf

目  錄

1 簡介

2 配置前提

3 配置舉例

3.1 組網需求

3.2 配置思路

3.3 使用版本

3.4 配置步驟

3.4.1 設備Router A配置

3.4.2 設備Router B配置

3.4.3 設備Router C配置

3.5 驗證配置

3.6 配置文件

4 相關資料


1  簡介

本文檔介紹使用MPLS TE雙向鏈路保護FRR功能的典型案例。

2  配置前提

本文檔不嚴格與具體軟、硬件版本對應,如果使用過程中與產品實際情況有差異,請參考相關產品手冊,或以設備實際情況為準。

本文檔中的配置均是在實驗室環境下進行的配置和驗證,配置前設備的所有參數均采用出廠時的缺省配置。如果您已經對設備進行了配置,為了保證配置效果,請確認現有配置和以下舉例中的配置不衝突。

本文檔假設您已了解MPLS TE的FRR功能特性。

3  配置舉例

3.1  組網需求

圖1所示,MPLS骨幹網中,從Router ARouter C建立MPLS TE隧道Primary LSP,由Router DRouter E的報文優先選擇Primary LSP進行轉發。要求:

·     建立一條備份MPLS TE隧道Bypass LSP,當Primary LSP中斷時,自動快速重路由到備份隧道Bypass LSP

·     MPLS TE隧道使用顯式路徑方式。

圖1 MSR係列路由器MPLS TE雙向鏈路保護FRR功能配置組網圖

設備

接口

IP地址

設備

接口

IP地址

Router A

Loop0

1.1.1.1/32

Router B

Loop0

2.2.2.2/32

 

Eth0/1

192.168.1.1/24

 

Eth0/1

1.0.0.2/24

 

Eth0/2

3.0.0.1/24

 

Eth0/2

2.0.0.1/24

 

Eth0/3

1.0.0.1/24

Router D

Loop0

4.4.4.4/32

Router C

Loop0

3.3.3.3/32

 

Eth0/1

192.168.1.2/24

 

Eth0/1

192.168.2.1/24

Router E

Loop0

5.5.5.5/32

 

Eth0/2

3.0.0.2/24

 

Eth0/1

192.168.2.2/24

 

Eth0/3

2.0.0.2/24

 

 

 

 

3.2  配置思路

為了使數據報文在Primary LSP中斷後快速重路由到Bypass LSP,需要將Bypass LSP綁定到被保護的接口,使得被保護接口中斷時觸發Bypass LSP

在配置MPLS TE隧道時,由於MPLS TE的LSP隧道是單向的,因此需要在Router A和Router C都向對方建立LSP,隻有雙向LSP都建立成功,發送給對方的報文才能正常轉發回來。

3.3  使用版本

本舉例是在Release 2311版本上進行配置和驗證的。

3.4  配置步驟

3.4.1  設備Router A配置

# 配置設備接口地址。

<RouterA> system-view

[RouterA] interface loopback 0

[RouterA-LoopBack0] ip address 1.1.1.1 255.255.255.255

[RouterA-LoopBack0] quit

[RouterA] interface ethernet 0/1

[RouterA-Ethernet0/1] ip address 192.168.1.1 255.255.255.0

[RouterA-Ethernet0/1] quit

[RouterA] interface ethernet 0/2

[RouterA-Ethernet0/2] ip address 3.0.0.1 255.255.255.0

[RouterA-Ethernet0/2] quit

[RouterA] interface ethernet 0/3

[RouterA-Ethernet0/3] ip address 1.0.0.1 255.255.255.0

[RouterA-Ethernet0/3] quit

# 配置OSPF協議,使網絡互通。

[RouterA] ospf 1

[RouterA-ospf-1] area 0.0.0.0

[RouterA-ospf-1-area-0.0.0.0] network 1.1.1.1 0.0.0.0

[RouterA-ospf-1-area-0.0.0.0] network 1.0.0.0 0.0.0.255

[RouterA-ospf-1-area-0.0.0.0] network 3.0.0.0 0.0.0.255

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

[RouterA-ospf-1] quit

# 配置MPLS LSR-ID,使能MPLS TE和RSVP-TE。

[RouterA] router id 3.3.3.3

[RouterA] mpls lsr-id 3.3.3.3

[RouterA] mpls

[RouterA-mpls] mpls te

[RouterA-mpls] mpls te timer fast-reroute 1

[RouterA-mpls] mpls rsvp-te

[RouterA-mpls] mpls te cspf

[RouterA-mpls] quit

# 在接口使能MPLS基本能力,MPLS TEREVP-TE,並配置轉發MPLS TE流量的鏈路最大帶寬和最大可預留帶寬。

[RouterA] interface ethernet 0/2

[RouterA-Ethernet0/2] mpls

[RouterA-Ethernet0/2] mpls te

[RouterA-Ethernet0/2] mpls te max-link-bandwidth 50000

[RouterA-Ethernet0/2] mpls te max-reservable-bandwidth 50000

[RouterA-Ethernet0/2] mpls rsvp-te

[RouterA-Ethernet0/2] quit

[RouterA] interface ethernet 0/3

[RouterA-Ethernet0/3] mpls

[RouterA-Ethernet0/3] mpls te

[RouterA-Ethernet0/3] mpls te max-link-bandwidth 50000

[RouterA-Ethernet0/3] mpls te max-reservable-bandwidth 50000

[RouterA-Ethernet0/3] mpls rsvp-te

[RouterA-Ethernet0/3] quit

# 使能Opaque LSA能力。

[RouterA] ospf 1

[RouterA-ospf-1] opaque-capability enable

[RouterA-ospf-1] area 0.0.0.0

# 使能OSPF TE

[RouterA-ospf-1-area-0.0.0.0] mpls-te enable

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

[RouterA-ospf-1] quit

# 配置主LSP的顯式路徑primary

[RouterA] explicit-path primary

[RouterA-explicit-path-primary] next hop 3.0.0.2

[RouterA-explicit-path-primary] next hop 3.3.3.3

[RouterA-explicit-path-primary] quit

# 配置主LSP

[RouterA] interface tunnel 0

[RouterA-Tunnel0] ip address 10.0.0.1 255.255.255.252

[RouterA-Tunnel0] tunnel-protocol mpls te

[RouterA-Tunnel0] destination 3.3.3.3

[RouterA-Tunnel0] mpls te tunnel-id 10

[RouterA-Tunnel0] mpls te record-route label

[RouterA-Tunnel0] mpls te bandwidth ct0 30000

#設置隧道優先級為1

[RouterA-Tunnel0] mpls te path explicit-path primary preference 1

# 使能FRR

[RouterA-Tunnel0] mpls te fast-reroute

[RouterA-Tunnel0] mpls te commit

[RouterA-Tunnel0] quit

# 配置Bypass LSP的顯式路徑bypass

[RouterA-mpls] explicit-path bypass

[RouterA-explicit-path-bypass] next hop 1.0.0.2

[RouterA-explicit-path-bypass] next hop 2.0.0.2

[RouterA-explicit-path-bypass] next hop 3.3.3.3

[RouterA-explicit-path-bypass] quit

# 配置Bypass LSP

[RouterA] interface tunnel 1

[RouterA-Tunnel1] ip address 20.0.0.1 255.255.255.252

[RouterA-Tunnel1] tunnel-protocol mpls te

[RouterA-Tunnel1] destination 3.3.3.3

[RouterA-Tunnel1] mpls te tunnel-id 20

[RouterA-Tunnel1] mpls te record-route label

[RouterA-Tunnel1] mpls te bandwidth ct0 30000

#設置隧道優先級為2

[RouterA-Tunnel1] mpls te path explicit-path bypass preference 2

# 配置Bypass LSP可保護的帶寬。

[RouterA-Tunnel1] mpls te backup bandwidth 20000

[RouterA-Tunnel1] mpls te commit

[RouterA-Tunnel1] quit

# 將備份MPLS TE隧道綁定到被保護的接口。

[RouterA] interface ethernet 0/2

[RouterA-Ethernet0/2] mpls te fast-reroute bypass-tunnel tunnel 1

[RouterA-Ethernet0/2] quit

# 配置通過Tunnel隧道到192.168.2.0/24的靜態路由,並配置高於OSPF 的優先級。

[RouterA] ip route-static 192.168.2.0 255.0.0.0 tunnel0 preference 1

[RouterA] ip route-static 192.168.2.0 255.0.0.0 tunnel1 preference 2

3.4.2  設備Router B配置

# 配置設備接口地址。

<RouterB> system-view

[RouterB] interface loopback 0

[RouterB-LoopBack0] ip address 2.2.2.2 255.255.255.255

[RouterB-LoopBack0] quit

[RouterB] interface ethernet 0/1

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

[RouterB-Ethernet0/1] ip address 1.0.0.2 255.255.255.0

[RouterB-Ethernet0/1] quit

[RouterB] interface ethernet 0/2

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

[RouterB-Ethernet0/2] ip address 2.0.0.1 255.255.255.0

[RouterB-Ethernet0/2] quit

# 配置OSPF協議,使網絡互通。

[RouterB] ospf 1

[RouterB-ospf-1] area 0.0.0.0

[RouterB-ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0

[RouterB-ospf-1-area-0.0.0.0] network 1.0.0.0 0.0.0.255

[RouterB-ospf-1-area-0.0.0.0] network 2.0.0.0 0.0.0.255

 RouterB-ospf-1-area-0.0.0.0] quit

[RouterB-ospf-1] quit

# 配置MPLS LSR-ID,使能MPLS TE和RSVP-TE。

[RouterB] router id 2.2.2.2

[RouterB] mpls lsr-id 2.2.2.2

[RouterB] mpls

[RouterB-mpls] mpls te

[RouterB-mpls] mpls rsvp-te

[RouterB-mpls] mpls te cspf

[RouterB-mpls] quit

# 在接口使能MPLS基本能力,MPLS TEREVP-TE,並配置轉發MPLS TE流量的鏈路最大帶寬和最大可預留帶寬。

[RouterB] interface ethernet 0/1

[RouterB-Ethernet0/1] mpls

[RouterB-Ethernet0/1] mpls te

[RouterB-Ethernet0/1] mpls rsvp-te

[RouterB-Ethernet0/1] quit

[RouterB] interface ethernet 0/2

[RouterB-Ethernet0/2] mpls

[RouterB-Ethernet0/2] mpls te

[RouterB-Ethernet0/2] mpls rsvp-te

[RouterB-Ethernet0/2] quit

# 使能Opaque LSA能力。

[RouterB] ospf 1

[RouterB-ospf-1] opaque-capability enable

[RouterB-ospf-1] area 0.0.0.0

[RouterB-ospf-1-area-0.0.0.0] mpls-te enable

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

[RouterB-ospf-1] quit

3.4.3  設備Router C配置

# 配置設備接口地址。

<RouterC> system-view

[RouterC] interface loopback 0

[RouterC-LoopBack0] ip address 3.3.3.3 255.255.255.255

[RouterC-LoopBack0] quit

[RouterC] interface ethernet 0/1

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

[RouterC-Ethernet0/1] ip address 192.168.2.1 255.255.255.0

[RouterC-Ethernet0/1] quit

[RouterC] interface ethernet 0/2

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

[RouterC-Ethernet0/2] ip address 3.0.0.2 255.255.255.0

[RouterC-Ethernet0/2] quit

[RouterC] interface ethernet 0/3

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

[RouterC-Ethernet0/3] ip address 2.0.0.2 255.255.255.0

[RouterC-Ethernet0/3] quit

# 配置OSPF協議,使網絡互通。

[RouterC] ospf 1

[RouterC-ospf-1] area 0.0.0.0

[RouterC-ospf-1-area-0.0.0.0] network 3.3.3.3 0.0.0.0

[RouterC-ospf-1-area-0.0.0.0] network 3.0.0.0 0.0.0.255

[RouterC-ospf-1-area-0.0.0.0] network 2.0.0.0 0.0.0.255

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

[RouterC-ospf-1] quit

# 配置MPLS LSR-ID,使能MPLS TERSVP-TE

[RouterC] router id 3.3.3.3

[RouterC] mpls lsr-id 3.3.3.3

[RouterC] mpls

[RouterC-mpls] mpls te

[RouterC-mpls] mpls te timer fast-reroute 1

[RouterC-mpls] mpls te cspf

[RouterC-mpls] quit

# 在接口使能MPLS基本能力,MPLS TEREVP-TE,並配置轉發MPLS TE流量的鏈路最大帶寬和最大可預留帶寬。

[RouterC] interface ethernet 0/2

[RouterC-Ethernet0/2] mpls

[RouterC-Ethernet0/2] mpls te

[RouterC-Ethernet0/2] mpls rsvp-te

[RouterC-Ethernet0/2] mpls te max-link-bandwidth 50000

[RouterC-Ethernet0/2] mpls te max-reservable-bandwidth 50000

[RouterC-Ethernet0/2] quit

[RouterC] interface ethernet 0/3

[RouterC-Ethernet0/3] mpls

[RouterC-Ethernet0/3] mpls te

[RouterC-Ethernet0/3] mpls rsvp-te

[RouterC-Ethernet0/3] mpls te max-link-bandwidth 50000

[RouterC-Ethernet0/3] mpls te max-reservable-bandwidth 50000

[RouterC-Ethernet0/3] quit

# 使能Opaque LSA能力。

[RouterC] ospf 1

[RouterC-ospf-1] opaque-capability enable

[RouterC-ospf-1] area 0.0.0.0

[RouterC-ospf-1-area-0.0.0.0] mpls-te enable

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

[RouterC-ospf-1] quit

# 配置主LSP的顯式路徑primary

[RouterC] explicit-path primary

[RouterC-explicit-path-primary] next hop 3.0.0.1

[RouterC-explicit-path-primary] next hop 1.1.1.1

[RouterC-explicit-path-primary] quit

# 配置主LSP

[RouterC] interface tunnel 0

[RouterC-Tunnel0] ip address 10.0.0.2 255.255.255.252

[RouterC-Tunnel0] tunnel-protocol mpls te

[RouterC-Tunnel0] destination 1.1.1.1

[RouterC-Tunnel0] mpls te tunnel-id 10

[RouterC-Tunnel0] mpls te record-route label

[RouterC-Tunnel0] mpls te bandwidth ct0 30000

#設置隧道優先級為1

[RouterC-Tunnel0] mpls te path explicit-path primary preference 1

# 使能FRR

[RouterC-Tunnel0] mpls te fast-reroute

[RouterC-Tunnel0] mpls te commit

[RouterC-Tunnel0] quit

# 配置Bypass LSP的顯式路徑bypass

[RouterC] explicit-path bypass

[RouterC-explicit-path-bypass] next hop 2.0.0.1

[RouterC-explicit-path-bypass] next hop 1.0.0.1

[RouterC-explicit-path-bypass] next hop 1.1.1.1

[RouterC-explicit-path-bypass] quit

# 配置Bypass LSP

[RouterC] interface tunnel 1

[RouterC-Tunnel1] ip address 20.0.0.2 255.255.255.252

[RouterC-Tunnel1] tunnel-protocol mpls te

[RouterC-Tunnel1] destination 1.1.1.1

[RouterC-Tunnel1] mpls te tunnel-id 20

[RouterC-Tunnel1] mpls te record-route label

[RouterC-Tunnel1] mpls te bandwidth ct0 30000

#設置隧道優先級為2

[RouterC-Tunnel1] mpls te path explicit-path RouterB preference 2

[RouterC-Tunnel1] quit

# 配置Bypass LSP可保護的帶寬。

[RouterC] mpls te backup bandwidth 20000

[RouterC-Tunnel1] mpls te commit

[RouterC-Tunnel1] quit

# Bypass LSP綁定到被保護的接口。

[RouterC] interface ethernet 0/2

[RouterC-Ethernet0/2] mpls te fast-reroute bypass-tunnel tunnel1

[RouterC-Ethernet0/2] quit

# 配置通過Tunnel隧道到192.168.2.0/24的靜態路由,並配置高於OSPF 的優先級。

[RouterC] ip route-static 192.168.1.0 255.255.255.0 tunnel0 preference 1

[RouterC] ip route-static 192.168.1.0 255.255.255.0 tunnel1 preference 2

3.5  驗證配置

# 在Router A上執行display mpls lsp命令,可以看到LSP表項

<RouterA> display mpls lsp

--------------------------------------------------------------------------

                 LSP Information: RSVP LSP

--------------------------------------------------------------------------

FEC                 In/Out Label  In/Out IF                       Vrf Name

3.3.3.3/32          NULL/1024     -/GE0/1

1.1.1.1/32          3/NULL        GE0/1/-

3.3.3.3/32          NULL/3        -/GE1/7

1.1.1.1/32          3/NULL        GE1/7/-

# 在Router A執行display mpls te tunnel命令,可以看到隧道的建立情況,有兩條隧道經過。

<RouterA> display mpls te tunnel

LSP-Id                 Destination     In/Out-If                  Name

1.1.1.1:58             3.3.3.3         -/GE0/1                    Tunnel1

3.3.3.3:77             1.1.1.1         GE0/1/-                    Tunnel1

1.1.1.1:59             3.3.3.3         -/GE1/7                    Tunnel0

3.3.3.3:78             1.1.1.1         GE1/7/-                    Tunnel0

# 在Router A上執行display interface tunnel命令。

<RouterA> display interface tunnel

Tunnel0 current state: UP

Line protocol current state: UP

Description: Tunnel0 Interface

The Maximum Transmit Unit is 64000

Internet Address is 10.0.0.1/30 Primary

Encapsulation is TUNNEL, service-loopback-group ID not set.

Tunnel source unknown, destination 3.3.3.3

Tunnel bandwidth 64 (kbps)

Tunnel protocol/transport CR_LSP

Output queue : (Urgent queuing : Size/Length/Discards)  0/100/0

Output queue : (Protocol queuing : Size/Length/Discards)  0/500/0

Output queue : (FIFO queuing : Size/Length/Discards)  0/75/0

Last clearing of counters:  Never

    Last 300 seconds input:  0 bytes/sec, 0 packets/sec

    Last 300 seconds output:  1 bytes/sec, 0 packets/sec

    0 packets input,  0 bytes

    0 input error

    35 packets output,  2940 bytes

    0 output error

 

Tunnel1 current state: UP

Line protocol current state: UP

Description: Tunnel1 Interface

The Maximum Transmit Unit is 64000

Internet Address is 20.0.0.1/30 Primary

Encapsulation is TUNNEL, service-loopback-group ID not set.

Tunnel source unknown, destination 3.3.3.3

Tunnel bandwidth 64 (kbps)

Tunnel protocol/transport CR_LSP

Output queue : (Urgent queuing : Size/Length/Discards)  0/100/0

Output queue : (Protocol queuing : Size/Length/Discards)  0/500/0

Output queue : (FIFO queuing : Size/Length/Discards)  0/75/0

Last clearing of counters:  Never

    Last 300 seconds input:  0 bytes/sec, 0 packets/sec

    Last 300 seconds output:  1 bytes/sec, 0 packets/sec

    0 packets input,  0 bytes

    0 input error

    15 packets output,  1300 bytes

    0 output error

# 從Router D上ping Router E的接口Ethernet0/1地址,查看能否ping通。

<RouterD> ping 192.168.2.2

  PING 192.168.2.2: 56  data bytes, press CTRL_C to break

    Reply from 192.168.2.2: bytes=56 Sequence=0 ttl=252 time=1 ms

    Reply from 192.168.2.2: bytes=56 Sequence=1 ttl=252 time=1 ms

    Reply from 192.168.2.2: bytes=56 Sequence=2 ttl=252 time=1 ms

    Reply from 192.168.2.2: bytes=56 Sequence=3 ttl=252 time=1 ms

    Reply from 192.168.2.2: bytes=56 Sequence=4 ttl=252 time=1 ms

 

  --- 192.168.2.2 ping statistics ---

    5 packet(s) transmitted

    5 packet(s) received

    0.00% packet loss

    round-trip min/avg/max = 1/1/1 ms

# 繼續在Router A上執行display interface tunnel命令,觀察到數據包是經由Tunnel 0發送給目的地址。

<RouterA> display interface tunnel

Tunnel0 current state: UP

Line protocol current state: UP

Description: Tunnel0 Interface

The Maximum Transmit Unit is 64000

Internet Address is 10.0.0.1/30 Primary

Encapsulation is TUNNEL, service-loopback-group ID not set.

Tunnel source unknown, destination 3.3.3.3

Tunnel bandwidth 64 (kbps)

Tunnel protocol/transport CR_LSP

Output queue : (Urgent queuing : Size/Length/Discards)  0/100/0

Output queue : (Protocol queuing : Size/Length/Discards)  0/500/0

Output queue : (FIFO queuing : Size/Length/Discards)  0/75/0

Last clearing of counters:  Never

    Last 300 seconds input:  0 bytes/sec, 0 packets/sec

    Last 300 seconds output:  0 bytes/sec, 0 packets/sec

    0 packets input,  0 bytes

    0 input error

    40 packets output,  3360 bytes

    0 output error

 

Tunnel1 current state: UP

Line protocol current state: UP

Description: Tunnel1 Interface

The Maximum Transmit Unit is 64000

Internet Address is 20.0.0.1/30 Primary

Encapsulation is TUNNEL, service-loopback-group ID not set.

Tunnel source unknown, destination 3.3.3.3

Tunnel bandwidth 64 (kbps)

Tunnel protocol/transport CR_LSP

Output queue : (Urgent queuing : Size/Length/Discards)  0/100/0

Output queue : (Protocol queuing : Size/Length/Discards)  0/500/0

Output queue : (FIFO queuing : Size/Length/Discards)  0/75/0

Last clearing of counters:  Never

    Last 300 seconds input:  0 bytes/sec, 0 packets/sec

    Last 300 seconds output:  0 bytes/sec, 0 packets/sec

    0 packets input,  0 bytes

    0 input error

    15 packets output,  1300 bytes

    0 output error

# 在Router A上關閉接口Ethernet0/2

[RouterA] interface Ethernet0/2

[RouterA-Ethernet0/2] shutdown

[RouterA-Ethernet0/2] quit

# 再從Router D上ping Router E的接口Ethernet0/1地址,然後在Router A上執行display interface tunnel命令,觀察到數據包是經由Tunnel 1發送給目的地址。

<RouterA> display interface tunnel

Tunnel0 current state: DOWN

Line protocol current state: DOWN

Description: Tunnel0 Interface

The Maximum Transmit Unit is 64000

Internet Address is 10.0.0.1/30 Primary

Encapsulation is TUNNEL, service-loopback-group ID not set.

Tunnel source unknown, destination 3.3.3.3

Tunnel bandwidth 64 (kbps)

Tunnel protocol/transport CR_LSP

Output queue : (Urgent queuing : Size/Length/Discards)  0/100/0

Output queue : (Protocol queuing : Size/Length/Discards)  0/500/0

Output queue : (FIFO queuing : Size/Length/Discards)  0/75/0

Last clearing of counters:  Never

    Last 300 seconds input:  0 bytes/sec, 0 packets/sec

    Last 300 seconds output:  0 bytes/sec, 0 packets/sec

    0 packets input,  0 bytes

    0 input error

    40 packets output,  3360 bytes

    0 output error

 

Tunnel1 current state: UP

Line protocol current state: UP

Description: Tunnel1 Interface

The Maximum Transmit Unit is 64000

Internet Address is 20.0.0.1/30 Primary

Encapsulation is TUNNEL, service-loopback-group ID not set.

Tunnel source unknown, destination 3.3.3.3

Tunnel bandwidth 64 (kbps)

Tunnel protocol/transport CR_LSP

Output queue : (Urgent queuing : Size/Length/Discards)  0/100/0

Output queue : (Protocol queuing : Size/Length/Discards)  0/500/0

Output queue : (FIFO queuing : Size/Length/Discards)  0/75/0

Last clearing of counters:  Never

    Last 300 seconds input:  0 bytes/sec, 0 packets/sec

    Last 300 seconds output:  0 bytes/sec, 0 packets/sec

    0 packets input,  0 bytes

    0 input error

    20 packets output,  1740 bytes

    0 output error

3.6  配置文件

·     Router A配置:

#

 router id 1.1.1.1

#

 mpls lsr-id 1.1.1.1

#

mpls

 mpls te

 mpls te timer fast-reroute 1

 mpls rsvp-te

 mpls te cspf

#

explicit-path RouterB

 next hop 1.0.0.2

 next hop 3.3.3.3

#

explicit-path primary

 next hop 3.0.0.2

 next hop 3.3.3.3

#

interface LoopBack0

 ip address 1.1.1.1 255.255.255.255

#

interface Ethernet0/1

 ip address 192.168.1.1 255.255.255.0

#

interface Ethernet0/2

 ip address 3.0.0.1 255.255.255.0

 mpls

 mpls te

 mpls te max-link-bandwidth 50000

 mpls te max-reservable-bandwidth 50000

 mpls te fast-reroute RouterB-tunnel Tunnel1

 mpls rsvp-te

#

interface Ethernet0/3

 ip address 1.0.0.1 255.255.255.0

 mpls

 mpls te

 mpls te max-link-bandwidth 50000

 mpls te max-reservable-bandwidth 50000

 mpls rsvp-te

#

interface Tunnel0

 ip address 10.0.0.1 255.255.255.252

 tunnel-protocol mpls te

 destination 3.3.3.3

 mpls te record-route label

 mpls te bandwidth ct0 30000

 mpls te path explicit-path primary preference 1

 mpls te fast-reroute

 mpls te commit

#

interface Tunnel1

 ip address 20.0.0.1 255.255.255.252

 tunnel-protocol mpls te

 destination 3.3.3.3

 mpls te tunnel-id 20

 mpls te record-route label

 mpls te bandwidth ct0 30000

 mpls te path explicit-path bypass preference 2

 mpls te backup bandwidth 20000

 mpls te commit

#

ospf 1

 opaque-capability enable

 area 0.0.0.0

  network 1.1.1.1 0.0.0.0

  network 1.0.0.0 0.0.0.255

  network 3.0.0.0 0.0.0.255

#

 ip route-static 192.168.2.0 255.0.0.0 Tunnel0 preference 1

 ip route-static 192.168.2.0 255.0.0.0 tunnel1 preference 2

·     Router B配置:

#

 router id 2.2.2.2

#

 mpls lsr-id 2.2.2.2

#

mpls

 mpls te

 mpls rsvp-te

 mpls te cspf

#

interface LoopBack0

 ip address 2.2.2.2 255.255.255.255

#

interface Ethernet0/1

 port link-mode route

 ip address 1.0.0.2 255.255.255.0

 mpls

 mpls te

 mpls rsvp-te

#

interface Ethernet0/2

 port link-mode route

 ip address 2.0.0.1 255.255.255.0

 mpls

 mpls te

 mpls rsvp-te

#

ospf 1

 opaque-capability enable

 area 0.0.0.0

  network 2.2.2.2 0.0.0.0

  network 2.0.0.0 0.0.0.255

  mpls-te enable

·     Router C配置:

#

 router id 3.3.3.3

#

 mpls lsr-id 3.3.3.3

#

mpls

 mpls te

 mpls te timer fast-reroute 1

 mpls te cspf

#

explicit-path RouterB

 next hop 2.0.0.1

 next hop 1.0.0.1

 next hop 1.1.1.1

#

explicit-path primary

 next hop 3.0.0.1

 next hop 1.1.1.1

#

interface LoopBack0

 address 3.3.3.3 255.255.255.255

#

interface Ethernet0/1

 port link-mode route

 ip address 192.168.2.1 255.255.255.0

#

interface Ethernet0/2

 ip address 3.0.0.2 255.255.255.0

 mpls

 mpls te

 mpls te max-link-bandwidth 50000

 mpls te max-reservable-bandwidth 50000

 mpls te fast-reroute bypass-tunnel Tunnel1

 mpls rsvp-te

#

interface Ethernet0/3

 port link-mode route

 ip address 2.0.0.2 255.255.255.0

 mpls

 mpls te

 mpls te max-link-bandwidth 50000

 mpls te max-reservable-bandwidth 50000

 mpls rsvp-te

#

interface Tunnel0

 ip address 10.0.0.2 255.255.255.252

 tunnel-protocol mpls te

 destination 1.1.1.1

 mpls te tunnel-id 10

 mpls te record-route label

 mpls te bandwidth ct0 30000

 mpls te path explicit-path primary preference 1

 mpls te fast-reroute

 mpls te commit

#

interface Tunnel1

 ip address 20.0.0.2 255.255.255.252

 tunnel-protocol mpls te

 destination 1.1.1.1

 mpls te tunnel-id 20

 mpls te record-route label

 mpls te bandwidth ct0 30000

 mpls te path explicit-path bypass preference 2

 mpls te backup bandwidth 20000

 mpls te commit

#

ospf 1

 opaque-capability enable

 area 0.0.0.0

  network 3.3.3.3 0.0.0.0

  network 3.0.0.0 0.0.0.255

  network 2.0.0.0 0.0.0.255

  mpls-te enable

#

 ip route-static 192.168.1.0 255.255.255.0 Tunnel0 preference 1

 ip route-static 192.168.1.0 255.255.255.0 Tunnel1 preference 2

4  相關資料

·     H3C MSR 係列路由器 命令參考(V5)-R2311

·     H3C MSR 係列路由器 配置指導(V5)-R2311

不同款型規格的資料略有差異, 詳細信息請向具體銷售和400谘詢。H3C保留在沒有任何通知或提示的情況下對資料內容進行修改的權利!

BOB登陆
官網
聯係我們