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

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

目錄

34-MSR係列路由器MPLS L3VPN TE功能的典型配置舉例

本章節下載 34-MSR係列路由器MPLS L3VPN TE功能的典型配置舉例  (150.64 KB)

34-MSR係列路由器MPLS L3VPN TE功能的典型配置舉例

MSR係列路由器MPLS L3VPN TE功能的典型配置舉例

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright © 2014 杭州華三通信技術有限公司 版權所有,保留一切權利。

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

並不得以任何形式傳播。本文檔中的信息可能變動,恕不另行通知。

H3C_彩色.emf

目  錄

1 簡介

2 配置前提

3 配置舉例

3.1 組網需求

3.2 配置思路

3.3 使用版本

3.4 配置步驟

3.4.1 設備PE A配置

3.4.2 設備PE B配置

3.5 驗證配置

3.6 配置文件

4 相關資料


1  簡介

本文檔介紹使用MPLS TE隧道轉發MPLS VPN報文的典型案例。

2  配置前提

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

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

本文檔假設您已了解MPLS TE隧道的特性。

3  配置舉例

3.1  組網需求

圖1所示,在MPLS骨幹網上,CE A和CE B都屬於vpna實例,分別通過PE A和PE B接入到MPLS骨幹網中。現要求:在PE間配置MPLS TE隧道轉發VPN流量,實現CE A和CE B的報文轉發。

圖1 MSR係列路由器采用MPLS TE隧道轉發MPLS VPN報文組網圖

 

3.2  配置思路

在配置MPLS TE隧道時,由於MPLS TE的LSP隧道是單向的,因此需要在PE A和PE B都向對方建立一條LSP隧道,這樣發送給對方的報文才能轉發回來。

3.3  使用版本

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

3.4  配置步驟

3.4.1  設備PE A配置

# 配置PE A基本接口配置。

<PEA> system-view

[PEA] interface loopback 0

[PEA-LoopBack0] ip address 1.1.1.1 255.255.255.255

[PEA-LoopBack0] quit

[PEA] interface ethernet 0/0

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

[PEA-Ethernet0/0] ip address 192.168.1.1 255.255.255.252

[PEA-Ethernet0/0] quit

[PEA] interface ethernet 0/1

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

[PEA-Ethernet0/1] ip address 10.1.1.1 255.255.255.0

[PEA-Ethernet0/1] quit

# 配置OSPF協議,實現骨幹網的互通。

[PEA] ospf 1

[PEA-ospf-1] area 0.0.0.0

[PEA-ospf-1-area-0.0.0.0] network 192.168.1.0 0.0.0.3

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

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

# 在PE A上使能MPLS基本能力,並使能RSVP-TE和CSPF。

[PEA] mpls lsr-id 1.1.1.1

[PEA] mpls

[PEA-mpls] lsp-trigger all

[PEA-mpls] mpls te

[PEA-mpls] mpls rsvp-te

[PEA-mpls] mpls te cspf

[PEA-mpls] quit

[PEA] interface ethernet0/0

[PEA-Ethernet0/0] mpls

[PEA-Ethernet0/0] mpls te

[PEA-Ethernet0/0] mpls rsvp-te

[PEA-Ethernet0/0] quit

# 使能OSPF TEopaque LSA發布接收能力。

[PEA] ospf

[PEA-ospf-1] opaque-capability enable

[PEA-ospf-1] area 0

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

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

[PEA-ospf-1] quit

# 以PE A為首端路由器,PE B為尾端路由器創建一條LSP隧道,隧道模式為MPLS TE,信令協議默認為RSVP-TE。

[PEA] interface tunnel 1

[PEA-Tunnel1] ip address 12.1.1.1 255.255.255.0

[PEA-Tunnel1] tunnel-protocol mpls te

[PEA-Tunnel1] destination 2.2.2.2

[PEA-Tunnel1] mpls te tunnel-id 10

[PEA-Tunnel1] mpls te signal-protocol rsvp-te

[PEA-Tunnel1] mpls te commit

[PEA-Tunnel1] quit

# PE A上創建隧道策略policy1,指定報文通過的隧道類型為CR-LSP,負載分擔條數為1

[PEA] tunnel-policy policy1

[PEA-tunnel-policy-policy1] tunnel select-seq cr-lsp load-balance-number 1

[PEA-tunnel-policy-policy1] quit

# 在PE A上創建VPN實例vpna,並與隧道策略policy1關聯起來。

[PEA] ip vpn-instance vpna

[PEA-vpn-instance-vpna] route-distinguisher 1:1

[PEA-vpn-instance-vpna] vpn-target 1:1 export-extcommunity

[PEA-vpn-instance-vpna] vpn-target 1:1 import-extcommunity

[PEA-vpn-instance-vpna] tnl-policy policy1

[PEA-vpn-instance-vpna] quit

# 將PE A接口與vpna綁定,將CE接入PE A。

[PEA] interface ethernet 0/1

[PEA-Ethernet0/1] ip binding vpn-instance vpna

[PEA-Ethernet0/1] ip address 10.1.1.1 255.255.255.0

[PEA-Ethernet0/1] quit

# 在PE A與CE A之間建立EBGP對等體,引入VPN路由。

[PEA] bgp 100

[PEA-bgp] ipv4-family vpn-instance vpna

[PEA-bgp-vpna] peer 10.1.1.2 as-number 65410

[PEA-bgp-vpna] peer 10.1.1.2 next-hop-local

[PEA-bgp-vpna] import-route direct

[PEA-bgp-vpna] quit

[PEA-bgp] quit

# 在PE之間建立MP-IBGP對等體。

[PEA] bgp 100

[PEA-bgp] peer 2.2.2.2 as-number 100

[PEA-bgp] peer 2.2.2.2 connect-interface loopback 0

[PEA-bgp] ipv4-family vpnv4

[PEA-bgp-af-vpnv4] peer 2.2.2.2 enable

[PEA-bgp-af-vpnv4] quit

[PEA-bgp] quit

3.4.2  設備PE B配置

# 配置PE B基本接口配置。

<PEB> system-view

[PEB] interface loopback 0

[PEB-LoopBack0] ip address 2.2.2.2 255.255.255.255

[PEB-LoopBack0] quit

[PEB] interface ethernet 0/0

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

[PEB-Ethernet0/0] ip address 192.168.1.2 255.255.255.252

[PEB-Ethernet0/0] quit

[PEB] interface ethernet 0/1

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

[PEB-Ethernet0/1] ip address 10.1.2.1 255.255.255.0

[PEB-Ethernet0/1] quit

# 配置OSPF協議,實現骨幹網的互通。

[PEB] ospf 1

[PEB-ospf-1] area 0.0.0.0

[PEB-ospf-1-area-0.0.0.0] network 192.168.1.0 0.0.0.3

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

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

[PEB-ospf-1] quit

# 在PE B上使能MPLS基本能力,並使能RSVP-TE和CSPF。

[PEB] mpls lsr-id 2.2.2.2

[PEB] mpls

[PEB-mpls] lsp-trigger all

[PEB-mpls] mpls te

[PEB-mpls] mpls rsvp-te

[PEB-mpls] mpls te cspf

[PEB-mpls] quit

[PEB] interface ethernet0/0

[PEB-Ethernet0/0] mpls

[PEB-Ethernet0/0] mpls te

[PEB-Ethernet0/0] mpls rsvp-te

[PEB-Ethernet0/0] quit

# 使能OSPF TEopaque LSA發布接收能力。

[PEB] ospf

[PEB-ospf-1] opaque-capability enable

[PEB-ospf-1] area 0

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

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

[PEB-ospf-1] quit

# 以PE B為首端路由器,PE A為尾端路由器創建一條LSP隧道,隧道模式為MPLS TE,信令協議為默認的RSVP-TE。

[PEB] interface tunnel 2

[PEB-Tunnel2] ip address 12.1.1.2 255.255.255.0

[PEB-Tunnel2] tunnel-protocol mpls te

[PEB-Tunnel2] destination 1.1.1.1

[PEB-Tunnel2] mpls te tunnel-id 20

[PEB-Tunnel2] mpls te signal-protocol rsvp-te

[PEB-Tunnel2] mpls te commit

# PE B上創建隧道策略policy2,指定報文通過的隧道類型為CR-LSP,負載分擔條數為1

[PEB] tunnel-policy policy2

[PEB-tunnel-policy-policy2] tunnel select-seq cr-lsp load-balance-number 1

[PEB-tunnel-policy-policy2] quit

# 在PE B上創建VPN實例vpna,並與隧道策略policy2關聯起來。

[PEB] ip vpn-instance vpna

[PEB-vpn-instance-vpna] route-distinguisher 1:2

[PEB-vpn-instance-vpna] vpn-target 1:1 export-extcommunity

[PEB-vpn-instance-vpna] vpn-target 1:1 import-extcommunity

[PEB-vpn-instance-vpna] tnl-policy policy2

[PEB-vpn-instance-vpna] quit

# 將PE B接口與vpna綁定,將CE接入PE B。

[PEB] interface ethernet0/1

[PEB-Ethernet0/1] ip binding vpn-instance vpna

[PEB-Ethernet0/1] ip address 10.1.2.1 255.255.255.0

[PEB-Ethernet0/1] quit

# 在PE與CE之間建立EBGP對等體,引入VPN路由。

[PEB] bgp 100

[PEB-bgp] ipv4-family vpn-instance vpna

[PEB-bgp-vpna] peer 10.1.2.2 as-number 65420

[PEB-bgp-vpna] peer 10.1.2.2 next-hop-local

[PEB-bgp-vpna] import-rute direct

[PEB-bgp-vpna] quit

[PEB-bgp] quit

# 在PE之間建立MP-IBGP對等體。

[PEB] bgp 100

[PEB-bgp] peer 1.1.1.1 as-number 100

[PEB-bgp] peer 1.1.1.1 connect-interface loopback 0

[PEB-bgp] ipv4-family vpnv4

[PEB-bgp-af-vpnv4] peer 1.1.1.1 enable

[PEB-bgp-af-vpnv4] quit

[PEB-bgp] quit

3.5  驗證配置

# 查看PE ATunnel接口狀態。

<PEA> display interface tunnel 1

Tunnel1 current state: UP

Line protocol current state: UP

Description: Tunnel1 Interface

The Maximum Transmit Unit is 64000

Internet Address is 12.1.1.1/24 Primary

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

Tunnel source unknown, destination 2.2.2.2

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

    156 packets output,  13704 bytes

    0 output error

# 查看PE BTunnel接口狀態。

<PEB> display interface tunnel 2

Tunnel2 current state: UP

Line protocol current state: UP

Description: Tunnel2 Interface

The Maximum Transmit Unit is 64000

Internet Address is 12.1.1.2/24 Primary

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

Tunnel source unknown, destination 1.1.1.1

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

    65 packets output,  5700 bytes

    0 output error

# CE Aping CE 2的接口IP地址,驗證是否能夠ping通。

<CEA> ping 10.1.2.2

  PING 10.1.2.2: 56  data bytes, press CTRL_C to break

    Reply from 10.1.2.2: bytes=56 Sequence=0 ttl=253 time=1 ms

    Reply from 10.1.2.2: bytes=56 Sequence=1 ttl=253 time=1 ms

    Reply from 10.1.2.2: bytes=56 Sequence=2 ttl=253 time=1 ms

    Reply from 10.1.2.2: bytes=56 Sequence=3 ttl=253 time=1 ms

    Reply from 10.1.2.2: bytes=56 Sequence=4 ttl=253 time=1 ms

 

  --- 10.1.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

3.6  配置文件

·     PE A配置:

#

 mpls lsr-id 1.1.1.1

#

ip vpn-instance vpna

 route-distinguisher 1:1

 tnl-policy policy1

 vpn-target 1:1 export-extcommunity

 vpn-target 1:1 import-extcommunity

#

mpls

 mpls te

 lsp-trigger all

 mpls rsvp-te

 mpls te cspf

#

tunnel-policy policy1

 tunnel select-seq cr-lsp load-balance-number 1

#

interface Ethernet0/0

 port link-mode route

 ip address 192.168.1.1 255.255.255.252

 mpls

 mpls te

 mpls rsvp-te

#

interface Ethernet0/1

 port link-mode route

 ip binding vpn-instance vpna

 ip address 10.1.1.1 255.255.255.0

#

interface LoopBack0

 ip address 1.1.1.1 255.255.255.255

#

interface Tunnel1

 ip address 12.1.1.1 255.255.255.0

 tunnel-protocol mpls te

 destination 2.2.2.2

 mpls te tunnel-id 10

 mpls te commit

#

bgp 100

 undo synchronization

 peer 2.2.2.2 as-number 100

 peer 2.2.2.2 connect-interface LoopBack0

 #

 ipv4-family vpn-instance vpna

  peer 10.1.1.2 as-number 65410

  import-route direct

  peer 10.1.1.2 next-hop-local

 #

 ipv4-family vpnv4

  peer 2.2.2.2 enable

#

ospf 1

 opaque-capability enable

 area 0.0.0.0

  network 192.168.1.0 0.0.0.3

  network 1.1.1.1 0.0.0.0

  mpls-te enable

·     PE B配置:

#

 mpls lsr-id 2.2.2.2

#

ip vpn-instance vpna

 route-distinguisher 1:2

 tnl-policy policy2

 vpn-target 1:1 export-extcommunity

 vpn-target 1:1 import-extcommunity

#

mpls

 mpls te

 lsp-trigger all

 mpls rsvp-te

 mpls te cspf

#

tunnel-policy policy2

 tunnel select-seq cr-lsp load-balance-number 1

#

interface LoopBack0

 ip address 2.2.2.2 255.255.255.255

#

interface Ethernet0/0

 port link-mode route

 ip address 192.168.1.2 255.255.255.252

 mpls

 mpls te

 mpls rsvp-te

#

interface Ethernet0/1

 port link-mode route

 ip binding vpn-instance vpna

 ip address 10.1.2.1 255.255.255.0

#

interface Tunnel2

 ip address 12.1.1.2 255.255.255.0

 tunnel-protocol mpls te

 destination 1.1.1.1

 mpls te tunnel-id 20

 mpls te commit

#

bgp 100

 undo synchronization

 peer 1.1.1.1 as-number 100

 peer 1.1.1.1 connect-interface LoopBack0

 #

 ipv4-family vpn-instance vpna

  peer 10.1.2.2 as-number 65420

  import-route direct

  peer 10.1.2.2 next-hop-local

 #

 ipv4-family vpnv4

  peer 1.1.1.1 enable

#

ospf 1

 opaque-capability enable

 area 0.0.0.0

  network 192.168.1.0 0.0.0.3

  network 2.2.2.2 0.0.0.0

  mpls-te enable

4  相關資料

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

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

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

BOB登陆
官網
聯係我們