構成定義ガイド

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


8.4.3 BGP4プロトコル(ルート・リフレクション)

<この項の構成>
(1) 設定内容の概要
(2) 構成図と設定条件
(3) 構成定義情報例

(1) 設定内容の概要

AS番号200の自律システム(AS200)とAS番号300の自律システム(AS300)に接続されたAS番号100の自律システム(AS100)において,AS200およびAS300から広告された経路情報をAS内に配布します。また,AS内のネットワークをスタティック定義し,AS200およびAS300に広告します。

(2) 構成図と設定条件

[構成図]

図8-17 構成図

[図データ]

[設定条件]

<本装置A/Bの環境>
  1. AS番号200/300の自律システムと外部ピアによりピアリングします。
  2. 本装置A/Bは各々本装置C/Dのルート・リフレクタとしてピアリングします。
  3. AS番号200/300の自律システムから受信した経路および直結経路をAS内に広告します。
  4. AS内のネットワークをスタティック定義し,AS番号200/300の自律システムに広告します。

<本装置C/Dの環境>
  1. 本装置C/Dは各々本装置A/Bのクライアントとしてピアリングします。
  2. デフォルト経路等のIGP(Interior Gateway Protocol)への配布,内部経路のBGP4への配布は省略しています。

(3) 構成定義情報例

[コマンドによる設定]

<本装置A>
 1    (config)# autonomoussystem 100
 2    (config)# routerid 172.16.2.1
 3    (config)# bgp yes
      [bgp]
 4    (config)# externalpeeras 200
      [bgp externalpeeras 200]
 5    (config)# peer 172.17.1.1
      [bgp externalpeeras 200 peer 172.17.1.1]
 6    (config)# exit
      [bgp externalpeeras 200]
 7    (config)# exit
      [bgp]
 8    (config)# internalpeeras 100
      [bgp internalpeeras 100]
 9    (config)# peer 172.16.2.20
      [bgp internalpeeras 100 peer 172.16.2.20]
10    (config)# exit
      [bgp internalpeeras 100]
11    (config)# exit
      [bgp]
12    (config)# internalpeeras 100 reflector-client
      [bgp internalpeeras 100 reflector-client]
13    (config)# peer 172.16.2.12
      [bgp internalpeeras 100 reflector-client peer 172.16.2.12]
14    (config)# exit
      [bgp internalpeeras 100 reflector-client]
15    (config)# exit
      [bgp]
16    (config)# exit
17    (config)# export proto bgp as 100
      [export proto bgp as 100]
18    (config)# proto bgp as 200
      [export proto bgp as 100 proto bgp as 200]
19    (config)# exit
      [export proto bgp as 100]
20    (config)# proto direct
      [export proto bgp as 100 proto direct]
21    (config)# exit
      [export proto bgp as 100]
22    (config)# proto bgp as 100
      [export proto bgp as 100 proto bgp as 100]
23    (config)# exit
      [export proto bgp as 100]
24    (config)# exit
25    (config)# static
      [static]
26    (config)# 172.16.0.0 masklen 16 interface null
      [static]
27    (config)# exit
28    (config)# export proto bgp as 200
      [export proto bgp as 200]
29    (config)# proto static
      [export proto bgp as 200 proto static]
30    (config)# exit
      [export proto bgp as 200]
31    (config)# exit

表8-61 本装置Aの構成定義情報解説

解説番号 解説
1 自装置の属するAS番号を定義します。
2 自装置のルータIDを定義します。
3〜7 BGP4プロトコルを動作させることを定義します。また,AS200に対する外部ピアを定義します。
8〜11 本装置Bへの内部ピアを定義します。
12〜16 自装置がルート・リフレクタであり,クライアントである本装置Cへの内部ピアを定義します。
17〜19 AS200から受信した経路情報をAS内の内部ピアに広告するよう定義します。
20,21 直結経路をAS内の内部ピアに広告するよう定義します。
22〜24 経路をリフレクト(AS100→AS100)するよう定義します。
25〜27 AS内のネットワークをスタティック経路として定義します。
28〜31 生成したスタティック経路をAS200との外部ピアに広告するよう定義します。

<本装置B>
 1    (config)# autonomoussystem 100
 2    (config)# routerid 172.16.2.2
 3    (config)# bgp yes
      [bgp]
 4    (config)# externalpeeras 300
      [bgp externalpeeras 300]
 5    (config)# peer 172.18.1.1
      [bgp externalpeeras 300 peer 172.18.1.1]
 6    (config)# exit
      [bgp externalpeeras 300]
 7    (config)# exit
      [bgp]
 8    (config)# internalpeeras 100
      [bgp internalpeeras 100]
 9    (config)# peer 172.16.2.19
      [bgp internalpeeras 100 peer 172.16.2.19]
10    (config)# exit
      [bgp internalpeeras 100]
11    (config)# exit
      [bgp]
12    (config)# internalpeeras 100 reflector-client
      [bgp internalpeeras 100 reflector-client]
13    (config)# peer 172.16.2.14
      [bgp internalpeeras 100 reflector-client peer 172.16.2.14]
14    (config)# exit
      [bgp internalpeeras 100 reflector-client]
15    (config)# exit
      [bgp]
16    (config)# exit
17    (config)# export proto bgp as 100
      [export proto bgp as 100]
18    (config)# proto bgp as 300
      [export proto bgp as 100 proto bgp as 300]
19    (config)# exit
      [export proto bgp as 100]
20    (config)# proto direct
      [export proto bgp as 100 proto direct]
21    (config)# exit
      [export proto bgp as 100]
22    (config)# proto bgp as 100
      [export proto bgp as 100 proto bgp as 100]
23    (config)# exit
      [export proto bgp as 100]
24    (config)# exit
25    (config)# static
      [static]
26    (config)# 172.16.0.0 masklen 16 interface null
      [static]
27    (config)# exit
28    (config)# export proto bgp as 300
      [export proto bgp as 300]
29    (config)# proto static
      [export proto bgp as 300 proto static]
30    (config)# exit
      [export proto bgp as 300]
31    (config)# exit

表8-62 本装置Bの構成定義情報解説

解説番号 解説
1 自装置の属するAS番号を定義します。
2 自装置のルータIDを定義します。
3〜7 BGP4プロトコルを動作させることを定義します。また,AS300に対する外部ピアを定義します。
8〜11 本装置Aへの内部ピアを定義します。
12〜16 自装置がルート・リフレクタであり,クライアントである本装置Dへの内部ピアを定義します。
17〜19 AS300から受信した経路情報をAS内の内部ピアに広告するよう定義します。
20,21 直結経路をAS内の内部ピアに広告するよう定義します。
22〜24 経路をリフレクト(AS100→AS100)するよう定義します。
25〜27 AS内のネットワークをスタティック経路として定義します。
28〜31 生成したスタティック経路をAS300との外部ピアに広告するよう定義します。

<本装置C>
 1    (config)# autonomoussystem 100
 2    (config)# routerid 172.16.2.3
 3    (config)# bgp yes
      [bgp]
 4    (config)# internalpeeras 100
      [bgp internalpeeras 100]
 5    (config)# peer 172.16.2.11
      [bgp internalpeeras 100 peer 172.16.2.11]
 6    (config)# exit
      [bgp internalpeeras 100]
 7    (config)# exit
      [bgp]
 8    (config)# exit

表8-63 本装置Cの構成定義情報解説

解説番号 解説
1 自装置の属するAS番号を定義します。
2 自装置のルータIDを定義します。
3〜8 BGP4プロトコルを動作させることを定義します。また,本装置Aへの内部ピアを定義します。

<本装置D>
 1    (config)# autonomoussystem 100
 2    (config)# routerid 172.16.2.4
 3    (config)# bgp yes
      [bgp]
 4    (config)# internalpeeras 100
      [bgp internalpeeras 100]
 5    (config)# peer 172.16.2.13
      [bgp internalpeeras 100 peer 172.16.2.13]
 6    (config)# exit
      [bgp internalpeeras 100]
 7    (config)# exit
      [bgp]
 8    (config)# exit

表8-64 本装置Dの構成定義情報解説

解説番号 解説
1 自装置の属するAS番号を定義します。
2 自装置のルータIDを定義します。
3〜8 BGP4プロトコルを動作させることを定義します。また,本装置Bへの内部ピアを定義します。

[構成定義情報の表示]

<本装置A>
autonomoussystem 100
!
routerid 172.16.2.1
!
bgp yes
  internalpeeras 100
    peer 172.16.2.20
  internalpeeras 100 reflector-client
    peer 172.16.2.12
  externalpeeras 200
    peer 172.17.1.1
!
static
  172.16.0.0 masklen 16 interface null
!
export proto bgp as 100
  proto bgp as 200
  proto direct
  proto bgp as 100
!
export proto bgp as 200
  proto static

<本装置B>
autonomoussystem 100
!
routerid 172.16.2.2
!
bgp yes
  internalpeeras 100
    peer 172.16.2.19
  internalpeeras 100 reflector-client
    peer 172.16.2.14
  externalpeeras 300
    peer 172.18.1.1
!
static
  172.16.0.0 masklen 16 interface null
!
export proto bgp as 100
  proto bgp as 300
  proto direct
  proto bgp as 100
!
export proto bgp as 300
  proto static

<本装置C>
autonomoussystem 100
!
routerid 172.16.2.3
!
bgp yes
  internalpeeras 100
    peer 172.16.2.11

<本装置D>
autonomoussystem 100
!
routerid 172.16.2.4
!
bgp yes
  internalpeeras 100
    peer 172.16.2.13

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


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

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