コンフィグレーションガイド
- <この項の構成>
- (1) 特定プロトコル経路の広告
- (2) 特定プロトコルの特定経路の広告
- (3) 特定インタフェースからの経路の広告
- (4) 特定インタフェースからの経路の広告抑止
- (5) 特定インタフェースへの広告
- (6) route-filterによる経路の広告
- (7) route-filter,network-filterによる経路の広告
(1) 特定プロトコル経路の広告
(a) 設定内容
インタフェース経路,およびスタティック経路を広告します。
(b) コンフィグレーション例
- [コマンドによる設定]
1 (config)# export proto rip [export proto rip] 2 (config)# proto direct [export proto rip proto direct] 3 (config)# exit [export proto rip] 4 (config)# proto static metric 2 [export proto rip proto static metric 2] 5 (config)# exit [export proto rip] 6 (config)# exit表9-112 コンフィグレーション解説
解説番号 解説 1〜3 インタフェース経路を広告します。 4〜6 スタティック経路をメトリック2で広告します。
- [コンフィグレーションの表示]
export proto rip proto direct proto static metric 2
(2) 特定プロトコルの特定経路の広告
(a) 設定内容
スタティック経路の内,デフォルト経路だけを広告します。
(b) コンフィグレーション例
- [コマンドによる設定]
1 (config)# export proto rip [export proto rip] 2 (config)# proto static [export proto rip proto static] 3 (config)# default metric 2 [export proto rip proto static] 4 (config)# exit [export proto rip] 5 (config)# exit表9-113 コンフィグレーション解説
解説番号 解説 1〜5 スタティック経路のうち,デフォルト経路だけをメトリック2で広告します。
- [コンフィグレーションの表示]
export proto rip proto static default metric 2
(3) 特定インタフェースからの経路の広告
(a) 設定内容
インタフェース172.16.1.1から受信した経路だけを広告します。
(b) コンフィグレーション例
- [コマンドによる設定]
1 (config)# export proto rip [export proto rip] 2 (config)# proto rip interface 172.16.1.1 [export proto rip proto rip interface 172.16.1.1] 3 (config)# exit [export proto rip] 4 (config)# proto rip restrict [export proto rip] 5 (config)# exit表9-114 コンフィグレーション解説
解説番号 解説 1〜5 インタフェース172.16.1.1から受信した経路だけを,その他のインタフェースに広告します。
- [コンフィグレーションの表示]
export proto rip proto rip interface 172.16.1.1 ptoto rip restrict
(4) 特定インタフェースからの経路の広告抑止
(a) 設定内容
インタフェース172.16.1.1から受信した経路を,その他のインタフェースに広告しません。
(b) コンフィグレーション例
- [コマンドによる設定]
1 (config)# export proto rip [export proto rip] 2 (config)# proto rip interface 172.16.1.1 restrict [export proto rip] 3 (config)# exit表9-115 コンフィグレーション解説
解説番号 解説 1〜3 インタフェース172.16.1.1から受信した経路を,その他のインタフェースに広告しません。
- [コンフィグレーションの表示]
export proto rip proto rip interface 172.16.1.1 restrict
(5) 特定インタフェースへの広告
(a) 設定内容
インタフェース172.17.1.1に対し,インタフェース経路,およびスタティック経路を広告します。
(b) コンフィグレーション例
- [コマンドによる設定]
1 (config)# export proto rip interface 172.17.1.1 [export proto rip interface 172.17.1.1] 2 (config)# proto direct [export proto rip interface 172.17.1.1 proto direct] 3 (config)# exit [export proto rip interface 172.17.1.1] 4 (config)# proto static metric 2 [export proto rip interface 172.17.1.1 proto static metric 2] 5 (config)# exit [export proto rip interface 172.17.1.1] 6 (config)# exit表9-116 コンフィグレーション解説
解説番号 解説 1〜6 インタフェース172.17.1.1に対し,インタフェース経路,およびスタティック経路をメトリック2で広告します。
- [コンフィグレーションの表示]
export proto rip interface 172.17.1.1 proto direct proto static metric 2
(6) route-filterによる経路の広告
(a) 設定内容
インタフェース172.17.1.1に対し,インタフェース経路,スタティック経路,およびインタフェース172.16.1.1から受信した192.168.0.0/16の経路だけを広告します。
(b) コンフィグレーション例
- [コマンドによる設定]
1 (config)# route-filter name RIP-OUT [route-filter name RIP-OUT] 2 (config)# seq 100 match proto direct [route-filter name RIP-OUT] 3 (config)# seq 200 match proto static [route-filter name RIP-OUT] 4 (config)# seq 200 set metric 2 [route-filter name RIP-OUT] 5 (config)# seq 300 match proto rip interface 172.16.1.1 [route-filter name RIP-OUT] 6 (config)# seq 300 match network 192.168.0.0/16 [route-filter name RIP-OUT] 7 (config)# seq 400 drop [route-filter name RIP-OUT] 8 (config)# exit 9 (config)# export proto rip interface 172.17.1.1 route-filter RIP-OUT表9-117 コンフィグレーション解説
解説番号 解説 1〜9 インタフェース172.17.1.1に対し,インタフェース経路,スタティック経路,およびインタフェース172.16.1.1から受信した192.168.0.0/16の経路だけを広告します。
- [コンフィグレーションの表示]
route-filter name RIP-OUT seq 100 match proto direct seq 200 match proto static seq 200 set metric 2 seq 300 match network 192.168.0.0/16 seq 300 match proto rip interface 172.16.1.1 seq 400 drop ! export proto rip interface 172.17.1.1 route-filter RIP-OUT
(7) route-filter,network-filterによる経路の広告
(a) 設定内容
インタフェース172.17.1.1に対し,インタフェース経路,スタティック経路,およびインタフェース172.16.1.1から受信した192.168.0.0/16の経路だけを広告します。
(b) コンフィグレーション例
- [コマンドによる設定]
1 (config)# network-filter name ADV-NET [network-filter name ADV-NET] 2 (config)# 192.168.0.0/16 [network-filter name ADV-NET] 3 (config)# exit 4 (config)# route-filter name RIP-OUT [route-filter name RIP-OUT] 5 (config)# seq 100 match proto direct [route-filter name RIP-OUT] 6 (config)# seq 200 match proto static [route-filter name RIP-OUT] 7 (config)# seq 200 set metric 2 [route-filter name RIP-OUT] 8 (config)# seq 300 match proto rip interface 172.16.1.1 [route-filter name RIP-OUT] 9 (config)# seq 300 match network-filter ADV-NET [route-filter name RIP-OUT] 10 (config)# seq 400 drop [route-filter name RIP-OUT] 11 (config)# exit 12 (config)# export proto rip interface 172.17.1.1 route-filter RIP-OUT [export proto rip interface 172.17.1.1 route-filter RIP-OUT] 13 (config)# exit表9-118 コンフィグレーション解説
解説番号 解説 1〜13 インタフェース172.17.1.1に対し,インタフェース経路,スタティック経路,およびインタフェース172.16.1.1から受信した192.168.0.0/16の経路だけを広告します。
- [コンフィグレーションの表示]
network-filter name ADV-NET 192.168.0.0/16 ! route-filter name RIP-OUT seq 100 match proto direct seq 200 match proto static seq 200 set metric 2 seq 300 match network-filter ADV-NET seq 300 match proto rip interface 172.16.1.1 seq 400 drop ! export proto rip interface 172.17.1.1 route-filter RIP-OUT
- [注意事項]
- 経路フィルタ(route-filter)未使用時のエキスポート・フィルタの検索順序を次に示します。下記検索順序で検索した結果,最初に一致したフィルタの指定値(metric,またはrestrict)に従い,広告経路を取り扱います。
- 「フィルタリング条件」
- (a)広告先ターゲット情報:interface指定,未指定(全指定)
- (b)学習元プロトコル情報:<source-protocol>
- (c)宛先ネットワーク情報:<Route_Filter>
- なお,「一致」とは,定義されたフィルタリング条件(上記(a),(b),(c))がすべて一致した場合を指します。
- 「フィルタ検索順序」
- (a)広告先ターゲット情報:interface指定,未指定の順に検索します。各指定(interface指定,未指定)が複数定義されている場合は各指定内での定義順に検索します。
- (b)学習元プロトコル情報:<source-protocol>の定義順に検索します。
- (c)宛先ネットワーク情報:よりマスク長の長い<Route_Filter>順に検索します。
- 経路フィルタ(route-filter)使用時のエキスポート・フィルタの検索順序を次に示します。下記検索順序で検索した結果,最初に一致したフィルタの指定値(route-filter内のset,drop,またはaccept)に従い,広告経路を取り扱います。なお,エキスポート・フィルタに複数の経路フィルタ識別子を列記指定した場合は,列記指定した経路フィルタのどれかで一致すると,当該フィルタにdropまたはacceptの指定がなければ,次に列記されている経路フィルタを続けて検索します。
- 「フィルタリング条件」
- (a)広告先ターゲット情報:interface指定,未指定(全指定)
- (b)経路フィルタ情報:route-filter内のmatch情報
- なお,「一致」とは,定義されたフィルタリング条件(上記(a),(b))が共に一致した場合を指します。
- 「フィルタ検索順序」
- (a) 広告先ターゲット情報:interface指定,未指定の順に検索します。各指定(interface指定,未指定)が複数定義されている場合は各指定内での定義順に検索します。
- (b) 経路フィルタ情報:seq番号順に検索します。
- 本装置内に持つ経路情報が定義されたフィルタリング条件に一致しない場合,当該経路の取り扱いはデフォルト動作(直結経路,およびRIP経路を広告)と同様となります。
- RIPは経路情報のメトリック値で経路選択を行います。RIP以外(直結経路および集約経路を除く)で学習した経路情報をRIPでエキスポートする場合,RIPのデフォルト・メトリックまたはエキスポート・フィルタのメトリックを指定してください。指定されていない場合,当該経路情報は広告されません。
Copyright (c)2005, 2011, ALAXALA Networks Corporation. All rights reserved.