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