構成定義ガイド

[目次][用語][索引][前へ][次へ]


10.3.5 本装置を複数台(2台)使用するネットワーク構成例

<この項の構成>
(1) 設定内容の概要
(2) 構成図と設定条件
(3) 構成定義情報例

(1) 設定内容の概要

DHCPサーバ機能を有効にした本装置2台により,複数のプレフィックスを自動配布しネットワークを構成する例を示します。本装置と同一プレフィックス上には複数のIPv6 DHCPクライアント装置を設置します。クライアントはルータとします。

なお,外部ネットワークとの接続は2台設置した本装置をそれぞれゲートウェイとして構成します。

(2) 構成図と設定条件

[構成図]

図10-20 本装置を複数台(2台)使用するネットワーク構成例

[図データ]

[設定条件]
  1. 本装置のDHCPサーバのプレフィックス配布機能でネットワークを構成します。
  2. 本装置は2台使用し,同一ネットワーク上に設置します。
  3. 外部ネットワークとの接続は本装置A,Bをゲートウェイにして行います。
  4. 外部ネットワークにはISP1,2のどちらかを経由し,本例ではどちらを優先するかは定義しません。
  5. 本装置はそれぞれ外部・内部用に一つずつのインタフェースを持ちます。
  6. クライアントは配布プレフィックスをさらに内部ネットワークへ配布する機能をもつCPE (Customer Premises Equipment)とします。
  7. 外部ネットワークのゲートウェイアドレスはISP1が3ffe:1::1/32,ISP2が5ffe:1::1/32とします。
  8. 2台のDHCPサーバが配布するデータのどちらを使用するかは,クライアントの実装によるものであり,本装置が規定するものではありません。
  9. 外部ネットワークへアクセスするためのゲートウェイルータの選択は,採用するプレフィックスがどれであったかにより,クライアントによって決定されます。

(3) 構成定義情報例

[コマンドによる設定]

<本装置A>
 1    (config)# line Tokyo ethernet 2/1
      [line Tokyo]
 2    (config)# ip 3ffe:1::2/32
      [line Tokyo]
 3    (config)# exit
 4    (config)# line TokyoGW ethernet 2/2
      [line TokyoGW]
 5    (config)# ip linklocal
      [line TokyoGW]
 6    (config)# exit
 7    (config)# ripng yes
      [ripng]
 8    (config)# exit
 9    (config)# static
      [static]
10    (config)# ip6-default gateway 3ffe:1::1
      [static]
11    (config)# exit
12    (config)# dhcp6-server yes
13    (config)# dhcp6-server interface TokyoGW preference 255
14    (config)# dhcp6-server host client1 duid
                00:03:00:01:00:66:77:88:99:aa prefix 3ffe:1:3::/48
15    (config)# dhcp6-server host client2 duid
                00:03:00:01:00:aa:bb:cc:dd:ee prefix 3ffe:1:4::/48
16    (config)# dhcp6-server static-route-setting

表10-20 本装置Aの構成定義情報解説

解説番号 解説
1〜3 外部ネットワークへ向けたライン”Tokyo”をNIF:2,ポート1に定義します。
4〜6 内部ネットワークへ向けたライン”TokyoGW”をNIF:2,ポート2に定義します。
7,8 RIPngプロトコルを動作させることを定義します。
9〜11 本装置のIPv6デフォルトゲートウェイを3ffe:1::1に設定します。
12 dhcp6-server 定義を有効に設定します。ただし,dhcp6-server interfaceを定義するまで実際のサービスは開始されません。
13 DHCPv6サービスを提供するインタフェースに”TokyoGW”を指定します。
14,15 dhcp6-server のクライアントとして,”client1”,”client2”を定義します。
16 配布プレフィックスへの経路を自動生成させる定義 static-route-setting を定義し,本装置に外部からプレフィックス配布先への自動経路設定機能を有効にします。ただし,対象プレフィックスの配布が完了するまで経路は設定されません。

<本装置B>
 1    (config)# line Osaka ethernet 2/1
      [line Osaka]
 2    (config)# ip 5ffe:1::2/32
      [line Osaka]
 3    (config)# exit
 4    (config)# line OsakaGW ethernet 2/2
      [line OsakaGW]
 5    (config)# ip linklocal
      [line OsakaGW]
 6    (config)# exit
 7    (config)# ripng yes
      [ripng]
 8    (config)# exit
 9    (config)# static
      [static]
10    (config)# ip6-default gateway 5ffe:1::1
      [static]
11    (config)# exit
12    (config)# dhcp6-server yes
13    (config)# dhcp6-server interface OsakaGW preference 255
14    (config)# dhcp6-server host client1 duid
                00:03:00:01:00:66:77:88:99:aa prefix 5ffe:1:3::/48
                lease-duration 8640
15    (config)# dhcp6-server host client2 duid
                00:03:00:01:00:aa:bb:cc:dd:ee prefix 5ffe:1:4::/48
                lease-duration 8640
16    (config)# dhcp6-server static-route-setting

表10-21 本装置Bの構成定義情報解説

解説番号 解説
1〜3 外部ネットワークへ向けたライン”Osaka”を NIF:2,ポート1に定義します。
4〜6 内部ネットワークへ向けたライン”OsakaGW”を NIF:2,ポート2に定義します。
7,8 RIPngプロトコルを動作させることを定義します。
9〜11 本装置のIPv6デフォルトゲートウェイを5ffe:1::1に設定します。
12 dhcp6-server 定義を有効に設定します。ただしdhcp6-server interfaceを定義するまで実際のサービスは開始されません。
13 DHCPv6サービスを提供するインタフェースに”OsakaGW”を指定します。
14,15 dhcp6-server のクライアントとして,”client1”,”client2”を定義します。ただし,サーバでリース時間が競合することを防ぐために,配布するプレフィックスの貸し出し期間を6日(8640分)に設定します。
16 配布プレフィックスへの経路を自動生成させる定義 static-route-setting を定義し,本装置に外部からプレフィックス配布先への自動経路設定機能を有効にします。ただし,対象プレフィックスの配布が完了するまで経路は設定されません。

[構成定義情報の表示]

<本装置A>
line Tokyo ethernet 2/1
  ip 3ffe:1::2/32
!
line TokyoGW ethernet 2/2
  ip linklocal
!
dhcp6-server yes
dhcp6-server host client1 duid 00:03:00:01:00:66:77:88:99:aa prefix 3ffe:1:3::/48
dhcp6-server host client2 duid 00:03:00:01:00:aa:bb:cc:dd:ee prefix 3ffe:1:4::/48
dhcp6-server interface TokyoGW preference 255
dhcp6-server static-route-setting
!
ripng yes
!
static
  ip6-default gateway 3ffe:1::1

<本装置B>
line Osaka ethernet 2/1
  ip 5ffe:1::2/32
!
line OsakaGW ethernet 2/2
  ip linklocal
!
dhcp6-server yes
dhcp6-server host client1 duid 00:03:00:01:00:66:77:88:99:aa prefix 5ffe:1:3::/48 lease-duration 8640
dhcp6-server host client2 duid 00:03:00:01:00:aa:bb:cc:dd:ee prefix 5ffe:1:4::/48 lease-duration 8640
dhcp6-server interface OsakaGW preference 255
dhcp6-server static-route-setting
!
ripng yes
!
static
  ip6-default gateway 5ffe:1::1

[目次][前へ][次へ]


[他社商品名称に関する表示]

Copyright (c)2005 ALAXALA Networks Corporation. All rights reserved.