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

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


9.4.7 BGP4プロトコル(ポリシーグループ)

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

(1) 設定内容の概要

AS番号200(AS200),AS番号300(AS300),AS番号400(AS400)の自律システムと接続されたAS番号100の自律システム(AS100)において,各ASへのピアをグループ化することにより,フィルタリングの設定を簡易化します。

(2) 構成図と設定条件

[構成図]

図9-24 構成図

[図データ]

[設定条件]

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

<本装置B/Cの環境>
  1. AS内の他のBGP4スピーカと内部ピアによりピアリングします。

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

[コマンドによる設定]

<本装置A>
 1    (config)# autonomoussystem 100
 2    (config)# routerid 172.16.1.1
 3    (config)# bgp yes
      [bgp]
 4    (config)# externalpeeras 200
      [bgp externalpeeras 200]
 5    (config)# policygroup 1
      [bgp externalpeeras 200]
 6    (config)# peer 172.17.1.1
      [bgp externalpeeras 200 peer 172.17.1.1]
 7    (config)# exit
      [bgp externalpeeras 200]
 8    (config)# exit
      [bgp]
 9    (config)# externalpeeras 300
      [bgp externalpeeras 300]
10    (config)# policygroup 1
      [bgp externalpeeras 300]
11    (config)# peer 172.18.1.1
      [bgp externalpeeras 300 peer 172.18.1.1]
12    (config)# exit
      [bgp externalpeeras 300]
13    (config)# exit
      [bgp]
14    (config)# externalpeeras 400
      [bgp externalpeeras 400]
15    (config)# policygroup 1
      [bgp externalpeeras 400]
16    (config)# peer 172.19.1.1
      [bgp externalpeeras 400 peer 172.19.1.1]
17    (config)# exit
      [bgp externalpeeras 400]
18    (config)# exit
      [bgp]
19    (config)# internalpeeras 100
      [bgp internalpeeras 100]
20    (config)# peer 172.16.2.2
      [bgp internalpeeras 100 peer 172.16.2.2]
21    (config)# exit
      [bgp internalpeeras 100]
22    (config)# peer 172.16.2.4
      [bgp internalpeeras 100 peer 172.16.2.4]
23    (config)# exit
      [bgp internalpeeras 100]
24    (config)# exit
      [bgp]
25    (config)# exit
26    (config)# attribute-list set-attribute AS200-IN
      [attribute-list set-attribute AS200-IN]
27    (config)# localpref 300
      [attribute-list set-attribute AS200-IN]
28    (config)# exit
29    (config)# attribute-list set-attribute AS300-IN
      [attribute-list set-attribute AS300-IN]
30    (config)# localpref 200
      [attribute-list set-attribute AS300-IN]
31    (config)# exit
32    (config)# attribute-list set-attribute AS400-IN
      [attribute-list set-attribute AS400-IN]
33    (config)# localpref 100
      [attribute-list set-attribute AS400-IN]
34    (config)# exit
35    (config)# import proto bgp as 200 set-attribute AS200-IN
      [import proto bgp as 200 set-attribute AS200-IN]
36    (config)# exit
37    (config)# import proto bgp as 300 set-attribute AS300-IN
      [import proto bgp as 300 set-attribute AS300-IN]
38    (config)# exit
39    (config)# import proto bgp as 400 set-attribute AS400-IN
      [import proto bgp as 400 set-attribute AS400-IN]
40    (config)# exit
41    (config)# static
      [static]
42    (config)# 172.16.0.0/16 interface null
      [static]
43    (config)# exit
44    (config)# export proto bgp policygroup 1
      [export proto bgp policygroup 1]
45    (config)# proto static
      [export proto bgp policygroup 1 proto static]
46    (config)# 172.16.0.0/16 exact
      [export proto bgp policygroup 1 proto static]
47    (config)# exit
      [export proto bgp policygroup 1]
48    (config)# exit
49    (config)# export proto bgp as 100
      [export proto bgp as 100]
50    (config)# proto bgp policygroup 1
      [export proto bgp as 100 proto bgp policygroup 1]
51    (config)# exit
      [export proto bgp as 100]
52    (config)# exit

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

解説番号 解説
1 自装置の属するAS番号を定義します。
2 自装置のルータIDを定義します。
3〜18 AS200,AS300,AS400に対する外部ピアを定義します。また,各ピアをグループ化します。
19〜25 本装置B,Cへの内部ピアを定義します。
26〜40 AS200,AS300,AS400から広告される経路にLOCALPREF値を設定するよう定義します。これによって,AS200,AS300,AS400の順に経路を優先順位付けします。
41〜43 AS内のネットワークをスタティック経路として定義します。
44〜48 生成したAS内ネットワークのスタティック経路をAS200,AS300,AS400との外部ピアに広告するよう定義します。
49〜52 AS200,AS300,AS400から受信した経路をAS内の内部ピアに広告するよう定義します。

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

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

表9-83 本装置B/Cのコンフィグレーション解説

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

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

<本装置A>
autonomoussystem 100
!
routerid 172.16.1.1
!
bgp yes
  internalpeeras 100
    peer 172.16.2.2
    peer 172.16.2.4
  externalpeeras 200
    policygroup 1
    peer 172.17.1.1
  externalpeeras 300
    policygroup 1
    peer 172.18.1.1
  externalpeeras 400
    policygroup 1
    peer 172.19.1.1
!
static
  172.16.0.0/16 interface null
!
attribute-list set-attribute AS200-IN
  localpref 300
!
attribute-list set-attribute AS300-IN
  localpref 200
!
attribute-list set-attribute AS400-IN
  localpref 100
!
import proto bgp as 200 set-attribute AS200-IN
!
import proto bgp as 300 set-attribute AS300-IN
!
import proto bgp as 400 set-attribute AS400-IN
!
export proto bgp as 100
  proto bgp policygroup 1
!
export proto bgp policygroup 1
  proto static
    172.16.0.0/16 exact

<本装置B>
autonomoussystem 100
!
routerid 172.16.1.2
!
bgp yes
  internalpeeras 100
    peer 172.16.2.1

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

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


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

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