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

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


9.6.6 BGP4プロトコル(エキスポート・フィルタ)【OP-BGP】

<この項の構成>
(1) 特定プロトコル経路の広告

(1) 特定プロトコル経路の広告

(a) 設定内容

AS100から受信したASパス長が一つのBGP4経路,および自ASのネットワークを示すスタティック経路(192.169.0.0/16)を,AS200,およびAS300に広告します。その際,AS300に広告する経路には自AS番号を二つ追加します。

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

● attribute-listによる設定

[コマンドによる設定]
 1    (config)# attribute-list attribute-filter ASPATH-LEN-1
      [attribute-list attribute-filter ASPATH-LEN-1]
 2    (config)# aspath-regexp "^[0-9]+$"
      [attribute-list attribute-filter ASPATH-LEN-1]
 3    (config)# exit
 4    (config)# attribute-list set-attribute AS-PREPEND-2
      [attribute-list set-attribute AS-PREPEND-2]
 5    (config)# ascount 2
      [attribute-list set-attribute AS-PREPEND-2]
 6    (config)# exit
 7    (config)# export proto bgp as 200
      [export proto bgp as 200]
 8    (config)# proto bgp as 100 attribute-filter ASPATH-LEN-1
      [export proto bgp as 200 proto bgp as 100 attribute-filter
       ASPATH-LEN-1]
 9    (config)# exit
      [export proto bgp as 200]
10    (config)# proto static
      [export proto bgp as 200 proto static]
11    (config)# 192.169.0.0/16 exact
      [export proto bgp as 200 proto static]
12    (config)# exit
      [export proto bgp as 200]
13    (config)# exit
14    (config)# export proto bgp as 300 set-attribute AS-PREPEND-2
      [export proto bgp as 300 set-attribute AS-PREPEND-2]
15    (config)# proto bgp as 100 attribute-filter ASPATH-LEN-1
      [export proto bgp as 300 set-attribute AS-PREPEND-2 proto bgp
       as 100 attribute-filter ASPATH-LEN-1]
16    (config)# exit
      [export proto bgp as 300 set-attribute AS-PREPEND-2]
17    (config)# proto static
      [export proto bgp as 300 set-attribute AS-PREPEND-2 proto static]
18    (config)# 192.169.0.0/16 exact
      [export proto bgp as 300 set-attribute AS-PREPEND-2 proto static]
19    (config)# exit
      [export proto bgp as 300 set-attribute AS-PREPEND-2]
20    (config)# exit

表9-130 コンフィグレーション解説

解説番号 解説
1〜6 BGP4属性のフィルタ情報,および変更情報を定義します。
7〜20 AS200,およびAS300に対し,AS100から受信したASパス長が一つのBGP4経路,および自ASのネットワークを示すスタティック経路を広告するよう定義します。また,その際AS300に広告する経路には自AS番号を二つ追加します。

[コンフィグレーションの表示]
attribute-list set-attribute AS-PREPEND-2
  ascount 2
!
attribute-list attribute-filter ASPATH-LEN-1
  aspath-regexp "^[0-9]+$"
!
export proto bgp as 200
  proto bgp as 100 attribute-filter ASPATH-LEN-1
  proto static
    192.169.0.0/16 exact
!
export proto bgp as 300 set-attribute AS-PREPEND-2
  proto bgp as 100 attribute-filter ASPATH-LEN-1
  proto static
    192.169.0.0/16 exact

● route-filterによる設定

[コマンドによる設定]
 1    (config)# route-filter name AS200-OUT
      [route-filter name AS200-OUT]
 2    (config)# seq 100 match proto bgp as 100
      [route-filter name AS200-OUT]
 3    (config)# seq 100 match aspath-regexp "^[0-9]+$"
      [route-filter name AS200-OUT]
 4    (config)# seq 200 match proto static
      [route-filter name AS200-OUT]
 5    (config)# seq 200 match network 192.169.0.0/16 exact
      [route-filter name AS200-OUT]
 6    (config)# exit
 7    (config)# export proto bgp as 200 route-filter AS200-OUT
 8    (config)# route-filter name AS300-OUT
      [route-filter name AS300-OUT]
 9    (config)# seq 100 match proto bgp as 100
      [route-filter name AS300-OUT]
10    (config)# seq 100 match aspath-regexp "^[0-9]+$"
      [route-filter name AS300-OUT]
11    (config)# seq 100 set ascount 2
      [route-filter name AS300-OUT]
12    (config)# seq 200 match proto static
      [route-filter name AS300-OUT]
13    (config)# seq 200 match network 192.169.0.0/16 exact
      [route-filter name AS300-OUT]
14    (config)# seq 200 set ascount 2
      [route-filter name AS300-OUT]
15    (config)# exit
16    (config)# export proto bgp as 300 route-filter AS300-OUT

表9-131 コンフィグレーション解説

解説番号 解説
1〜7 AS200に対し,AS100から受信したASパス長が一つのBGP4経路,および自ASのネットワークを示すスタティック経路を広告するよう定義します。
8〜16 AS300に対し,AS100から受信したASパス長が一つのBGP4経路,および自ASのネットワークを示すスタティック経路を広告するよう定義します。また,その際AS300に広告する経路には自AS番号を二つ追加します。

[コンフィグレーションの表示]
route-filter name AS200-OUT
  seq 100 match proto bgp as 100
  seq 100 match aspath-regexp "^[0-9]+$"
  seq 200 match proto static
  seq 200 match network 192.169.0.0/16 exact
!
route-filter name AS300-OUT
  seq 100 match proto bgp as 100
  seq 100 match aspath-regexp "^[0-9]+$"
  seq 100 set ascount 2
  seq 200 match proto static
  seq 200 match network 192.169.0.0/16 exact
  seq 200 set ascount 2
!
export proto bgp as 200 route-filter AS200-OUT
!
export proto bgp as 300 route-filter AS300-OUT

● route-filter,attribute-list,およびnetwork-filterによる設定

[コマンドによる設定]
 1    (config)# attribute-list attribute-filter ASPATH-LEN-1
      [attribute-list attribute-filter ASPATH-LEN-1]
 2    (config)# aspath-regexp "^[0-9]+$"
      [attribute-list attribute-filter ASPATH-LEN-1]
 3    (config)# exit
 4    (config)# attribute-list set-attribute AS-PREPEND-2
      [attribute-list set-attribute AS-PREPEND-2]
 5    (config)# ascount 2
      [attribute-list set-attribute AS-PREPEND-2]
 6    (config)# exit
 7    (config)# network-filter name SELF-NET
      [network-filter name SELF-NET]
 8    (config)# 192.169.0.0/16 exact
      [network-filter name SELF-NET]
 9    (config)# exit
10    (config)# route-filter name AS200-OUT
      [route-filter name AS200-OUT]
11    (config)# seq 100 match proto bgp as 100
      [route-filter name AS200-OUT]
12    (config)# seq 100 match attribute-filter ASPATH-LEN-1
      [route-filter name AS200-OUT]
13    (config)# seq 200 match proto static
      [route-filter name AS200-OUT]
14    (config)# seq 200 match network-filter SELF-NET
      [route-filter name AS200-OUT]
15    (config)# exit
16    (config)# export proto bgp as 200 route-filter AS200-OUT
17    (config)# route-filter name AS300-OUT
      [route-filter name AS300-OUT]
18    (config)# seq 100 match proto bgp as 100
      [route-filter name AS300-OUT]
19    (config)# seq 100 match attribute-filter ASPATH-LEN-1
      [route-filter name AS300-OUT]
20    (config)# seq 100 set set-attribute AS-PREPEND-2
      [route-filter name AS300-OUT]
21    (config)# seq 200 match proto static
      [route-filter name AS300-OUT]
22    (config)# seq 200 match network-filter SELF-NET
      [route-filter name AS300-OUT]
23    (config)# seq 200 set set-attribute AS-PREPEND-2
      [route-filter name AS300-OUT]
24    (config)# exit
25    (config)# export proto bgp as 300 route-filter AS300-OUT

表9-132 コンフィグレーション解説

解説番号 解説
1〜6 BGP4属性のフィルタ情報,および変更情報を定義します。
7〜9 自ASのネットワーク情報を定義します。
10〜16 ● route-filterによる設定」の「表9-131 コンフィグレーション解説」の解説番号1〜7に同じ
17〜25 ● route-filterによる設定」の「表9-131 コンフィグレーション解説」の解説番号8〜16に同じ

[コンフィグレーションの表示]
attribute-list set-attribute AS-PREPEND-2
  ascount 2
!
attribute-list attribute-filter ASPATH-LEN-1
  aspath-regexp "^[0-9]+$"
!
network-filter name SELF-NET
  192.169.0.0/16 exact
!
route-filter name AS200-OUT
  seq 100 match proto bgp as 100
  seq 100 match attribute-filter ASPATH-LEN-1
  seq 200 match proto static
  seq 200 match network-filter SELF-NET
!
route-filter name AS300-OUT
  seq 100 match proto bgp as 100
  seq 100 match attribute-filter ASPATH-LEN-1
  seq 100 set set-attribute AS-PREPEND-2
  seq 200 match proto static
  seq 200 match network-filter SELF-NET
  seq 200 set set-attribute AS-PREPEND-2
!
export proto bgp as 200 route-filter AS200-OUT
!
export proto bgp as 300 route-filter AS300-OUT

[注意事項]
  1. 経路フィルタ(route-filter)未使用時のエキスポート・フィルタの検索順序を次に示します。下記検索順序で検索した結果,最初に一致したフィルタの指定値(set-attribute,またはrestrict)に従い,広告経路を取り扱います。

    「フィルタリング条件」
    (a)広告先ターゲット情報:peer指定,as指定,policygroup指定,未指定(全指定)
    (b)学習元プロトコル情報:<source-protocol>
    (c)宛先ネットワーク情報:<Route_Filter>
    なお,「一致」とは,定義されたフィルタリング条件(上記(a),(b),(c))がすべて一致した場合を指します。

    「フィルタ検索順序」
    (a)広告先ターゲット情報:peer指定,as指定,policygroup指定,未指定の順に検索します。各指定(peer指定,as指定,policygroup指定,未指定)が複数定義されている場合は各指定内での定義順に検索します。
    (b)学習元プロトコル情報:<source-protocol>の定義順に検索します。
    (c)宛先ネットワーク情報:よりマスク長の長い<Route_Filter>順に検索します。
  2. 経路フィルタ(route-filter)使用時のエキスポート・フィルタの検索順序を次に示します。下記検索順序で検索した結果,最初に一致したフィルタの指定値(route-filter内のset,drop,またはaccept)に従い,広告経路を取り扱います。なお,エキスポート・フィルタに複数の経路フィルタ識別子を列記指定した場合は,列記指定した経路フィルタのどれかで一致すると,当該フィルタにdropまたはacceptの指定がなければ,次に列記されている経路フィルタを続けて検索します。

    「フィルタリング条件」
    (a)広告先ターゲット情報:peer指定,as指定,policygroup指定,未指定(全指定)
    (b)経路フィルタ情報:route-filter内のmatch情報
    なお,「一致」とは,定義されたフィルタリング条件(上記(a),(b))が共に一致した場合を指します。

    「フィルタ検索順序」
    (a)広告先ターゲット情報:peer指定,as指定,policygroup指定,未指定の順に検索します。各指定(peer指定,as指定,policygroup指定,未指定)が複数定義されている場合は各指定内での定義順に検索します。
    (b)経路フィルタ情報:seq番号順に検索します。
  3. 本装置内に持つ経路情報が定義されたフィルタリング条件に一致しない場合,当該経路の取り扱いはデフォルト動作(何も広告しない)と同様となります。

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


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

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