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

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


12.4.6 BGP4+プロトコル(BGP4+マルチパス)

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

(1) 設定内容の概要

AS番号200(AS200)の自律システムと複数の回線で接続されたAS番号100の自律システム(AS100)において,OSPFv3,およびBGP4+のマルチパス機能を利用し,AS200へのトラフィックを負荷分散します。

(2) 構成図と設定条件

[構成図]

図12-20 構成図

[図データ]

[設定条件]

<本装置Aの環境>
  1. AS200のBGP4+スピーカと外部ピアによりピアリングします。
  2. AS内の他のBGP4+スピーカと内部ピアによりピアリングします。
  3. OSPFv3により直結経路を,BGP4+によりAS200から受信した経路をAS内に広告します。
  4. AS内のネットワークをスタティック定義し,AS200に広告します。

<本装置B/C/D/Eの環境>
  1. AS内の他のBGP4+スピーカと内部ピアによりピアリングします。
  2. OSPFv3により直結経路をAS内に広告します。

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

[コマンドによる設定]

<本装置A>
 1    (config)# local-address 3ffe:501:811:ff01::1
 2    (config)# options max-paths 2
 3    (config)# autonomoussystem 100
 4    (config)# routerid 172.16.1.1
 5    (config)# ospf6 yes
      [ospf6]
 6    (config)# multipath
      [ospf6]
 7    (config)# backbone
      [ospf6 backbone]
 8    (config)# interface Osaka1 Osaka2
      [ospf6 backbone interface Osaka1 Osaka2]
 9    (config)# exit
      [ospf6 backbone]
10    (config)# interface localhost
      [ospf6 backbone interface localhost]
11    (config)# exit
      [ospf6 backbone]
12    (config)# exit
      [ospf6]
13    (config)# exit
14    (config)# bgp4+ yes
      [bgp4+]
15    (config)# multipath
      [bgp4+]
16    (config)# externalpeeras 200
      [bgp4+ externalpeeras 200]
17    (config)# peer fe80::1%OsakaTokyo1
      [bgp4+ externalpeeras 200 peer fe80::1%OsakaTokyo1]
18    (config)# exit
      [bgp4+ externalpeeras 200]
19    (config)# peer fe80::1%OsakaTokyo2
      [bgp4+ externalpeeras 200 peer fe80::1%OsakaTokyo2]
20    (config)# exit
      [bgp4+ externalpeeras 200]
21    (config)# exit
      [bgp4+]
22    (config)# routingpeeras 100
      [bgp4+ routingpeeras 100]
23    (config)# lcladdr 3ffe:501:811:ff01::1
      [bgp4+ routingpeeras 100]
24    (config)# peer 3ffe:501:811:ff01::2
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::2]
25    (config)# exit
      [bgp4+ routingpeeras 100]
26    (config)# peer 3ffe:501:811:ff01::3
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::3]
27    (config)# exit
      [bgp4+ routingpeeras 100]
28    (config)# peer 3ffe:501:811:ff01::4
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::4]
29    (config)# exit
      [bgp4+ routingpeeras 100]
30    (config)# peer 3ffe:501:811:ff01::5
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::5]
31    (config)# exit
      [bgp4+ routingpeeras 100]
32    (config)# exit
      [bgp4+]
33    (config)# exit
34    (config)# static
      [static]
35    (config)# 3ffe:501:811:ff01::/64 interface null
      [static]
36    (config)# exit
37    (config)# export proto bgp4+ as 100
      [export proto bgp4+ as 100]
38    (config)# proto bgp4+ as 200
      [export proto bgp4+ as 100 proto bgp4+ as 200]
39    (config)# exit
      [export proto bgp4+ as 100]
40    (config)# exit
41    (config)# export proto bgp4+ as 200
      [export proto bgp4+ as 200]
42    (config)# proto static 3ffe:501:811:ff01::/64 exact
      [export proto bgp4+ as 200 proto static]
43    (config)# exit
      [export proto bgp4+ as 200]
44    (config)# exit

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

解説番号 解説
1 自装置アドレスを定義します。
2 生成するマルチパス経路の最大パス数を定義します。
3 自装置の属するAS番号を定義します。
4 自装置のルータIDを定義します。
5,6 OSPFv3で生成する経路をマルチパス化することを定義します。
7〜9 自AS内向けの各インタフェースでOSPFv3を定義します。
10〜13 自装置アドレスをOSPFv3インタフェースとして広告することを定義します。
14,15 BGP4+で学習した経路をマルチパス化することを定義します。
16〜21 BGP4+プロトコルを動作させることを定義します。また,AS200に対する外部ピアを定義します。
22,23 内部ピアでの自装置側ピアリングアドレスに自装置アドレスを使用することを定義します。
24〜33 本装置B,C,D,Eへの内部ピアを定義します。
34〜36 AS内のネットワークをスタティック経路として定義します。
37〜40 AS200から受信した経路をAS内の内部ピアに広告するよう定義します。
41〜44 生成したAS内ネットワークのスタティック経路をAS200との外部ピアに広告するよう定義します。

<本装置B>
 1    (config)# local-address 3ffe:501:811:ff01::2
 2    (config)# options max-paths 2
 3    (config)# autonomoussystem 100
 4    (config)# routerid 172.16.1.2
 5    (config)# ospf6 yes
      [ospf6]
 6    (config)# multipath
      [ospf6]
 7    (config)# backbone
      [ospf6 backbone]
 8    (config)# interface all
      [ospf6 backbone interface all]
 9    (config)# exit
      [ospf6 backbone]
10    (config)# exit
      [ospf6]
11    (config)# exit
12    (config)# bgp4+ yes
      [bgp4+]
13    (config)# routingpeeras 100
      [bgp4+ routingpeeras 100]
14    (config)# lcladdr 3ffe:501:811:ff01::2
      [bgp4+ routingpeeras 100]
15    (config)# peer 3ffe:501:811:ff01::1
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::1]
16    (config)# exit
      [bgp4+ routingpeeras 100]
17    (config)# peer 3ffe:501:811:ff01::3
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::3]
18    (config)# exit
      [bgp4+ routingpeeras 100]
19    (config)# peer 3ffe:501:811:ff01::4
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::4]
20    (config)# exit
      [bgp4+ routingpeeras 100]
21    (config)# peer 3ffe:501:811:ff01::5
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::5]
22    (config)# exit
      [bgp4+ routingpeeras 100]
23    (config)# exit
      [bgp4+]
24    (config)# exit

<本装置C>
 1    (config)# local-address 3ffe:501:811:ff01::3
 2    (config)# options max-paths 2
 3    (config)# autonomoussystem 100
 4    (config)# routerid 172.16.1.3
 5    (config)# ospf6 yes
      [ospf6]
 6    (config)# multipath
      [ospf6]
 7    (config)# backbone
      [ospf6 backbone]
 8    (config)# interface all
      [ospf6 backbone interface all]
 9    (config)# exit
      [ospf6 backbone]
10    (config)# exit
      [ospf6]
11    (config)# exit
12    (config)# bgp4+ yes
      [bgp4+]
13    (config)# routingpeeras 100
      [bgp4+ routingpeeras 100]
14    (config)# lcladdr 3ffe:501:811:ff01::3
      [bgp4+ routingpeeras 100]
15    (config)# peer 3ffe:501:811:ff01::1
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::1]
16    (config)# exit
      [bgp4+ routingpeeras 100]
17    (config)# peer 3ffe:501:811:ff01::2
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::2]
18    (config)# exit
      [bgp4+ routingpeeras 100]
19    (config)# peer 3ffe:501:811:ff01::4
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::4]
20    (config)# exit
      [bgp4+ routingpeeras 100]
21    (config)# peer 3ffe:501:811:ff01::5
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::5]
22    (config)# exit
      [bgp4+ routingpeeras 100]
23    (config)# exit
      [bgp4+]
24    (config)# exit

<本装置D>
 1    (config)# local-address 3ffe:501:811:ff01::4
 2    (config)# options max-paths 2
 3    (config)# autonomoussystem 100
 4    (config)# routerid 172.16.1.4
 5    (config)# ospf6 yes
      [ospf6]
 6    (config)# multipath
      [ospf6]
 7    (config)# backbone
      [ospf6 backbone]
 8    (config)# interface all
      [ospf6 backbone interface all]
 9    (config)# exit
      [ospf6 backbone]
10    (config)# exit
      [ospf6]
11    (config)# exit
12    (config)# bgp4+ yes
      [bgp4+]
13    (config)# routingpeeras 100
      [bgp4+ routingpeeras 100]
14    (config)# lcladdr 3ffe:501:811:ff01::4
      [bgp4+ routingpeeras 100]
15    (config)# peer 3ffe:501:811:ff01::1
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::1]
16    (config)# exit
      [bgp4+ routingpeeras 100]
17    (config)# peer 3ffe:501:811:ff01::2
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::2]
18    (config)# exit
      [bgp4+ routingpeeras 100]
19    (config)# peer 3ffe:501:811:ff01::3
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::3]
20    (config)# exit
      [bgp4+ routingpeeras 100]
21    (config)# peer 3ffe:501:811:ff01::5
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::5]
22    (config)# exit
      [bgp4+ routingpeeras 100]
23    (config)# exit
      [bgp4+]
24    (config)# exit

<本装置E>
 1    (config)# local-address 3ffe:501:811:ff01::5
 2    (config)# options max-paths 2
 3    (config)# autonomoussystem 100
 4    (config)# routerid 172.16.1.5
 5    (config)# ospf6 yes
      [ospf6]
 6    (config)# multipath
      [ospf6]
 7    (config)# backbone
      [ospf6 backbone]
 8    (config)# interface all
      [ospf6 backbone interface all]
 9    (config)# exit
      [ospf6 backbone]
10    (config)# exit
      [ospf6]
11    (config)# exit
12    (config)# bgp4+ yes
      [bgp4+]
13    (config)# routingpeeras 100
      [bgp4+ routingpeeras 100]
14    (config)# lcladdr 3ffe:501:811:ff01::5
      [bgp4+ routingpeeras 100]
15    (config)# peer 3ffe:501:811:ff01::1
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::1]
16    (config)# exit
      [bgp4+ routingpeeras 100]
17    (config)# peer 3ffe:501:811:ff01::2
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::2]
18    (config)# exit
      [bgp4+ routingpeeras 100]
19    (config)# peer 3ffe:501:811:ff01::3
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::3]
20    (config)# exit
      [bgp4+ routingpeeras 100]
21    (config)# peer 3ffe:501:811:ff01::4
      [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::4]
22    (config)# exit
      [bgp4+ routingpeeras 100]
23    (config)# exit
      [bgp4+]
24    (config)# exit

表12-65 本装置B/C/D/Eのコンフィグレーション解説

解説番号 解説
1〜11 <本装置A>の解説番号1〜6に同じ
12〜14 BGP4+プロトコルを動作させることを定義します。内部ピアでの自装置側ピアリングアドレスに自装置アドレスを使用することを定義します。
15〜24 自AS内のBGP4+スピーカへの内部ピアを定義します。

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

<本装置A>
local-address 3ffe:501:811:ff01::1
!
options max-paths 2
!
autonomoussystem 100
!
routerid 172.16.1.1
!
ospf6 yes
  multipath
  backbone
    interface localhost
    interface Osaka1 Osaka2
!
bgp4+ yes
  multipath
  routingpeeras 100
    lcladdr 3ffe:501:811:ff01::1
    peer 3ffe:501:811:ff01::2
    peer 3ffe:501:811:ff01::3
    peer 3ffe:501:811:ff01::4
    peer 3ffe:501:811:ff01::5
  externalpeeras 200
    peer fe80::1%OsakaTokyo1
    peer fe80::1%OsakaTokyo2
!
static
  3ffe:501:811:ff01::/64 interface null
!
export proto bgp4+ as 100
  proto bgp4+ as 200
!
export proto bgp4+ as 200
  proto static
    3ffe:501:811:ff01::/64 exact

<本装置B>
local-address 3ffe:501:811:ff01::2
!
options max-paths 2
!
autonomoussystem 100
!
routerid 172.16.1.2
!
ospf6 yes
  multipath
  backbone
    interface all
!
bgp4+ yes
  routingpeeras 100
    lcladdr 3ffe:501:811:ff01::2
    peer 3ffe:501:811:ff01::1
    peer 3ffe:501:811:ff01::3
    peer 3ffe:501:811:ff01::4
    peer 3ffe:501:811:ff01::5

<本装置C>
local-address 3ffe:501:811:ff01::3
!
options max-paths 2
!
autonomoussystem 100
!
routerid 172.16.1.3
!
ospf6 yes
  multipath
  backbone
    interface all
!
bgp4+ yes
  routingpeeras 100
    lcladdr 3ffe:501:811:ff01::3
    peer 3ffe:501:811:ff01::1
    peer 3ffe:501:811:ff01::2
    peer 3ffe:501:811:ff01::4
    peer 3ffe:501:811:ff01::5

<本装置D>
local-address 3ffe:501:811:ff01::4
!
options max-paths 2
!
autonomoussystem 100
!
routerid 172.16.1.4
!
ospf6 yes
  multipath
  backbone
    interface all
!
bgp4+ yes
  routingpeeras 100
    lcladdr 3ffe:501:811:ff01::4
    peer 3ffe:501:811:ff01::1
    peer 3ffe:501:811:ff01::2
    peer 3ffe:501:811:ff01::3
    peer 3ffe:501:811:ff01::5

<本装置E>
local-address 3ffe:501:811:ff01::5
!
options max-paths 2
!
autonomoussystem 100
!
routerid 172.16.1.5
!
ospf6 yes
  multipath
  backbone
    interface all
!
bgp4+ yes
  routingpeeras 100
    lcladdr 3ffe:501:811:ff01::5
    peer 3ffe:501:811:ff01::1
    peer 3ffe:501:811:ff01::2
    peer 3ffe:501:811:ff01::3
    peer 3ffe:501:811:ff01::4

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


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

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