コンフィグレーションガイド
- <この項の構成>
- (1) 設定内容の概要
- (2) 構成図と設定条件
- (3) コンフィグレーション例
(1) 設定内容の概要
センタと複数の拠点を持つネットワークにおいて,センタ−拠点間の通信経路をスタティックにより制御します。センタには2台のルータを設置し,1台を通常経路のルータ,もう1台を代替経路のルータとして使用します。
(2) 構成図と設定条件
- [構成図]
図12-1 構成図
- [設定条件]
- <ネットワークの環境>
- サーバ−PC間の通信経路は本装置Bより本装置Aを優先します。
- <本装置A/Bの環境>
- センタルータ(本装置A/B)−サーバ間の経路制御はRIPngを使用します。
- センタルータ(本装置A/B)−拠点ルータ(本装置C/D)間の経路制御はスタティックを使用します。
- <本装置C/Dの環境>
- 拠点ルータ(本装置C/D)−センタルータ(本装置A/B)間の経路制御はスタティックを使用します。
- 本装置C/D−PC間には,RAを流します。
(3) コンフィグレーション例
- [コマンドによる設定]
- <本装置A>
1 (config)# ripng yes [ripng] 2 (config)# defaultmetric 2 [ripng] 3 (config)# interface all [ripng interface all] 4 (config)# noripin [ripng interface all] 5 (config)# noripout [ripng interface all] 6 (config)# exit [ripng] 7 (config)# interface Department1 [ripng interface Department1] 8 (config)# ripin [ripng interface Department1] 9 (config)# ripout [ripng interface Department1] 10 (config)# exit [ripng] 11 (config)# exit 12 (config)# static [static] 13 (config)# 3ffe:501:811:ff40::/64 gateway fe80::3%AtoC [static] 14 (config)# 3ffe:501:811:ff50::/64 gateway fe80::4%AtoD [static] 15 (config)# exit 16 (config)# export proto ripng [export proto ripng] 17 (config)# proto static [export proto ripng proto static] 18 (config)# exit [export proto ripng] 19 (config)# exit表12-1 本装置Aのコンフィグレーション解説
解説番号 解説 1 RIPngプロトコルを動作させることを定義します。 2 RIPngで広告するスタティック経路のメトリック値を2とすることを定義します。 3〜11 サーバ向きインタフェースDepartment1でだけRIPngパケットの送受信を行うことを定義します。 12〜15 端末を収容するネットワークへのスタティック経路を定義します。 16〜19 端末を収容するネットワークへのスタティック経路をRIPngによりサーバに広告することを定義します。
- <本装置B>
1 (config)# ripng yes [ripng] 2 (config)# defaultmetric 3 [ripng] 3 (config)# interface all [ripng interface all] 4 (config)# noripin [ripng interface all] 5 (config)# noripout [ripng interface all] 6 (config)# exit [ripng] 7 (config)# interface Department2 [ripng interface Department2] 8 (config)# ripin [ripng interface Department2] 9 (config)# ripout [ripng interface Department2] 10 (config)# exit [ripng] 11 (config)# exit 12 (config)# static [static] 13 (config)# 3ffe:501:811:ff40::/64 gateway fe80::3%BtoC [static] 14 (config)# 3ffe:501:811:ff50::/64 gateway fe80::4%BtoD [static] 15 (config)# exit 16 (config)# export proto ripng [export proto ripng] 17 (config)# proto static [export proto ripng proto static] 18 (config)# exit [export proto ripng] 19 (config)# exit表12-2 装置Bのコンフィグレーション解説
解説番号 解説 1 RIPngプロトコルを動作させることを定義します。 2 RIPngで広告するスタティック経路のメトリック値を3とすることを定義します。これにより,サーバでは本装置Aより広告されたメトリックの小さい経路を優先します。 3〜11 サーバ向きインタフェースDepartment2でだけRIPngパケットの送受信を行うことを定義します。 12〜15 端末を収容するネットワークへのスタティック経路を定義します。 16〜19 端末を収容するネットワークへのスタティック経路をRIPngによりサーバに広告することを定義します。
- <本装置C>
1 (config)# static [static] 2 (config)# 3ffe:501:811:ff10::/64 gateway fe80::1%CtoA fe80::2%CtoB [static] 3 (config)# exit 4 (config)# ra yes [ra] 5 (config)# interface Department3 [ra interface Department3] 6 (config)# exit [ra] 7 (config)# exit
- <本装置D>
1 (config)# static [static] 2 (config)# 3ffe:501:811:ff10::/64 gateway fe80::1%DtoA fe80::2%DtoB [static] 3 (config)# exit 4 (config)# ra yes [ra] 5 (config)# interface Department4 [ra interface Department4] 6 (config)# exit [ra] 7 (config)# exit表12-3 本装置C/Dのコンフィグレーション解説
解説番号 解説 1〜3 サーバへのスタティック経路を定義します。本装置Aを本装置Bより優先するために,本装置Aヘのゲートウェイアドレスを先に定義します。 4 RAを有効にします。 5〜7 PC向きインタフェースに対してだけRAを流します。
- [コンフィグレーションの表示]
- <本装置A>
ripng yes defaultmetric 2 interface all noripin noripout interface Department1 ripin ripout ! static 3ffe:501:811:ff40::/64 gateway fe80::3%AtoC 3ffe:501:811:ff50::/64 gateway fe80::4%AtoD ! export proto ripng proto static
- <本装置B>
ripng yes defaultmetric 3 interface all noripin noripout interface Department2 ripin ripout ! static 3ffe:501:811:ff40::/64 gateway fe80::3%BtoC 3ffe:501:811:ff50::/64 gateway fe80::4%BtoD ! export proto ripng proto static
- <本装置C>
ra yes interface Department3 ! static 3ffe:501:811:ff10::/64 gateway fe80::1%CtoA fe80::2%CtoB
- <本装置D>
ra yes interface Department4 ! static 3ffe:501:811:ff10::/64 gateway fe80::1%DtoA fe80::2%DtoB
Copyright (c)2005, 2011, ALAXALA Networks Corporation. All rights reserved.