コンフィグレーションガイド
- <この項の構成>
- (1) 設定内容の概要
- (2) 構成図と設定条件
- (3) コンフィグレーション例
(1) 設定内容の概要
AS番号200の自律システム(AS200)とAS番号300の自律システム(AS300)に接続されたAS番号100の自律システム(AS100)において,AS200およびAS300から広告された経路情報をAS内に配布します。また,AS内のネットワークをスタティック定義し,AS200およびAS300に広告します。
(2) 構成図と設定条件
- [構成図]
図12-17 構成図
- [設定条件]
- <本装置A/Bの環境>
- AS番号200/300の自律システムと外部ピアによりピアリングします。
- 本装置A/Bはおのおの本装置C/Dのルート・リフレクタとしてピアリングします。
- AS番号200/300の自律システムから受信した経路および直結経路をAS内に広告します。
- AS内のネットワークをスタティック定義し,AS番号200/300の自律システムに広告します。
- <本装置C/Dの環境>
- 本装置C/Dはおのおの本装置A/Bのクライアントとしてピアリングします。
- デフォルト経路等のIGP(Interior Gateway Protocol)への配布,内部経路のBGP4+への配布は省略しています。
(3) コンフィグレーション例
- [コマンドによる設定]
- <本装置A>
1 (config)# local-address 3ffe:501:811:ff01::1 2 (config)# autonomoussystem 100 3 (config)# routerid 172.16.2.1 4 (config)# ripng yes [ripng] 5 (config)# interface all [ripng interface all] 6 (config)# ripin [ripng interface all] 7 (config)# ripout [ripng interface all] 8 (config)# exit [ripng] 9 (config)# interface AtoExt [ripng interface AtoExt] 10 (config)# noripin [ripng interface AtoExt] 11 (config)# noripout [ripng interface AtoExt] 12 (config)# exit [ripng] 13 (config)# exit 14 (config)# bgp4+ yes [bgp4+] 15 (config)# clusterid 172.16.2.1 [bgp4+] 16 (config)# externalpeeras 200 [bgp4+ externalpeeras 200] 17 (config)# peer fe80::200%AtoExt [bgp4+ externalpeeras 200 peer fe80::200%AtoExt] 18 (config)# exit [bgp4+ externalpeeras 200] 19 (config)# exit [bgp4+] 20 (config)# routingpeeras 100 [bgp4+ routingpeeras 100] 21 (config)# lcladdr 3ffe:501:811:ff01::1 [bgp4+ routingpeeras 100] 22 (config)# peer 3ffe:501:811:ff01::2 [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::2] 23 (config)# exit [bgp4+ routingpeeras 100] 24 (config)# exit [bgp4+] 25 (config)# routingpeeras 100 reflector-client [bgp4+ routingpeeras 100 reflector-client] 26 (config)# lcladdr 3ffe:501:811:ff01::1 [bgp4+ routingpeeras 100 reflector-client] 27 (config)# peer 3ffe:501:811:ff01::3 [bgp4+ routingpeeras 100 reflector-client peer 3ffe:501:811:ff01::3] 28 (config)# exit [bgp4+ routingpeeras 100 reflector-client] 29 (config)# exit [bgp4+] 30 (config)# exit 31 (config)# export proto bgp4+ as 100 [export proto bgp4+ as 100] 32 (config)# proto bgp4+ as 200 [export proto bgp4+ as 100 proto bgp4+ as 200] 33 (config)# exit [export proto bgp4+ as 100] 34 (config)# proto bgp4+ as 100 [export proto bgp4+ as 100 proto bgp4+ as 100] 35 (config)# exit [export proto bgp4+ as 100] 36 (config)# exit 37 (config)# static [static] 38 (config)# 3ffe:501:811:ff01::/64 interface null [static] 39 (config)# exit 40 (config)# export proto bgp4+ as 200 [export proto bgp4+ as 200] 41 (config)# proto static [export proto bgp4+ as 200 proto static] 42 (config)# 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-54 本装置Aのコンフィグレーション解説
解説番号 解説 1 自装置アドレスを定義します。 2 自装置の属するAS番号を定義します。 3 自装置のルータIDを定義します。 4〜13 自AS内向けの各インタフェースでRIPngを定義します。 14 BGP4+プロトコルを動作させることを定義します。 15 ルート・リフレクションで使用するクラスタIDを定義します。 16〜19 AS200に対する外部ピアを定義します。 20〜24 本装置Bへの内部ピアを定義します。 25〜30 自装置がルート・リフレクタであり,クライアントである本装置Cへの内部ピアを定義します。 31〜33 AS200から受信した経路情報をAS内の内部ピアに広告するよう定義します。 34〜36 経路をリフレクト(AS100→AS100)するよう定義します。 37〜39 AS内のネットワークをスタティック経路として定義します。 40〜44 生成したスタティック経路をAS200との外部ピアに広告するよう定義します。
- <本装置B>
1 (config)# local-address 3ffe:501:811:ff01::2 2 (config)# autonomoussystem 100 3 (config)# routerid 172.16.2.2 4 (config)# ripng yes [ripng] 5 (config)# interface all [ripng interface all] 6 (config)# ripin [ripng interface all] 7 (config)# ripout [ripng interface all] 8 (config)# exit [ripng] 9 (config)# interface BtoExt [ripng interface BtoExt] 10 (config)# noripin [ripng interface BtoExt] 11 (config)# noripout [ripng interface BtoExt] 12 (config)# exit [ripng] 13 (config)# exit 14 (config)# bgp4+ yes [bgp4+] 15 (config)# clusterid 172.16.2.2 [bgp4+] 16 (config)# externalpeeras 300 [bgp4+ externalpeeras 300] 17 (config)# peer fe80::300%BtoExt [bgp4+ externalpeeras 300 peer fe80::300%BtoExt] 18 (config)# exit [bgp4+ externalpeeras 300] 19 (config)# exit [bgp4+] 20 (config)# routingpeeras 100 [bgp4+ routingpeeras 100] 21 (config)# lcladdr 3ffe:501:811:ff01::2 [bgp4+ routingpeeras 100] 22 (config)# peer 3ffe:501:811:ff01::1 [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::1] 23 (config)# exit [bgp4+ routingpeeras 100] 24 (config)# exit [bgp4+] 25 (config)# routingpeeras 100 reflector-client [bgp4+ routingpeeras 100 reflector-client] 26 (config)# lcladdr 3ffe:501:811:ff01::2 [bgp4+ routingpeeras 100 reflector-client] 27 (config)# peer 3ffe:501:811:ff01::4 [bgp4+ routingpeeras 100 reflector-client peer 3ffe:501:811:ff01::4] 28 (config)# exit [bgp4+ routingpeeras 100 reflector-client] 29 (config)# exit [bgp4+] 30 (config)# exit 31 (config)# export proto bgp4+ as 100 [export proto bgp4+ as 100] 32 (config)# proto bgp4+ as 300 [export proto bgp4+ as 100 proto bgp4+ as 300] 33 (config)# exit [export proto bgp4+ as 100] 34 (config)# proto bgp4+ as 100 [export proto bgp4+ as 100 proto bgp4+ as 100] 35 (config)# exit [export proto bgp4+ as 100] 36 (config)# exit 37 (config)# static [static] 38 (config)# 3ffe:501:811:ff01::/64 interface null [static] 39 (config)# exit 40 (config)# export proto bgp4+ as 300 [export proto bgp4+ as 300] 41 (config)# proto static [export proto bgp4+ as 300 proto static] 42 (config)# 3ffe:501:811:ff01::/64 exact [export proto bgp4+ as 300 proto static] 43 (config)# exit [export proto bgp4+ as 300] 44 (config)# exit表12-55 本装置Bのコンフィグレーション解説
解説番号 解説 1〜15 <本装置A>の解説番号1〜15に同じ 16〜19 AS300に対する外部ピアを定義します。 20〜24 本装置Bへの内部ピアを定義します。 25〜30 自装置がルート・リフレクタであり,クライアントである本装置Cへの内部ピアを定義します。 31〜33 AS300から受信した経路情報をAS内の内部ピアに広告するよう定義します。 34〜36 経路をリフレクト(AS100→AS100)するよう定義します。 37〜39 AS内のネットワークをスタティック経路として定義します。 40〜44 生成したスタティック経路をAS300との外部ピアに広告するよう定義します。
- <本装置C>
1 (config)# local-address 3ffe:501:811:ff01::3 2 (config)# autonomoussystem 100 3 (config)# routerid 172.16.2.3 4 (config)# ripng yes [ripng] 5 (config)# interface all [ripng interface all] 6 (config)# ripin [ripng interface all] 7 (config)# ripout [ripng interface all] 8 (config)# exit [ripng] 9 (config)# exit 10 (config)# bgp4+ yes [bgp4+] 11 (config)# routingpeeras 100 [bgp4+ routingpeeras 100] 12 (config)# lcladdr 3ffe:501:811:ff01::3 [bgp4+ routingpeeras 100] 13 (config)# peer 3ffe:501:811:ff01::1 [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::1] 14 (config)# exit [bgp4+ routingpeeras 100] 15 (config)# exit [bgp4+] 16 (config)# exit表12-56 本装置Cのコンフィグレーション解説
解説番号 解説 1〜9 <本装置A>の解説番号1〜9に同じ 10 BGP4+プロトコルを動作させることを定義します。 11〜16 本装置Aへの内部ピアを定義します。
- <本装置D>
1 (config)# local-address 3ffe:501:811:ff01::4 2 (config)# autonomoussystem 100 3 (config)# routerid 172.16.2.4 4 (config)# ripng yes [ripng] 5 (config)# interface all [ripng interface all] 6 (config)# ripin [ripng interface all] 7 (config)# ripout [ripng interface all] 8 (config)# exit [ripng] 9 (config)# exit 10 (config)# bgp4+ yes [bgp4+] 11 (config)# routingpeeras 100 [bgp4+ routingpeeras 100] 12 (config)# lcladdr 3ffe:501:811:ff01::4 [bgp4+ routingpeeras 100] 13 (config)# peer 3ffe:501:811:ff01::2 [bgp4+ routingpeeras 100 peer 3ffe:501:811:ff01::2] 14 (config)# exit [bgp4+ routingpeeras 100] 15 (config)# exit [bgp4+] 16 (config)# exit表12-57 本装置Dのコンフィグレーション解説
解説番号 解説 1〜9 <本装置A>の解説番号1〜9に同じ 10 BGP4+プロトコルを動作させることを定義します。 11〜16 本装置Cへの内部ピアを定義します。
- [コンフィグレーションの表示]
- <本装置A>
local-address 3ffe:501:811:ff01::1 ! autonomoussystem 100 ! routerid 172.16.2.1 ! ripng yes interface all ripin ripout interface AtoExt noripin noripout ! bgp4+ yes clusterid 172.16.2.1 routingpeeras 100 lcladdr 3ffe:501:811:ff01::1 peer 3ffe:501:811:ff01::2 routingpeeras 100 reflector-client lcladdr 3ffe:501:811:ff01::1 peer 3ffe:501:811:ff01::3 externalpeeras 200 peer fe80::200%AtoExt ! static 3ffe:501:811:ff01::/64 interface null ! export proto bgp4+ as 100 proto bgp4+ as 200 proto bgp4+ as 100 ! export proto bgp4+ as 200 proto static 3ffe:501:811:ff01::/64 exact
- <本装置B>
local-address 3ffe:501:811:ff01::2 ! autonomoussystem 100 ! routerid 172.16.2.2 ! ripng yes interface all ripin ripout interface BtoExt noripin noripout ! bgp4+ yes clusterid 172.16.2.2 routingpeeras 100 lcladdr 3ffe:501:811:ff01::2 peer 3ffe:501:811:ff01::1 routingpeeras 100 reflector-client lcladdr 3ffe:501:811:ff01::2 peer 3ffe:501:811:ff01::4 externalpeeras 300 peer fe80::300%BtoExt ! static 3ffe:501:811:ff01::/64 interface null ! export proto bgp4+ as 100 proto bgp4+ as 300 proto bgp4+ as 100 ! export proto bgp4+ as 300 proto static 3ffe:501:811:ff01::/64 exact
- <本装置C>
local-address 3ffe:501:811:ff01::3 ! autonomoussystem 100 ! routerid 172.16.2.3 ! ripng yes interface all ripin ripout ! bgp4+ yes routingpeeras 100 lcladdr 3ffe:501:811:ff01::3 peer 3ffe:501:811:ff01::1
- <本装置D>
local-address 3ffe:501:811:ff01::4 ! autonomoussystem 100 ! routerid 172.16.2.4 ! ripng yes interface all ripin ripout ! bgp4+ yes routingpeeras 100 lcladdr 3ffe:501:811:ff01::4 peer 3ffe:501:811:ff01::2
Copyright (c)2005, 2011, ALAXALA Networks Corporation. All rights reserved.