構成定義ガイド
- <この項の構成>
- (1) 設定内容の概要
- (2) 構成図と設定条件
- (3) 構成定義情報例
(1) 設定内容の概要
AS番号200(AS200)の自律システムと複数の回線で接続されたAS番号100の自律システム(AS100)において,スタティック,およびOSPFのマルチパス機能を利用し,BGP4経路をマルチパス化することにより,AS200へのトラフィックを負荷分散します。
(2) 構成図と設定条件
- [構成図]
図8-19 構成図
- [設定条件]
- <本装置Aの環境>
- AS200のBGP4スピーカと外部ピアによりピアリングします。
- AS内の他のBGP4スピーカと内部ピアによりピアリングします。
- OSPFにより直結経路を,BGP4によりAS200から受信した経路をAS内に広告します。
- AS内のネットワークをスタティック定義し,AS200に広告します。
- <本装置B/C/D/Eの環境>
- AS内の他のBGP4スピーカと内部ピアによりピアリングします。
- OSPFにより直結経路をAS内に広告します。
(3) 構成定義情報例
- [コマンドによる設定]
- <本装置A>
1 (config)# router local-address 172.16.1.1 2 (config)# options max-paths 2 3 (config)# autonomoussystem 100 4 (config)# routerid 172.16.1.1 5 (config)# ospf yes [ospf] 6 (config)# multipath [ospf] 7 (config)# backbone [ospf backbone] 8 (config)# interface 172.16.2.21 172.16.2.31 [ospf backbone interface 172.16.2.21 172.16.2.31] 9 (config)# exit [ospf backbone] 10 (config)# interface 172.16.1.1 [ospf backbone interface 172.16.1.1] 11 (config)# passive [ospf backbone interface 172.16.1.1] 12 (config)# exit [ospf backbone] 13 (config)# exit [ospf] 14 (config)# exit 15 (config)# bgp yes [bgp] 16 (config)# externalpeeras 200 [bgp externalpeeras 200] 17 (config)# lcladdr 172.16.1.1 [bgp externalpeeras 200] 18 (config)# peer 172.17.1.1 [bgp externalpeeras 200 peer 172.17.1.1] 19 (config)# multihop 2 [bgp externalpeeras 200 peer 172.17.1.1] 20 (config)# exit [bgp externalpeeras 200] 21 (config)# exit [bgp] 22 (config)# routingpeeras 100 [bgp routingpeeras 100] 23 (config)# lcladdr 172.16.1.1 [bgp routingpeeras 100] 24 (config)# peer 172.16.1.2 [bgp routingpeeras 100 peer 172.16.1.2] 25 (config)# exit [bgp routingpeeras 100] 26 (config)# peer 172.16.1.3 [bgp routingpeeras 100 peer 172.16.1.3] 27 (config)# exit [bgp routingpeeras 100] 28 (config)# peer 172.16.1.4 [bgp routingpeeras 100 peer 172.16.1.4] 29 (config)# exit [bgp routingpeeras 100] 30 (config)# peer 172.16.1.5 [bgp routingpeeras 100 peer 172.16.1.5] 31 (config)# exit [bgp routingpeeras 100] 32 (config)# exit [bgp] 33 (config)# exit 34 (config)# static [static] 35 (config)# multipath [static] 36 (config)# 172.17.1.1/32 gateway 172.17.3.1 172.17.3.2 [static] 37 (config)# 172.16.0.0/16 interface null [static] 38 (config)# exit 39 (config)# export proto bgp as 100 [export proto bgp as 100] 40 (config)# proto bgp peer 172.17.1.1 [export proto bgp as 100 proto bgp peer 172.17.1.1] 41 (config)# exit [export proto bgp as 100] 42 (config)# exit 43 (config)# export proto bgp peer 172.17.1.1 [export proto bgp peer 172.17.1.1] 44 (config)# proto static [export proto bgp peer 172.17.1.1 proto static] 45 (config)# 172.16.0.0/16 exact [export proto bgp peer 172.17.1.1 proto static] 46 (config)# exit [export proto bgp peer 172.17.1.1] 47 (config)# exit表8-69 本装置Aの構成定義情報解説
解説番号 解説 1 自装置アドレスを定義します。 2 生成するマルチパス経路の最大パス数を定義します。 3 自装置の属するAS番号を定義します。 4 自装置のルータIDを定義します。 5,6 OSPFで生成する経路をマルチパス化することを定義します。 7〜9 自AS内向けの各インタフェースでOSPFを定義します。 10〜14 自装置アドレスをOSPFインタフェースとして広告することを定義します。 15〜21 BGP4プロトコルを動作させることを定義します。また,AS200に対する外部ピアを定義します。ピアリングアドレスは各々に付与された装置アドレスを使用します。 22,23 内部ピアでの自装置側ピアリングアドレスに自装置アドレスを使用することを定義します。 24〜33 本装置B,C,D,Eへの内部ピアを定義します。 34〜36 AS200とのピアリングに使用する相手側ピアリングアドレスをマルチパス化されたスタティック経路として生成するよう定義します。 37,38 AS内のネットワークをスタティック経路として定義します。 39〜42 AS200から受信した経路をAS内の内部ピアに広告するよう定義します。 43〜47 生成したAS内ネットワークのスタティック経路をAS200との外部ピアに広告するよう定義します。
- <本装置B>
1 (config)# router local-address 172.16.1.2 2 (config)# options max-paths 2 3 (config)# autonomoussystem 100 4 (config)# routerid 172.16.1.2 5 (config)# ospf yes [ospf] 6 (config)# multipath [ospf] 7 (config)# backbone [ospf backbone] 8 (config)# interface 172.16.2.12 172.16.2.42 172.16.2.52 [ospf backbone interface 172.16.2.12 172.16.2.42 172.16.2.52] 9 (config)# exit [ospf backbone] 10 (config)# interface 172.16.1.2 [ospf backbone interface 172.16.1.2] 11 (config)# passive [ospf backbone interface 172.16.1.2] 12 (config)# exit [ospf backbone] 13 (config)# exit [ospf] 14 (config)# exit 15 (config)# bgp yes [bgp] 16 (config)# routingpeeras 100 [bgp routingpeeras 100] 17 (config)# lcladdr 172.16.1.2 [bgp routingpeeras 100] 18 (config)# peer 172.16.1.1 [bgp routingpeeras 100 peer 172.16.1.1] 19 (config)# exit [bgp routingpeeras 100] 20 (config)# peer 172.16.1.3 [bgp routingpeeras 100 peer 172.16.1.3] 21 (config)# exit [bgp routingpeeras 100] 22 (config)# peer 172.16.1.4 [bgp routingpeeras 100 peer 172.16.1.4] 23 (config)# exit [bgp routingpeeras 100] 24 (config)# peer 172.16.1.5 [bgp routingpeeras 100 peer 172.16.1.5] 25 (config)# exit [bgp routingpeeras 100] 26 (config)# exit [bgp] 27 (config)# exit
- <本装置C>
1 (config)# router local-address 172.16.1.3 2 (config)# options max-paths 2 3 (config)# autonomoussystem 100 4 (config)# routerid 172.16.1.3 5 (config)# ospf yes [ospf] 6 (config)# multipath [ospf] 7 (config)# backbone [ospf backbone] 8 (config)# interface 172.16.2.13 172.16.2.43 172.16.2.53 [ospf backbone interface 172.16.2.13 172.16.2.43 172.16.2.53] 9 (config)# exit [ospf backbone] 10 (config)# interface 172.16.1.3 [ospf backbone interface 172.16.1.3] 11 (config)# passive [ospf backbone interface 172.16.1.3] 12 (config)# exit [ospf backbone] 13 (config)# exit [ospf] 14 (config)# exit 15 (config)# bgp yes [bgp] 16 (config)# routingpeeras 100 [bgp routingpeeras 100] 17 (config)# lcladdr 172.16.1.3 [bgp routingpeeras 100] 18 (config)# peer 172.16.1.1 [bgp routingpeeras 100 peer 172.16.1.1] 19 (config)# exit [bgp routingpeeras 100] 20 (config)# peer 172.16.1.2 [bgp routingpeeras 100 peer 172.16.1.2] 21 (config)# exit [bgp routingpeeras 100] 22 (config)# peer 172.16.1.4 [bgp routingpeeras 100 peer 172.16.1.4] 23 (config)# exit [bgp routingpeeras 100] 24 (config)# peer 172.16.1.5 [bgp routingpeeras 100 peer 172.16.1.5] 25 (config)# exit [bgp routingpeeras 100] 26 (config)# exit [bgp] 27 (config)# exit
- <本装置D>
1 (config)# router local-address 172.16.1.4 2 (config)# options max-paths 2 3 (config)# autonomoussystem 100 4 (config)# routerid 172.16.1.4 5 (config)# ospf yes [ospf] 6 (config)# multipath [ospf] 7 (config)# backbone [ospf backbone] 8 (config)# interface 172.16.2.24 172.16.2.34 [ospf backbone interface 172.16.2.24 172.16.2.34] 9 (config)# exit [ospf backbone] 10 (config)# interface 172.16.1.4 [ospf backbone interface 172.16.1.4] 11 (config)# passive [ospf backbone interface 172.16.1.4] 12 (config)# exit [ospf backbone] 13 (config)# exit [ospf] 14 (config)# exit 15 (config)# bgp yes [bgp] 16 (config)# routingpeeras 100 [bgp routingpeeras 100] 17 (config)# lcladdr 172.16.1.4 [bgp routingpeeras 100] 18 (config)# peer 172.16.1.1 [bgp routingpeeras 100 peer 172.16.1.1] 19 (config)# exit [bgp routingpeeras 100] 20 (config)# peer 172.16.1.2 [bgp routingpeeras 100 peer 172.16.1.2] 21 (config)# exit [bgp routingpeeras 100] 22 (config)# peer 172.16.1.3 [bgp routingpeeras 100 peer 172.16.1.3] 23 (config)# exit [bgp routingpeeras 100] 24 (config)# peer 172.16.1.5 [bgp routingpeeras 100 peer 172.16.1.5] 25 (config)# exit [bgp routingpeeras 100] 26 (config)# exit [bgp] 27 (config)# exit
- <本装置E>
1 (config)# router local-address 172.16.1.5 2 (config)# options max-paths 2 3 (config)# autonomoussystem 100 4 (config)# routerid 172.16.1.5 5 (config)# ospf yes [ospf] 6 (config)# multipath [ospf] 7 (config)# backbone [ospf backbone] 8 (config)# interface 172.16.2.25 172.16.2.35 [ospf backbone interface 172.16.2.25 172.16.2.35] 9 (config)# exit [ospf backbone] 10 (config)# interface 172.16.1.5 [ospf backbone interface 172.16.1.5] 11 (config)# passive [ospf backbone interface 172.16.1.5] 12 (config)# exit [ospf backbone] 13 (config)# exit [ospf] 14 (config)# exit 15 (config)# bgp yes [bgp] 16 (config)# routingpeeras 100 [bgp routingpeeras 100] 17 (config)# lcladdr 172.16.1.5 [bgp routingpeeras 100] 18 (config)# peer 172.16.1.1 [bgp routingpeeras 100 peer 172.16.1.1] 19 (config)# exit [bgp routingpeeras 100] 20 (config)# peer 172.16.1.2 [bgp routingpeeras 100 peer 172.16.1.2] 21 (config)# exit [bgp routingpeeras 100] 22 (config)# peer 172.16.1.3 [bgp routingpeeras 100 peer 172.16.1.3] 23 (config)# exit [bgp routingpeeras 100] 24 (config)# peer 172.16.1.4 [bgp routingpeeras 100 peer 172.16.1.4] 25 (config)# exit [bgp routingpeeras 100] 26 (config)# exit [bgp] 27 (config)# exit表8-70 本装置B/C/D/Eの構成定義情報解説
解説番号 解説 1〜14 <本装置A>の解説番号1〜14に同じ 15〜17 BGP4プロトコルを動作させることを定義します。内部ピアでの自装置側ピアリングアドレスに自装置アドレスを使用することを定義します。 18〜27 自AS内のBGP4スピーカへの内部ピアを定義します。
- [構成定義情報の表示]
- <本装置A>
router local-address 172.16.1.1 ! options max-paths 2 ! autonomoussystem 100 ! routerid 172.16.1.1 ! ospf yes multipath backbone interface 172.16.1.1 passive interface 172.16.2.21 172.16.2.31 ! bgp yes routingpeeras 100 lcladdr 172.16.1.1 peer 172.16.1.2 peer 172.16.1.3 peer 172.16.1.4 peer 172.16.1.5 externalpeeras 200 lcladdr 172.16.1.1 peer 172.17.1.1 multihop 2 ! static multipath 172.16.0.0/16 interface null 172.17.1.1/32 gateway 172.17.3.1 172.17.3.2 ! export proto bgp peer 172.17.1.1 proto static 172.16.0.0/16 exact ! export proto bgp as 100 proto bgp peer 172.17.1.1
- <本装置B>
router local-address 172.16.1.2 ! options max-paths 2 ! autonomoussystem 100 ! routerid 172.16.1.2 ! ospf yes multipath backbone interface 172.16.1.2 passive interface 172.16.2.12 172.16.2.42 172.16.2.52 ! bgp yes routingpeeras 100 lcladdr 172.16.1.2 peer 172.16.1.1 peer 172.16.1.3 peer 172.16.1.4 peer 172.16.1.5
- <本装置C>
router local-address 172.16.1.3 ! options max-paths 2 ! autonomoussystem 100 ! routerid 172.16.1.3 ! ospf yes multipath backbone interface 172.16.1.3 passive interface 172.16.2.13 172.16.2.43 172.16.2.53 ! bgp yes routingpeeras 100 lcladdr 172.16.1.3 peer 172.16.1.1 peer 172.16.1.2 peer 172.16.1.4 peer 172.16.1.5
- <本装置D>
router local-address 172.16.1.4 ! options max-paths 2 ! autonomoussystem 100 ! routerid 172.16.1.4 ! ospf yes multipath backbone interface 172.16.1.4 passive interface 172.16.2.24 172.16.2.34 ! bgp yes routingpeeras 100 lcladdr 172.16.1.4 peer 172.16.1.1 peer 172.16.1.2 peer 172.16.1.3 peer 172.16.1.5
- <本装置E>
router local-address 172.16.1.5 ! options max-paths 2 ! autonomoussystem 100 ! routerid 172.16.1.5 ! ospf yes multipath backbone interface 172.16.1.5 passive interface 172.16.2.25 172.16.2.35 ! bgp yes routingpeeras 100 lcladdr 172.16.1.5 peer 172.16.1.1 peer 172.16.1.2 peer 172.16.1.3 peer 172.16.1.4
Copyright (c)2005 ALAXALA Networks Corporation. All rights reserved.