コンフィグレーションガイド

[目次][用語][索引][前へ][次へ]


14.7.3 static LSPとstatic vcを使ったL2-VPN通信

<この項の構成>
(1) 設定内容の概要
(2) 構成図と設定条件
(3) コンフィグレーション例

(1) 設定内容の概要

本装置Aおよび本装置Dに収容するサイト間でL2-VPN通信を行う例を示します。LSP設定はルーティングベースstatic LSPを使用します。

(2) 構成図と設定条件

[構成図]

図14-20 構成図

[図データ]

[設定条件]
ネットワークEとGとの間を接続するL2-VPNのVCIDは1,ネットワークFとHとの間を接続するL2-VPNのVCIDは2として設定します。

(3) コンフィグレーション例

[コマンドによる設定]
ここでは,MPLSの設定についてだけ記述します。各装置におけるインタフェースの設定,IPルーティング情報の設定などは,「5. ネットワークインタフェースの設定例」〜「10. IPv4マルチキャストの設定例【OP-MLT】」を参照してください。

<本装置A>
 1    (config)# line ToRouterE ethernet 0/0
      [line ToRouterE]
 2    (config)# l2transport
      [line ToRouterE]
 3    (config)# ip
      [line ToRouterE]
 4    (config)# exit
 5    (config)# line ToRouterF ethernet 0/1
      [line ToRouterF]
 6    (config)# l2transport
      [line ToRouterF]
 7    (config)# ip
      [line ToRouterF]
 8    (config)# exit
 9    (config)# mpls yes
      [mpls]
10    (config)# static_lsp
      [mpls static_lsp]
11    (config)# ingress_lsp 1 type routing_based
      [mpls static_lsp ingress_lsp 1 type routing_based]
12    (config)# enable
      [mpls static_lsp ingress_lsp 1 type routing_based]
13    (config)# description "ToRouterD"
      [mpls static_lsp ingress_lsp 1 type routing_based]
14    (config)# destination 4.4.4.4/32
      [mpls static_lsp ingress_lsp 1 type routing_based]
15    (config)# primary out_label 1000 nexthop 172.16.3.2
      [mpls static_lsp ingress_lsp 1 type routing_based]
16    (config)# exit
      [mpls static_lsp]
17    (config)# exit
      [mpls]
18    (config)# l2transport vc 1 vc_type static tunnel_lsp_type static
      [mpls l2transport vc 1 vc_type static tunnel_lsp_type static]
19    (config)# description NetE-G-VC
      [mpls l2transport vc 1 vc_type static tunnel_lsp_type static]
20    (config)# tunnel_lsp_id 1
      [mpls l2transport vc 1 vc_type static tunnel_lsp_type static]
21    (config)# access_line ToRouterE
      [mpls l2transport vc 1 vc_type static tunnel_lsp_type static]
22    (config)# in_vc_label 1001
      [mpls l2transport vc 1 vc_type static tunnel_lsp_type static]
23    (config)# out_vc_label 1000
      [mpls l2transport vc 1 vc_type static tunnel_lsp_type static]
24    (config)# exit
      [mpls]
25    (config)# l2transport vc 2 vc_type static tunnel_lsp_type static
      [mpls l2transport vc 2 vc_type static tunnel_lsp_type static]
26    (config)# description NetF-H-VC
      [mpls l2transport vc 2 vc_type static tunnel_lsp_type static]
27    (config)# tunnel_lsp_id 1
      [mpls l2transport vc 2 vc_type static tunnel_lsp_type static]
28    (config)# access_line ToRouterF
      [mpls l2transport vc 2 vc_type static tunnel_lsp_type static]
29    (config)# in_vc_label 2001
      [mpls l2transport vc 2 vc_type static tunnel_lsp_type static]
30    (config)# out_vc_label 2000
      [mpls l2transport vc 2 vc_type static tunnel_lsp_type static]
31    (config)# exit
      [mpls]
32    (config)# exit

表14-59 本装置Aのコンフィグレーション解説

解説番号 解説
1 NIF番号0,LINE番号0に回線名ToRouterEのethernet回線を定義し,lineモードに入ります。
2 l2transportを使用することを定義します。
3 ipインタフェース定義をします。
4 lineモードからグローバルコンフィグモードへ戻ります。
5 NIF番号0,LINE番号1に回線名ToRouterFのethernet回線を定義し,lineモードに入ります。
6 l2transportを使用することを定義します。
7 ipインタフェース定義をします。
8 lineモードからグローバルコンフィグモードへ戻ります。
9 MPLS情報を設定します。
10〜16 LSP ID=1として,本装置D宛のstatic LSPを設定します。
17 static LSPモードからmplsモードへ戻ります。
18〜24 回線名ToRouterEにvcid 1としてl2transportを設定します。vc種別がstaticのため,入力および出力vcラベルを設定し,トンネルLSPとしてLSP ID 1のstatic LSPを指定します。
25〜31 回線名ToRouterFにvcid 2としてl2transportを設定します。vc種別がstaticのため,入力および出力vcラベルを設定し,トンネルLSPとしてLSP ID 1のstatic LSPを指定します。
32 mplsモードからグローバルコンフィグモードへ戻ります。

<本装置B>
 1    (config)# mpls yes
      [mpls]
 2    (config)# static_lsp
      [mpls static_lsp]
 3    (config)# core_lsp 1
      [mpls static_lsp core_lsp 1]
 4    (config)# enable
      [mpls static_lsp core_lsp 1]
 5    (config)# description "ToRouterD"
      [mpls static_lsp core_lsp 1]
 6    (config)# in_label 1000
      [mpls static_lsp core_lsp 1]
 7    (config)# primary out_label implicit_null nexthop 172.16.4.4
      [mpls static_lsp core_lsp 1]
 8    (config)# exit
      [mpls static_lsp]
 9    (config)# core_lsp 2
      [mpls static_lsp core_lsp 2]
10    (config)# enable
      [mpls static_lsp core_lsp 2]
11    (config)# description "ToRouterA"
      [mpls static_lsp core_lsp 2]
12    (config)# in_label 2000
      [mpls static_lsp core_lsp 2]
13    (config)# primary out_label implicit_null nexthop 172.16.3.1
      [mpls static_lsp core_lsp 2]
14    (config)# exit
      [mpls static_lsp]
15    (config)# exit
      [mpls]
16    (config)# exit

表14-60 本装置Bのコンフィグレーション解説

解説番号 解説
1 MPLS使用可とし,mplsモードに入ります。
2 static lspモードに入ります。
3〜8 LSP ID=1として,入力ラベル=1000に対するstatic LSPを設定します。
9〜14 LSP ID=2として,入力ラベル=2000に対するstatic LSPを設定します。
15 static lspモードからmplsモードに戻ります。
16 mplsモードからグローバルコンフィグモードに戻ります。

<本装置D>
 1    (config)# line ToRouterG ethernet 0/0
      [line ToRouterG]
 2    (config)# l2transport
      [line ToRouterG]
 3    (config)# ip
      [line ToRouterG]
 4    (config)# exit
 5    (config)# line ToRouterH ethernet 0/1
      [line ToRouterH]
 6    (config)# l2transport
      [line ToRouterH]
 7    (config)# ip
      [line ToRouterH]
 8    (config)# exit
 9    (config)# mpls yes
      [mpls]
10    (config)# static_lsp
      [mpls static_lsp]
11    (config)# ingress_lsp 2 type routing_based
      [mpls static_lsp ingress_lsp 2 type routing_based]
12    (config)# enable
      [mpls static_lsp ingress_lsp 2 type routing_based]
13    (config)# description "ToRouterA"
      [mpls static_lsp ingress_lsp 2 type routing_based]
14    (config)# destination 1.1.1.1/32
      [mpls static_lsp ingress_lsp 2 type routing_based]
15    (config)# primary out_label 2000 nexthop 172.16.4.3
      [mpls static_lsp ingress_lsp 2 type routing_based]
16    (config)# exit
      [mpls static_lsp]
17    (config)# exit
      [mpls]
18    (config)# l2transport vc 1 vc_type static tunnel_lsp_type static
      [mpls l2transport vc 1 vc_type static tunnel_lsp_type static]
19    (config)# description NetG-E-VC
      [mpls l2transport vc 1 vc_type static tunnel_lsp_type static]
20    (config)# tunnel_lsp_id 2
      [mpls l2transport vc 1 vc_type static tunnel_lsp_type static]
21    (config)# access_line ToRouterG
      [mpls l2transport vc 1 vc_type static tunnel_lsp_type static]
22    (config)# in_vc_label 1000
      [mpls l2transport vc 1 vc_type static tunnel_lsp_type static]
23    (config)# out_vc_label 1001
      [mpls l2transport vc 1 vc_type static tunnel_lsp_type static]
24    (config)# exit
      [mpls]
25    (config)# l2transport vc 2 vc_type static tunnel_lsp_type static
      [mpls l2transport vc 2 vc_type static tunnel_lsp_type static]
26    (config)# description NetH-F-VC
      [mpls l2transport vc 2 vc_type static tunnel_lsp_type static]
27    (config)# tunnel_lsp_id 2
      [mpls l2transport vc 2 vc_type static tunnel_lsp_type static]
28    (config)# access_line ToRouterH
      [mpls l2transport vc 2 vc_type static tunnel_lsp_type static]
29    (config)# in_vc_label 2000
      [mpls l2transport vc 2 vc_type static tunnel_lsp_type static]
30    (config)# out_vc_label 2001
      [mpls l2transport vc 2 vc_type static tunnel_lsp_type static]
31    (config)# exit
      [mpls]
32    (config)# exit

表14-61 本装置Dのコンフィグレーション解説

解説番号 解説
1 NIF番号0,LINE番号0に回線名ToRouterGのethernet回線を定義し,lineモードに入ります。
2 l2transportを使用することを定義します。
3 ipインタフェース定義をします。
4 lineモードからグローバルコンフィグモードへ戻ります。
5 NIF番号0,LINE番号1に回線名ToRouterHのethernet回線を定義し,lineモードに入ります。
6 l2transportを使用することを定義します。
7 ipインタフェース定義をします。
8 lineモードからグローバルコンフィグモードへ戻ります。
9 MPLS情報を設定します。
10〜16 LSP ID=2として,本装置A宛のstatic LSPを設定します。
17 static LSPモードからmplsモードへ戻ります。
18〜24 回線名ToRouterGにvcid 1としてl2transportを設定します。vc種別がstaticのため,入力および出力vcラベルを設定し,トンネルLSPとしてLSP ID 2のstatic LSPを指定します。
25〜31 回線名ToRouterHにvcid 2としてl2transportを設定します。vc種別がstaticのため,入力および出力vcラベルを設定し,トンネルLSPとしてLSP ID 2のstatic LSPを指定します。
32 mplsモードからグローバルコンフィグモードへ戻ります。

[コンフィグレーションの表示]

<本装置A>
line ToRouterE ethernet 0/0
  l2transport
  ip
!
line ToRouterF ethernet 0/1
  l2transport
  ip
!
mpls yes
  static_lsp
    ingress_lsp 1 type routing_based
      enable
      description "ToRouterD"
      destination 4.4.4.4/32
      primary out_label 1000 nexthop 172.16.3.2
  l2transport vc 1 vc_type static tunnel_lsp_type static
    description NetE-G-VC
    tunnel_lsp_id 1
    access_line ToRouterE
    in_vc_label 1001
    out_vc_label 1000
  l2transport vc 2 vc_type static tunnel_lsp_type static
    description NetF-H-VC
    tunnel_lsp_id 1
    access_line ToRouterF
    in_vc_label 2001
    out_vc_label 2000

<本装置B>
mpls yes
  static_lsp
    core_lsp 1
      enable
      description "ToRouterD"
      in_label 1000
      primary out_label implicit_null nexthop 172.16.4.4
    core_lsp 2
      enable
      description "ToRouterA"
      in_label 2000
      primary out_label implicit_null nexthop 172.16.3.1

<本装置D>
line ToRouterG ethernet 0/0
  l2transport
  ip
!
line ToRouterH ethernet 0/1
  l2transport
  ip
!
mpls yes
  static_lsp
    ingress_lsp 2 type routing_based
      enable
      description "ToRouterA"
      destination 1.1.1.1/32
      primary out_label 2000 nexthop 172.16.4.3
  l2transport vc 1 vc_type static tunnel_lsp_type static
    description NetG-E-VC
    tunnel_lsp_id 2
    access_line ToRouterG
    in_vc_label 1000
    out_vc_label 1001
  l2transport vc 2 vc_type static tunnel_lsp_type static
    description NetH-F-VC
    tunnel_lsp_id 2
    access_line ToRouterH
    in_vc_label 2000
    out_vc_label 2001

[目次][前へ][次へ]


[他社商品名称に関する表示]

Copyright (c)2005, 2011, ALAXALA Networks Corporation. All rights reserved.